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

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
xor ebx, ebx
cmp ebp, ebx
push edi
mov esi, ecx
je 0x662626
mov dword [ebp], ebx
mov cx, word [esi + 8]
cmp cx, bx
mov edi, dword [0x912e94]
jne 0x66263b
mov dword [esp + 0x20], ebx
jmp 0x662680
cmp edi, ebx
je 0x662649
mov eax, dword [edi + 0x1a4]
cmp eax, ebx
jne 0x66264f
mov dword [esp + 0x20], ebx
jmp 0x66267c
movzx edx, cx
cmp edx, dword [eax + 0x60]
jae 0x66266a
lea ecx, [eax + 0x24]
mov eax, dword [ecx]
push edx
call dword [eax + 0x14]
mov eax, dword [eax]
mov edi, dword [0x912e94]
jmp 0x662678
cmp cx, 0xffff
jne 0x662676
mov eax, dword [eax + 0x6c]
jmp 0x662678
xor eax, eax
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x20]
test edi, edi
mov cx, word [esi + 0xa]
je 0x662692
mov eax, dword [edi + 0x1a4]
test eax, eax
jne 0x662696
xor edi, edi
jmp 0x6626cb
test cx, cx
jne 0x66269f
xor eax, eax
jmp 0x6626c9
mov edx, dword [eax + 0x1a8]
lea edi, [eax + 0x1a8]
movzx ebx, cx
mov ecx, edi
call dword [edx + 0xc]
cmp ebx, eax
jb 0x6626bb
xor eax, eax
jmp 0x6626c5
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x14]
mov eax, dword [eax]
mov ebx, dword [esp + 0x20]
mov edi, eax
test ebx, ebx
jne 0x6626df
test edi, edi
jne 0x6626f6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
test edi, edi
jne 0x6626f6
mov cx, word [ebx + 0x2a]
push ecx
call fcn.00659140
mov edi, eax
add esp, 4
test edi, edi
je case.0x662708.13
mov eax, dword [esi + 0xc]
lea ecx, [eax - 0xa]
cmp ecx, 0x50
ja case.0x662708.13
movzx edx, byte [ecx + 0x662e90]
jmp dword [edx*4 + 0x662e5c]
cmp dword [edi + 0x378], 0
mov eax, dword [0x97b5c0]
je 0x662728
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
jmp 0x662732
mov ecx, dword [eax + 0xc]
mov ebx, dword [eax + 8]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x10]
mov ebp, dword [esp + 0x1c]
add ecx, ebx
or eax, 0xffffffff
cmp ebp, ecx
jb 0x66279f
mov edx, dword [esp + 0x10]
add dword [esi + 0x14], edx
mov edx, dword [esi + 0x14]
mov dword [esi + 0x10], ecx
mov ecx, dword [0x97b5c0]
mov ecx, dword [ecx + 0x10]
cmp edx, ecx
jge 0x66275f
mov dword [esi + 0x14], ecx
cmp dword [esi + 0x14], 0
jle 0x66276c
mov dword [esi + 0x14], 0
cmp dword [edi + 0x378], 0
jne 0x662796
cmp eax, 0xffffffff
jne 0x66278f
mov edx, dword [esp + 0x20]
push 0
push 1
push 0
push 1
push edx
call fcn.00676a00
add esp, 0x14
test eax, eax
jne 0x662796
mov dword [esi + 0x14], eax
mov ecx, dword [esi + 0x10]
add ecx, ebx
cmp ebp, ecx
jae 0x662742
mov eax, dword [esi + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
cmp dword [edi + 0x378], 0
jne 0x662800
mov eax, dword [0x97b5c0]
mov ecx, dword [eax + 0x18]
mov edi, dword [eax + 0x14]
mov eax, dword [esi + 0x10]
mov edx, dword [esp + 0x1c]
add eax, ecx
cmp edx, eax
jb 0x662807
lea ecx, [ecx]
add dword [esi + 0x14], edi
mov dword [esi + 0x10], eax
js 0x6627ea
test ebp, ebp
mov dword [esi + 0x14], 0
je 0x6627ea
mov dword [ebp], 1
mov eax, dword [esi + 0x10]
add eax, ecx
cmp edx, eax
jae 0x6627d0
mov eax, dword [esi + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
cmp dword [edi + 0x378], 0
jne 0x66287c
mov eax, dword [0x97b5c0]
mov edx, dword [eax + 0x24]
mov ecx, dword [eax + 0x20]
mov eax, dword [esi + 0x10]
mov edi, dword [esp + 0x1c]
add eax, edx
cmp edi, eax
jb 0x662883
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x14]
xor ebx, ebx
cmp eax, ebx
jle 0x66284d
neg ecx
add dword [esi + 0x14], ecx
cmp dword [esi + 0x14], ebx
jg 0x662866
jmp 0x662858
jge 0x662866
add eax, ecx
cmp eax, ebx
mov dword [esi + 0x14], eax
jl 0x662866
cmp ebp, ebx
mov dword [esi + 0x14], ebx
je 0x662866
mov dword [ebp], 1
mov eax, dword [esi + 0x10]
add eax, edx
cmp edi, eax
jae 0x662835
mov eax, dword [esi + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x10], ecx
mov eax, dword [esi + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov eax, dword [0x97b5c0]
mov ecx, dword [eax + 0x38]
cmp dword [esi + 0x14], ecx
jge 0x6628a5
mov dword [esi + 0x14], ecx
mov eax, dword [0x97b5c0]
cmp dword [edi + 0x378], 0
mov edx, dword [esp + 0x1c]
jne 0x6628f1
mov ecx, dword [eax + 0x34]
mov edi, dword [eax + 0x30]
mov eax, dword [esi + 0x10]
add eax, ecx
cmp edx, eax
jb 0x6628f4
add dword [esi + 0x14], edi
mov dword [esi + 0x10], eax
js 0x6628db
test ebp, ebp
mov dword [esi + 0x14], 0
je 0x6628db
mov dword [ebp], 1
mov eax, dword [esi + 0x10]
add eax, ecx
cmp edx, eax
jae 0x6628c1
mov eax, dword [esi + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov dword [esi + 0x10], edx
mov eax, dword [esi + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
test edi, edi
je case.0x662708.13
movzx eax, byte [edi + 0x164]
cmp eax, 4
ja case.0x662708.13
jmp dword [eax*4 + 0x662ee4]
mov eax, dword [0x97b5c0]
mov eax, dword [eax + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov ecx, dword [0x97b5c0]
mov eax, dword [ecx + 0x40]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [0x97b5c0]
mov eax, dword [edx + 0x44]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov eax, dword [0x97b5c0]
mov ecx, dword [eax + 0x4c]
mov edi, dword [eax + 0x48]
mov eax, dword [esi + 0x10]
mov edx, dword [esp + 0x1c]
add eax, ecx
cmp edx, eax
jb 0x662993
add dword [esi + 0x14], edi
mov dword [esi + 0x10], eax
js 0x66298a
test ebp, ebp
mov dword [esi + 0x14], 0
je 0x66298a
mov dword [ebp], 1
mov eax, dword [esi + 0x10]
add eax, ecx
cmp edx, eax
jae 0x662970
mov eax, dword [esi + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov eax, dword [ebx + 0x194]
cmp eax, dword [edi + 0x294]
je case.0x662708.13
mov ecx, dword [0x97b5c0]
mov eax, dword [ecx + 0x54]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
xor eax, eax
lea ecx, [edi + 0x1d0]
lea ecx, [ecx]
mov edx, dword [ecx]
test edx, edx
je 0x6629e3
mov dx, word [edx + 0x98]
cmp dx, word [ebx + 0x20]
je 0x6629fa
add eax, 1
add ecx, 4
cmp eax, 9
jb 0x6629d0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
mov eax, dword [0x97b5c0]
mov eax, dword [eax + 0x58]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
test ebx, ebx
je case.0x662708.13
cmp dword [ebx + 0x1d4], 0
je case.0x662708.13
cmp dword [esi + 0x2c], 0
je 0x662c35
mov edx, dword [ebx + 0x1c0]
lea ecx, [ebx + 0x1c0]
call dword [edx + 0xc]
test eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0
jbe 0x662c35
mov edi, edi
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x1c0]
lea edi, [ebx + 0x1c0]
push ecx
mov ecx, edi
call dword [eax + 0x14]
cmp dword [eax], 0xffffffff
je 0x662c20
mov eax, dword [esp + 0x1c]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x14]
mov eax, dword [eax]
mov edx, dword [0x914298]
mov ecx, eax
shl ecx, 6
sub ecx, eax
add ecx, ecx
sub ecx, eax
mov eax, dword [edx + ecx*4 + 0xede0]
cmp eax, 0x1f
mov edi, dword [edx + ecx*4 + 0xef38]
lea ebx, [edx + ecx*4 + 0xedb4]
je 0x662aad
cmp eax, 0x20
jne 0x662ad7
mov ebp, dword [esp + 0x20]
push 0x33
mov ecx, ebp
call fcn.0065be30
test eax, eax
je 0x662adb
cmp dword [ebx + 0x2c], 0x1f
mov ecx, dword [0x914298]
setne al
push eax
push 0x33
call fcn.005cbfe0
add edi, eax
jmp 0x662adb
mov ebp, dword [esp + 0x20]
mov eax, dword [ebx + 0x2c]
cmp eax, 0x24
je 0x662ae8
cmp eax, 0x26
jne 0x662b1c
push 0x2c
mov ecx, ebp
call fcn.0065be30
test eax, eax
je 0x662b1c
mov ecx, dword [0x914298]
push 0
push 0x2c
call fcn.005cbfe0
mov ecx, eax
imul ecx, edi
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edi, ecx
mov edx, dword [ebx + 0x58]
add ebx, 0x58
mov ecx, ebx
call dword [edx + 0xc]
test eax, eax
je 0x662be3
nop
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax + 0x14]
mov eax, dword [eax]
mov edx, dword [0x914298]
mov ecx, eax
shl ecx, 6
sub ecx, eax
add ecx, ecx
sub ecx, eax
mov eax, dword [edx + ecx*4 + 0xede0]
add edi, dword [edx + ecx*4 + 0xef38]
cmp eax, 0x1f
lea ebx, [edx + ecx*4 + 0xedb4]
je 0x662b6b
cmp eax, 0x20
jne 0x662b8f
push 0x33
mov ecx, ebp
call fcn.0065be30
test eax, eax
je 0x662b8f
cmp dword [ebx + 0x2c], 0x1f
mov ecx, dword [0x914298]
setne al
push eax
push 0x33
call fcn.005cbfe0
add edi, eax
mov eax, dword [ebx + 0x2c]
cmp eax, 0x24
je 0x662b9c
cmp eax, 0x26
jne 0x662bd0
push 0x2c
mov ecx, ebp
call fcn.0065be30
test eax, eax
je 0x662bd0
mov ecx, dword [0x914298]
push 0
push 0x2c
call fcn.005cbfe0
mov ecx, eax
imul ecx, edi
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edi, ecx
mov edx, dword [ebx + 0x58]
add ebx, 0x58
mov ecx, ebx
call dword [edx + 0xc]
test eax, eax
jne 0x662b30
test edi, edi
je 0x662c1c
mov ebp, dword [esi + 0x18]
lea ebx, [esi + 0x18]
mov ecx, ebx
call dword [ebp + 0xc]
push eax
mov ecx, ebx
call dword [ebp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov ebx, eax
add ecx, 0x1c0
mov dword [ebx], 2
mov dword [ebx + 8], edi
mov eax, dword [ecx]
push edx
call dword [eax + 0x14]
mov eax, dword [eax]
mov dword [ebx + 4], eax
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
jb 0x662a50
mov ecx, dword [ebx + 0x1d4]
mov eax, dword [ecx + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
test ebx, ebx
je case.0x662708.13
mov ebx, dword [esp + 0x20]
mov edx, dword [ebx + 0x84]
add ebx, 0x84
mov ecx, ebx
xor ebp, ebp
mov dword [esp + 0x20], ebx
call dword [edx + 0x2c]
test eax, eax
mov dword [esp + 0x14], eax
je case.0x662708.13
lea ebx, [ebx]
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call dword [eax + 0x34]
mov edx, dword [eax]
mov ecx, dword [0x912e94]
push edx
call fcn.004668b0
test eax, eax
je 0x662d33
lea ecx, [eax - 0x18]
test ecx, ecx
je 0x662d33
mov eax, dword [ecx]
call dword [eax + 0x24]
mov edi, eax
test edi, edi
mov dword [esp + 0x1c], edi
je 0x662d33
mov ecx, edi
call fcn.0055a070
test eax, eax
je 0x662d33
cmp dword [edi + 0x144], 2
jne 0x662d33
mov eax, dword [edi + 0x14c]
cmp eax, 0x3e8
jle 0x662ce2
mov eax, 0x3e8
lea ecx, [eax + eax*8]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
or edi, 0xffffffff
sub edi, ecx
add ebp, edi
cmp dword [esi + 0x2c], 0
mov dword [esp + 0x10], ebp
je 0x662d33
mov ebp, dword [esi + 0x18]
lea ebx, [esi + 0x18]
mov ecx, ebx
call dword [ebp + 0xc]
push eax
mov ecx, ebx
call dword [ebp + 0x14]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x10]
mov dword [eax], 1
mov dword [eax + 8], edi
mov ecx, dword [edx + 0x1c]
mov dword [eax + 4], ecx
cmp dword [esp + 0x14], 0
jne 0x662c80
test ebp, ebp
je case.0x662708.13
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret 8
cmp eax, 0x50
jne 0x662d64
mov eax, dword [0x97b5c0]
mov edx, dword [eax + 0x60]
mov ecx, dword [eax + 0x5c]
jmp 0x662dc0
cmp eax, 0x51
jne 0x662d76
mov eax, dword [0x97b5c0]
mov edx, dword [eax + 0x6c]
mov ecx, dword [eax + 0x68]
jmp 0x662dc0
cmp eax, 0x52
jne 0x662d88
mov eax, dword [0x97b5c0]
mov edx, dword [eax + 0x78]
mov ecx, dword [eax + 0x74]
jmp 0x662dc0
cmp eax, 0x53
jne 0x662da0
mov eax, dword [0x97b5c0]
mov edx, dword [eax + 0x84]
mov ecx, dword [eax + 0x80]
jmp 0x662dc0
cmp eax, 0x54
jne 0x662db8
mov eax, dword [0x97b5c0]
mov edx, dword [eax + 0x90]
mov ecx, dword [eax + 0x8c]
jmp 0x662dc0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x10]
mov edi, dword [esp + 0x1c]
add eax, edx
cmp edi, eax
jb 0x662e02
lea ecx, [ecx]
add dword [esi + 0x14], ecx
xor ebx, ebx
cmp ecx, ebx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x14]
jle 0x662de5
cmp eax, ebx
jl 0x662df9
jmp 0x662deb
jge 0x662df9
cmp eax, ebx
jg 0x662df9
cmp ebp, ebx
mov dword [esi + 0x14], ebx
je 0x662df9
mov dword [ebp], 1
mov eax, dword [esi + 0x10]
add eax, edx
cmp edi, eax
jae 0x662dd0
mov eax, dword [esi + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
test edi, edi
je case.0x662708.13
mov ecx, edi
call fcn.005f4770
test eax, eax
mov ecx, edi
jle 0x662e40
call fcn.005f4770
mov edx, dword [0x97b5c0]
imul eax, dword [edx + 0x98]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
call fcn.005f4770
mov ecx, dword [0x97b5c0]
imul eax, dword [ecx + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8