Function at 0x667e20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
push 0x751478
push eax
mov dword fs:[0], esp
sub esp, 0x58
push esi
push edi
xor edi, edi
cmp cx, di
jne 0x667e49
xor esi, esi
jmp 0x667eaa
mov eax, dword [0x912e94]
cmp eax, edi
je 0x667e5c
mov eax, dword [eax + 0x1a4]
cmp eax, edi
jne 0x667e60
xor esi, esi
jmp 0x667eaa
movzx edx, cx
cmp edx, dword [eax + 0x60]
jae 0x667e6d
lea ecx, [eax + 0x24]
jmp 0x667ea0
cmp cx, 0xffff
jne 0x667e79
mov eax, dword [eax + 0x6c]
jmp 0x667ea8
cmp cx, 0xf000
jb 0x667e87
cmp cx, 0xffff
jb 0x667e8b
xor eax, eax
jmp 0x667ea8
add ecx, 0x1000
movzx edx, cx
cmp edx, dword [eax + 0x68]
jb 0x667e9d
xor eax, eax
jmp 0x667ea8
lea ecx, [eax + 0x4c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x14]
mov eax, dword [eax]
mov esi, eax
mov ecx, dword [esp + 0x7c]
cmp cx, di
mov edx, dword [0x912e94]
jne 0x667ebd
xor eax, eax
jmp 0x667f1d
cmp edx, edi
je 0x667ecb
mov eax, dword [edx + 0x1a4]
cmp eax, edi
jne 0x667ecf
xor eax, eax
jmp 0x667f1d
movzx edx, cx
cmp edx, dword [eax + 0x60]
jae 0x667edc
lea ecx, [eax + 0x24]
jmp 0x667f0f
cmp cx, 0xffff
jne 0x667ee8
mov eax, dword [eax + 0x6c]
jmp 0x667f17
cmp cx, 0xf000
jb 0x667ef6
cmp cx, 0xffff
jb 0x667efa
xor eax, eax
jmp 0x667f17
add ecx, 0x1000
movzx edx, cx
cmp edx, dword [eax + 0x68]
jb 0x667f0c
xor eax, eax
jmp 0x667f17
lea ecx, [eax + 0x4c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x14]
mov eax, dword [eax]
mov edx, dword [0x912e94]
cmp esi, edi
je 0x6684a4
cmp eax, edi
je 0x6684a4
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], vtable.CBSList_struct_TBPoint_long_int__.0
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x5c], edi
cmp edx, edi
mov dword [esp + 0x68], edi
jne 0x667f53
mov dword [esp + 0x1c], edi
jmp 0x667f5d
mov ecx, dword [edx + 0x1a4]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 0x48]
mov ecx, dword [esi + 0x44]
push ebx
mov ebx, dword [esi + 0x4c]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0x4c]
sub dword [esp + 0x2c], 1
push ebp
mov ebp, dword [eax + 0x44]
mov eax, dword [eax + 0x50]
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x20], edi
mov edi, dword [esi + 0x48]
mov esi, dword [esi + 0x50]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x24]
mov edx, dword [edx + 0x18]
add dword [esp + 0x34], 1
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x38]
sub ecx, 1
sub ebp, 1
sub edi, 1
add ebx, 1
add esi, 1
add eax, 1
test ecx, ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x2c], ebp
jle 0x667fc8
mov dword [esp + 0x44], ecx
test edi, edi
jg 0x667fd0
mov edi, dword [esp + 0x48]
cmp edx, ebx
jle 0x667fd8
mov dword [esp + 0x4c], ebx
cmp edx, esi
jle 0x667fde
mov edx, esi
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x44], ecx
jge 0x667fec
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x30]
cmp edi, ecx
jge 0x667ff6
mov edi, ecx
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x4c], ecx
jle 0x668004
mov dword [esp + 0x4c], ecx
cmp edx, eax
jle 0x66800a
mov edx, eax
cmp di, dx
ja 0x6682b3
sub edx, edi
add edx, 1
movzx eax, di
mov edi, dword [esp + 0x20]
movzx ecx, dx
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], ecx
lea ebx, [ebx]
test edi, edi
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x1c]
mov ecx, dword [esp + 0x18]
mov ebp, dword [eax + ecx*4]
mov dword [esp + 0x1c], ebp
je 0x6681c7
mov ebx, dword [esp + 0x44]
lea edx, [esp + 0x10]
push edx
push ebx
mov ecx, ebp
call fcn.0048a390
mov ecx, edi
mov esi, eax
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0048a390
mov di, word [esp + 0x10]
cmp di, word [esp + 0x4c]
mov ebx, eax
ja 0x6681c7
add ebp, 8
nop
mov edx, dword [ebp]
movzx eax, si
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 8]
mov esi, eax
movzx eax, bx
add ecx, 8
push eax
call dword [edx + 0x14]
mov edx, dword [esp + 0x28]
cmp di, dx
mov ecx, dword [esp + 0x10]
ja 0x6680ae
mov ecx, edx
movzx ebx, cx
movzx ecx, word [eax + 2]
movzx edx, dx
add ecx, edx
movzx edx, word [esi + 2]
movzx edi, di
add edx, edi
cmp edx, ecx
mov edi, edx
jl 0x6680cb
mov edi, ecx
mov si, word [esi]
cmp si, word [esp + 0x84]
jne 0x66812d
mov cx, word [eax]
cmp cx, word [esp + 0x7c]
jne 0x66812d
cmp ebx, edi
mov esi, ebx
jge 0x66818b
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x54]
call dword [edx + 0x60]
mov dword [eax], esi
mov dword [eax + 4], ebx
mov dword [eax + 8], 0
cmp dword [esp + 0x5c], 0
jne 0x668114
mov dword [esp + 0x5c], eax
jmp 0x66811b
mov ecx, dword [esp + 0x60]
mov dword [ecx + 8], eax
add dword [esp + 0x58], 1
add esi, 1
cmp esi, edi
mov dword [esp + 0x60], eax
jl 0x6680f0
jmp 0x66818b
cmp si, word [esp + 0x7c]
jne 0x66818b
mov dx, word [esp + 0x84]
cmp word [eax], dx
jne 0x66818b
cmp ebx, edi
mov esi, ebx
jge 0x66818b
mov ebx, dword [esp + 0x18]
add ebx, 0xffffffff
mov edi, edi
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x54]
call dword [eax + 0x60]
mov dword [eax], esi
mov dword [eax + 4], ebx
mov dword [eax + 8], 0
cmp dword [esp + 0x5c], 0
jne 0x668174
mov dword [esp + 0x5c], eax
jmp 0x66817b
mov ecx, dword [esp + 0x60]
mov dword [ecx + 8], eax
add dword [esp + 0x58], 1
add esi, 1
cmp esi, edi
mov dword [esp + 0x60], eax
jl 0x668150
cmp edi, dword [esp + 0x4c]
jge 0x6681c3
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
push edi
call fcn.0048a390
mov ecx, dword [esp + 0x20]
mov esi, eax
lea eax, [esp + 0x28]
push eax
push edi
call fcn.0048a390
mov di, word [esp + 0x10]
cmp di, word [esp + 0x4c]
mov ebx, eax
jbe 0x668080
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x10]
push ecx
push edx
mov ecx, ebp
xor ebx, ebx
call fcn.0048a390
mov di, word [esp + 0x10]
cmp di, word [esp + 0x4c]
mov dword [esp + 0x20], eax
ja 0x668290
mov esi, dword [esp + 0x1c]
add esi, 8
movzx ebp, word [esp + 0x20]
mov eax, dword [esi]
push ebp
mov ecx, esi
call dword [eax + 0x14]
cmp bx, word [esp + 0x84]
jne 0x66821e
mov cx, word [eax]
cmp cx, word [esp + 0x7c]
jne 0x66821e
movzx ebx, di
sub ebx, 1
jmp 0x668235
mov cx, word [esp + 0x84]
cmp word [eax], cx
jne 0x668264
cmp bx, word [esp + 0x7c]
jne 0x668264
movzx ebx, di
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x54]
call dword [edx + 0x60]
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], ecx
mov dword [eax], ebx
mov edx, dword [esp + 0x5c]
mov dword [eax + 8], edx
cmp dword [esp + 0x60], 0
mov dword [esp + 0x5c], eax
jne 0x66825f
mov dword [esp + 0x60], eax
add dword [esp + 0x58], 1
mov eax, dword [esi]
push ebp
mov ecx, esi
call dword [eax + 0x14]
mov edx, dword [esi]
mov bx, word [eax]
push ebp
mov ecx, esi
call dword [edx + 0x14]
add di, word [eax + 2]
add dword [esp + 0x20], 1
cmp di, word [esp + 0x4c]
jbe 0x6681f5
mov word [esp + 0x10], di
mov edi, dword [esp + 0x1c]
mov eax, 1
add dword [esp + 0x18], eax
sub dword [esp + 0x2c], eax
mov dword [esp + 0x20], edi
jne 0x668030
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x6682f2
mov esi, dword [esp + 0x78]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esp + 0x54], vtable.CBSList_struct_TBPoint_long_int__.0
mov dword [esp + 0x70], 1
lea ecx, [esp + 0x54]
call fcn.00713110
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret
xor esi, esi
cmp dword [esp + 0x8c], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
je 0x66833d
mov ecx, dword [0x912e94]
mov edx, dword [ecx]
push 0x31a5
push str.BSSKoHGame_realm.cpp
add eax, 0xffffffff
push eax
push esi
call dword [edx + 0x40]
cmp eax, esi
mov ecx, dword [esp + 0x5c]
jbe 0x66832f
sub eax, 1
mov ecx, dword [ecx + 8]
jne 0x668327
mov eax, dword [ecx]
mov dword [esp + 0x3c], eax
mov ecx, dword [ecx + 4]
jmp 0x668458
mov ecx, dword [esp + 0x5c]
mov esi, dword [ecx]
mov edx, dword [0x912e94]
mov eax, dword [edx + 0xc]
mov edi, dword [eax + 0x5c]
mov eax, dword [ecx + 4]
imul esi, edi
mov ebx, dword [ecx + 8]
imul eax, edi
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x20], ecx
mov ebp, esi
sub ebp, edx
mov dword [esp + 0x24], edx
mov edx, eax
sub edx, ecx
mov ecx, dword [esp + 0x88]
mov ecx, dword [ecx]
mov dword [esp + 0x1c], ecx
sub ecx, esi
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x88]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
sub ecx, eax
mov eax, dword [esp + 0x7c]
imul ecx, ecx
imul eax, eax
add ecx, eax
imul ecx, dword [esp + 0x94]
mov eax, edx
imul eax, edx
mov dword [esp + 0x2c], ebp
imul ebp, ebp
add eax, ebp
imul eax, dword [esp + 0x90]
add ecx, eax
test ebx, ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x10], esi
je 0x668450
jmp 0x6683e0
mov edi, dword [esp + 0x28]
lea esp, [esp]
mov ebp, dword [esp + 0x1c]
mov eax, ebx
mov edx, dword [eax + 4]
mov esi, dword [eax]
imul edx, edi
imul esi, edi
mov eax, edx
sub eax, dword [esp + 0x20]
sub ebp, esi
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x18]
sub eax, edx
mov dword [esp + 0x2c], ebp
imul ebp, ebp
imul eax, eax
add eax, ebp
imul eax, dword [esp + 0x94]
mov edi, esi
sub edi, dword [esp + 0x24]
mov ebx, dword [ebx + 8]
mov ebp, edi
imul ebp, edi
mov edi, dword [esp + 0x7c]
imul edi, edi
add ebp, edi
imul ebp, dword [esp + 0x90]
add eax, ebp
cmp eax, ecx
jge 0x668448
mov ecx, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
jmp 0x66844c
mov esi, dword [esp + 0x10]
test ebx, ebx
jne 0x6683d8
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x3c], esi
mov edx, dword [esp + 0x84]
push edx
lea eax, [esp + 0x40]
mov dword [esp + 0x44], ecx
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00702b80
mov ecx, dword [eax]
mov esi, dword [esp + 0x84]
mov dword [esp + 0x48], ecx
mov eax, dword [eax + 4]
add esp, 0xc
mov dword [esp + 0x40], eax
mov dword [esi], ecx
mov dword [esi + 4], eax
mov dword [esp + 0x54], vtable.CBSList_struct_TBPoint_long_int__.0
mov dword [esp + 0x70], 2
jmp 0x6682d4
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx]
mov eax, dword [esp + 0x70]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x60]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x64
ret