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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2f3c
call fcn.00624ca8
push ebx
mov ebx, dword [ebp + 8]
push esi
xor edx, edx
test byte [ebx + 0x44], 2
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x1c], edx
je 0x6084be
xor eax, eax
jmp 0x6084c1
mov eax, dword [ebx + 0x38]
inc eax
mov dword [esp + 0x4c], eax
cmp edi, edx
jge 0x6084ee
mov eax, dword [ebx + 0x94]
shl eax, 5
mov dword [esp + 0x1c], 1
mov edi, 0x7fffffff
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0xc], eax
jmp 0x60852c
mov esi, dword [ebx + 0xb0]
mov dword [esp + 0x28], edi
cmp esi, edx
je 0x608530
cmp edi, esi
jge 0x608502
mov esi, edi
cmp dword [ebp + 0xc], edx
je 0x60851c
push esi
push dword [ebx + 0xb4]
push dword [ebp + 0xc]
call fcn.00624d4e
add esp, 0xc
add dword [ebp + 0xc], esi
sub dword [ebx + 0xb0], esi
add dword [ebx + 0xb4], esi
sub edi, esi
xor edx, edx
mov dword [esp + 0x28], edi
lea ecx, [ebx + 0x54]
mov dword [esp + 0x34], ecx
call fcn.006057eb
mov ecx, dword [ebx + 0x44]
mov esi, eax
imul eax, dword [esp + 0x4c]
and ecx, 1
inc ecx
shl eax, cl
mov dword [esp + 0x20], eax
cmp dword [esp + 0x1c], edx
je 0x608587
mov ecx, dword [ebx]
cmp dword [ecx], 0
mov eax, 0xbb8
mov edx, eax
je 0x608570
mov ecx, dword [0x70b110]
cmp ecx, eax
jae 0x608570
mov edx, ecx
mov eax, dword [ebx + 0x40]
imul eax, edx
xor edx, edx
div esi
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [esp + 0x1c], eax
test edi, edi
jle 0x608dc2
mov edi, ebx
call fcn.00605995
test eax, eax
je 0x608dc2
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x6085af
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x20]
jae 0x6085b5
lea eax, [ebx + 0xc61c]
and dword [ebx + 0x48], 0
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x54], eax
je 0x6085fb
mov edi, dword [ebx]
call fcn.00603739
mov ecx, eax
mov eax, dword [ebx + 4]
sub eax, 4
mov esi, edx
cdq
mov edi, eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], edx
cdq
sub edi, eax
mov eax, dword [esp + 0x14]
sbb eax, edx
add ecx, edi
adc esi, eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], esi
xor esi, esi
cmp dword [ebx + 0x5c], esi
je 0x608606
add dword [ebx + 4], 2
mov eax, dword [ebx + 0x58]
cmp eax, 3
jne 0x60893e
lea eax, [esp + 0xa8]
mov edx, ebx
call fcn.00606674
test eax, eax
je 0x60892e
cmp dword [esp + 0x1c], esi
je 0x608638
cmp dword [esp + 0xc], esi
jne 0x6086d2
mov eax, dword [esp + 0x34]
call fcn.00605839
inc dword [ebx + 4]
mov esi, eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x64], eax
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 0x10]
cmp ecx, edx
jge 0x608697
mov eax, dword [ebx + 0x14]
and eax, 0xfff
mov edi, 0x1000
sub edi, eax
cmp esi, edi
jge 0x60866c
mov edi, esi
sub edx, ecx
cmp edi, edx
jle 0x608674
mov edi, edx
push edi
lea ecx, [ecx + ebx + 0x11c]
push ecx
lea eax, [eax + ebx + 0x811c]
push eax
call fcn.00624d4e
add dword [ebx + 4], edi
add dword [ebx + 0x14], edi
add esp, 0xc
sub esi, edi
jne 0x60864d
and dword [ebx + 0x1c], 0xfffffff8
jne 0x6086a7
inc dword [ebx + 0x18]
mov dword [ebx + 0x1c], 0x20
mov eax, dword [ebx + 0x18]
lea ecx, [eax + 1]
shl ecx, 5
sub ecx, dword [ebx + 0x1c]
shr ecx, 3
mov dword [esp + 0x50], ecx
cmp eax, 0x400
jbe 0x6086d6
add eax, 0xfffffc00
add dword [ebx + 0x14], 0xfffff000
mov dword [ebx + 0x18], eax
jmp 0x6086d6
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x1c], 0
jne 0x608afc
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0xa8]
sub eax, ecx
js 0x6088f4
xor esi, esi
cmp eax, esi
jle 0x608705
shl eax, 3
push eax
mov ecx, ebx
call fcn.00605bb2
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
cmp eax, 2
jne 0x608722
xor eax, eax
cmp dword [ebx + 0x64], 2
sete al
lea eax, [eax*4 + 2]
jmp 0x608728
imul eax, eax, 3
add eax, dword [ebx + 0x64]
imul eax, eax, 0x94
add eax, 0x705600
push 0x270
mov dword [ebx + 0x7c], eax
lea eax, [esp + 0x5cc]
push esi
push eax
call fcn.00624d48
lea eax, [esp + 0xbc]
add esp, 0xc
mov dword [esp + 0x48], esi
mov dword [esp + 0x38], eax
push 0x1210
lea eax, [esp + 0xb3c]
push esi
push eax
call fcn.00624d48
lea eax, [esp + 0xb44]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x5d4]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0xb8]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x44]
add esp, 0xc
mov dword [ebx + 0x74], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x24], eax
mov edi, 0x8c
push dword [esp + 0x48]
mov eax, dword [ebx + 0x18]
push dword [esp + 0x14]
and eax, 0x3ff
push dword [esp + 0x38]
mov eax, dword [ebx + eax*4 + 0x811c]
push dword [esp + 0x4c]
bswap eax
push ebx
mov dword [ebx + 0x20], eax
call fcn.00606715
mov edx, dword [esp + 0x24]
mov ecx, dword [edx]
sub ecx, eax
push ecx
push edx
push dword [esp + 0x48]
mov esi, ebx
push dword [esp + 0x20]
call fcn.00606998
test eax, eax
je 0x6088e5
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
add dword [esp + 0x30], edi
add dword [esp + 0x24], edi
add dword [esp + 0x40], 0x138
mov esi, 0x908
add dword [esp + 0x14], esi
cmp eax, dword [ebx + 0x38]
jbe 0x6087a6
cmp dword [ebx + 0x6c], 1
jne 0x608842
cmp dword [ebx + 0x70], 0
je 0x608842
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x700]
push ecx
lea ecx, [esp + 0xb3c]
push ecx
add eax, 0x8c
push ebx
call fcn.00606dd8
test byte [ebx + 0x44], 2
je 0x608859
mov ecx, 0x242
lea eax, [esp + 0xb38]
call fcn.0060847d
and dword [esp + 0x10], 0
lea eax, [esp + 0xb38]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1d48]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x2c]
push dword [esp + 0x3c]
push ebx
call fcn.00607ad8
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
add dword [esp + 0x14], edi
add dword [esp + 0x24], 0x900
add dword [esp + 0x30], esi
cmp eax, dword [esp + 0x4c]
jl 0x60887c
push 0x12
push dword [esp + 0x1c]
lea edx, [esp + 0x1d50]
mov ecx, ebx
call dword [ebx + 0x50]
inc dword [esp + 0x48]
add dword [esp + 0x38], 0x44
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
and eax, 1
cmp dword [esp + 0x48], eax
jg 0x60890f
xor esi, esi
jmp 0x60875b
and dword [ebx + 0x18], 0
and dword [ebx + 0x14], 0
mov dword [ebx + 0x1c], 0x20
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x18]
add eax, dword [esp + 0x20]
push eax
push 0
push dword [esp + 0x20]
call fcn.00624d48
add esp, 0xc
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
cmp eax, esi
ja 0x608d78
cmp dword [ebp + 0xc], 0
je 0x608928
add dword [ebp + 0xc], eax
sub esi, eax
mov dword [esp + 0x28], esi
cmp dword [esp + 0x28], 0
jg 0x60858f
jmp 0x608dc2
cmp eax, 1
jne 0x6089fb
cmp dword [ebx + 0x6c], eax
jne 0x608958
mov eax, dword [ebx + 0x70]
lea eax, [eax*8 + 8]
jmp 0x608960
mov ecx, dword [ebx + 0x38]
push 0x20
pop eax
shl eax, cl
mov dword [ebx + 0x78], eax
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x6c]
push eax
mov edx, ebx
call fcn.00607f46
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 0x10]
jge 0x608dc2
cmp dword [esp + 0x1c], esi
jne 0x608afc
push 0xc
pop esi
mov ecx, dword [ebx + 0x38]
mov eax, 0x80
shl eax, cl
push eax
lea eax, [esp + 0x1cc]
push 0
push eax
call fcn.00624d48
add esp, 0xc
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x1d0]
mov edx, ebx
call fcn.00607fb1
test byte [ebx + 0x44], 2
je 0x6089dd
push 0x20
pop ecx
lea eax, [esp + 0x1c8]
call fcn.0060847d
push 1
push dword [esp + 0x1c]
lea edx, [esp + 0x1d0]
mov ecx, ebx
call dword [ebx + 0x50]
dec esi
mov dword [esp + 0x18], eax
jne 0x608990
jmp 0x60890f
cmp eax, 2
jne 0x60892e
mov eax, dword [esp + 0x34]
test byte [eax], 1
je 0x608a24
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x60]
add eax, eax
sub eax, dword [ebx + 0x38]
add eax, eax
movzx eax, byte [ecx + eax*8 + 0x707ac0]
jmp 0x608a27
push 4
pop eax
movzx edx, byte [eax + 0x707aa8]
mov ecx, dword [ebx + 0x38]
shl edx, cl
cmp dword [ebx + 0x6c], 1
mov dword [ebx + 0x74], edx
jne 0x608a4b
mov ecx, dword [ebx + 0x70]
lea ecx, [ecx*8 + 8]
mov dword [ebx + 0x78], ecx
jmp 0x608a4e
mov dword [ebx + 0x78], edx
cdq
sub eax, edx
lea ecx, [esp + 0x838]
push ecx
lea ecx, [esp + 0xac]
sar eax, 1
mov eax, dword [eax*4 + 0x70b278]
push ecx
mov edx, ebx
call fcn.00608054
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 0x10]
jge 0x608dc2
cmp dword [esp + 0x1c], esi
jne 0x608afc
xor esi, esi
mov ecx, dword [ebx + 0x38]
mov eax, 0x180
shl eax, cl
push eax
lea eax, [esp + 0x2cc]
push 0
push eax
call fcn.00624d48
add esp, 0xc
mov eax, esi
sar eax, 2
lea ecx, [esp + 0x2c8]
push ecx
shl eax, 8
lea eax, [esp + eax + 0x83c]
push ebx
lea ecx, [esp + 0xb0]
call fcn.00608138
test byte [ebx + 0x44], 2
je 0x608adb
push 0x60
pop ecx
lea eax, [esp + 0x2c8]
call fcn.0060847d
push 3
push dword [esp + 0x1c]
lea edx, [esp + 0x2d0]
mov ecx, ebx
call dword [ebx + 0x50]
inc esi
mov dword [esp + 0x18], eax
cmp esi, 0xc
jl 0x608a85
jmp 0x60890f
xor esi, esi
cmp dword [esp + 0xc], esi
jne 0x608ca9
mov eax, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x811c]
mov edx, eax
neg edx
sbb edx, edx
and edx, 0x9891fe16
add edx, 0x676e6958
mov dword [esp + 0x14], esi
cmp ecx, edx
je 0x608b49
neg eax
sbb eax, eax
and eax, 0x909a011d
add eax, 0x6f666e49
cmp ecx, eax
jne 0x608bc2
mov dword [esp + 0x14], 1
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx]
cdq
add dword [ecx + 0x18], eax
mov eax, 0x408e
adc dword [ecx + 0x1c], edx
sub eax, dword [ebx + 0x5c]
lea eax, [ebx + eax*2]
mov dl, byte [eax + 7]
add eax, 8
mov byte [esp + 0x2f], dl
mov dword [esp + 0x10], eax
test dl, 1
je 0x608b88
cmp dword [ebp + 0x10], 0xfffffffe
jne 0x608b81
mov ecx, dword [eax]
bswap ecx
mov dword [esp + 0xc], ecx
add eax, 4
mov dword [esp + 0x10], eax
test dl, 2
je 0x608c30
mov edi, dword [eax]
bswap edi
cmp edi, esi
je 0x608c27
mov esi, dword [ebx]
call fcn.006037d7
sub edi, eax
mov eax, dword [esi + 0x18]
add edi, 0x2000
add eax, 0x4000
cmp edi, eax
jbe 0x608c23
and dword [esp + 0xc], 0
jmp 0x608c9f
mov eax, dword [esp + 0x34]
call fcn.0060580e
mov ecx, eax
mov eax, ebx
sub eax, ecx
cmp dword [eax + 0x8140], 0x49524256
jne 0x608d1e
movzx ecx, byte [eax + 0x8146]
movzx edx, byte [eax + 0x8147]
shl ecx, 8
or ecx, edx
cmp dword [ebp + 0x10], 0xfffffffe
mov dword [ebx + 0xa8], ecx
jne 0x608d1e
mov eax, dword [eax + 0x814e]
or dword [ebx + 0x80], 0xffffffff
bswap eax
mov dword [esp + 0xc], eax
mov dword [ebp + 0x10], 0xfffffffd
jmp 0x608dc2
mov dl, byte [esp + 0x2f]
add dword [esp + 0x10], 4
mov eax, dword [esp + 0x10]
test dl, 4
je 0x608c52
cmp dword [esp + 0x14], 0
jne 0x608c4f
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
push 0x19
lea edi, [ebx + 0xb8]
pop ecx
rep movsd dword es:[edi], dword [esi]
add eax, 0x64
test dl, 8
je 0x608c5a
add eax, 4
mov eax, dword [eax + 0x14]
bswap eax
and eax, 0xffffff
je 0x608c94
mov edx, eax
shr edx, 0xc
mov ecx, 0xfff
and edx, ecx
add edx, 0x211
and eax, ecx
add eax, 0xfffffdef
mov dword [ebx + 0xa8], edx
mov dword [ebx + 0xac], eax
jns 0x608c94
and dword [ebx + 0xac], 0
cmp dword [esp + 0xc], 0
jne 0x608db1
mov dword [esp + 0x3c], 1
jmp 0x608d1e
cmp dword [esp + 0x3c], esi
je 0x608cb9
dec dword [esp + 0xc]
mov dword [esp + 0x3c], esi
jmp 0x608d1e
mov eax, dword [ebx + 0x94]
lea ecx, [eax + 1]
shl ecx, 5
cmp dword [esp + 0xc], ecx
jne 0x608d1e
test al, al
jne 0x608ce8
lea eax, [eax*8 + 0x800]
push eax
push dword [ebx + 0x90]
call fcn.005ff91b
mov dword [ebx + 0x90], eax
mov ecx, dword [ebx + 0x94]
mov eax, dword [ebx + 0x90]
mov edx, dword [esp + 0x58]
mov dword [eax + ecx*8], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + ecx*8 + 4], edx
mov ecx, dword [ebp + 0x10]
inc dword [ebx + 0x94]
and ecx, 0x7fffffff
cmp dword [ebx + 0x94], ecx
jae 0x608dc2
mov ecx, dword [ebx + 0x80]
mov edx, dword [ebx + 0x60]
cmp ecx, edx
je 0x608d38
test ecx, ecx
je 0x608d32
or edx, 0xffffffff
mov dword [ebx + 0x80], edx
inc dword [esp + 0xc]
cmp dword [ebp + 0x10], 0xfffffffe
jne 0x608d64
cmp dword [esp + 0x3c], 0
jne 0x608d56
mov esi, dword [esp + 0x34]
call fcn.0060579d
add dword [esp + 0x44], eax
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0xc], eax
jae 0x608dc2
cmp dword [ebp + 0x10], 0xfffffffe
jl 0x60892e
call fcn.00602cf1
test eax, eax
jne 0x608dc2
jmp 0x60892e
cmp dword [ebp + 0xc], 0
je 0x608d91
push esi
lea eax, [ebx + 0xc61c]
push eax
push dword [ebp + 0xc]
call fcn.00624d4e
add esp, 0xc
lea eax, [esi + ebx + 0xc61c]
mov dword [ebx + 0xb4], eax
mov eax, dword [esp + 0x20]
sub eax, esi
mov dword [ebx + 0xb0], eax
xor esi, esi
jmp 0x608ea8
cmp dword [esp + 0x14], 0
jne 0x608dbf
or dword [ebx + 0x80], 0xffffffff
dec dword [ebp + 0x10]
xor ecx, ecx
cmp dword [esp + 0x1c], ecx
je 0x608ea0
cmp dword [ebp + 0x10], 0xfffffffd
jl 0x608df1
mov eax, dword [ebx + 0x44]
test al, 2
jne 0x608dde
mov ecx, dword [ebx + 0x38]
and eax, 1
lea ecx, [eax + ecx + 1]
shl dword [ebx + 0xa8], cl
shl dword [ebx + 0xac], cl
cmp dword [ebp + 0x10], 0xfffffffe
jne 0x608e2e
cmp dword [esp + 0xc], 1
jbe 0x608e2e
mov esi, dword [ebx]
call fcn.006037d7
push 0
push dword [esp + 0x10]
push edx
push eax
call fcn.00624c38
mov ecx, dword [esp + 0x44]
xor esi, esi
push esi
push dword [esp + 0x48]
shr ecx, 1
add eax, ecx
adc edx, esi
push edx
push eax
call fcn.00624cd8
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x98], eax
mul dword [esp + 0xc]
mov esi, eax
mov eax, dword [ebx + 0xac]
add eax, dword [ebx + 0xa8]
mov ecx, edx
cdq
cmp edx, ecx
ja 0x608e57
jb 0x608e5b
cmp eax, esi
jb 0x608e5b
mov eax, esi
mov edx, ecx
sub esi, eax
sbb ecx, edx
cmp dword [ebx + 0xa4], ecx
jb 0x608e77
ja 0x608e71
cmp dword [ebx + 0xa0], esi
jb 0x608e77
cmp dword [ebx + 0xc], 0
jne 0x608e9c
cmp dword [ebx + 0xc], 0
mov dword [ebx + 0xa0], esi
mov dword [ebx + 0xa4], ecx
jne 0x608e9c
mov edi, dword [ebx]
call fcn.00603739
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x8c], edx
xor eax, eax
jmp 0x608f0e
mov esi, dword [esp + 0x28]
cmp esi, ecx
jne 0x608ec7
mov edi, ebx
call fcn.00605995
test eax, eax
je 0x608ec7
mov eax, dword [ebx + 0x10]
cmp eax, dword [ebx + 0xc]
jne 0x608f09
mov eax, dword [esp + 0x20]
cmp dword [ebx + 0xac], eax
jbe 0x608f09
mov eax, dword [ebx + 0xac]
xor edx, edx
div dword [esp + 0x20]
cmp dword [ebx + 0xb0], edx
ja 0x608f09
push dword [ebx]
call fcn.0060377b
test eax, eax
je 0x608f09
mov eax, dword [ebx + 0xac]
xor edx, edx
div dword [esp + 0x20]
sub edx, dword [ebx + 0xb0]
add esi, edx
cmp esi, dword [ebp + 0x10]
jle 0x608f02
mov esi, dword [ebp + 0x10]
and dword [ebx + 0xb0], 0
mov eax, dword [ebp + 0x10]
sub eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc