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

Disassembly:
sub esp, 0x50
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi + 0xc54], ebp
jg 0x663ec0
push ebx
mov ebx, 1
add dword [esi + 0xc4c], ebx
mov eax, dword [esi + 0xc4c]
cmp eax, 0x64
push edi
mov edi, dword [0x103046c4]
jle 0x663458
mov dword [esi + 0xc4c], ebp
call edi
mov ecx, dword [esi + 0x18]
mov ecx, dword [ecx + 0xc]
and eax, 0x7fffffff
cmp dword [esi + 0xfc4], ebp
je 0x663458
cmp ecx, ebp
je 0x663458
add ecx, 0xea60
cmp ecx, eax
jle 0x663458
mov edx, dword [esi]
mov eax, dword [edx + 0xe8]
mov ecx, esi
call eax
cmp byte [esi + 0x88a], 0
je 0x663470
mov ecx, dword [esi + 0x1c]
call fcn.007b0ed8
mov byte [esi + 0x88a], 0
mov ecx, dword [esi + 0x1c]
push ebp
call fcn.007af373
mov ecx, esi
call fcn.0065f3d0
test eax, eax
jne 0x663ebe
cmp dword [esi + 0xcc8], ebp
je 0x663499
push esi
call fcn.0068e225
add esp, 4
cmp dword [esi + 0x608], ebp
jg 0x6634ad
mov ecx, dword [esi + 0x18]
mov ecx, dword [ecx + 4]
push esi
call 0x571ca6
cmp byte [esi + 0x618], 0
je 0x663506
mov eax, dword [esi + 0x61c]
cmp eax, ebp
je 0x663ebe
cmp byte [eax + 0x18], 0
je 0x663ebe
cmp dword [eax + 0x14], ebx
jne 0x663ebe
call edi
mov edx, dword [esi + 0x61c]
and eax, 0x7fffffff
sub eax, dword [edx + 0x10]
cmp eax, 0x3a98
jl 0x663ebe
push ebp
push esi
call 0x589a5c
add esp, 8
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x50
ret 4
cmp dword [esi + 0x764], ebp
je 0x663520
mov eax, dword [esi]
mov edx, dword [eax + 0x60]
push ebp
push ebp
push ebp
mov ecx, esi
mov dword [esi + 0x764], ebp
call edx
cmp dword [esi + 0x608], ebp
jg 0x663ebe
cmp byte [esi + 0x60c], 0
jne 0x663ebe
cmp dword [esi + 0x690], ebp
je 0x663ebe
cmp dword [esi + 0x680], ebp
jne 0x663ebe
call edi
and eax, 0x7fffffff
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], ebp
call edi
mov edi, eax
and edi, 0x7fffffff
cmp dword [esi + 0x7b8], ebp
je 0x66359d
mov ecx, esi
call 0x61fda4
test eax, eax
je 0x66359d
call dword [0x10304628]
sub edi, dword [esi + 0x7b8]
cmp edi, eax
jle 0x66359d
mov dword [esi + 0x7b8], ebp
mov dword [esi + 0x7b4], ebp
push esi
lea ecx, [esp + 0x1c]
call 0x6479d0
call fcn.00664bfc
mov ecx, dword [esi + 0xa94]
call 0x58e93d
mov ecx, dword [esi + 0x4d8]
mov dword [esp + 0x1c], eax
cmp ecx, ebp
je 0x6635ca
call fcn.007016d5
mov ecx, dword [esi + 0xa98]
call 0x5d346a
mov ecx, dword [esi + 0xa90]
call 0x5e3198
lea eax, [esi + 0xaa8]
push ebp
push eax
call 0x5d001c
lea edi, [esi + 0xaa0]
add esp, 8
cmp dword [edi], ebp
je 0x663709
mov ecx, dword [esi + 0x1c]
push 0x80
push ecx
lea ecx, [esp + 0x58]
call 0x653710
lea edx, [esp + 0x50]
mov dword [esi + 0xaa4], edx
mov ecx, dword [edi]
cmp ecx, ebp
je 0x663631
call fcn.00678094
mov edi, dword [edi]
mov ecx, dword [edi + 0x20]
add edi, 0x20
cmp ecx, ebp
jne 0x663620
cmp dword [esi + 0xaa0], ebp
lea edi, [esi + 0xaa0]
je 0x6636fa
mov eax, dword [edi]
cmp dword [eax + 0xd4], ebp
je 0x663655
lea edi, [eax + 0x20]
jmp 0x6636f2
mov eax, dword [eax + 0x18]
push eax
push esi
lea ecx, [esp + 0x44]
call 0x612cad
mov ecx, dword [edi]
call fcn.00676e4c
mov ecx, dword [edi]
call fcn.00675e04
mov ecx, dword [edi]
call fcn.006763fb
mov ecx, dword [edi]
call fcn.00676744
mov ecx, dword [edi]
call fcn.00677ee2
mov ecx, dword [edi]
cmp dword [ecx + 0xd8], ebp
je 0x66386b
mov ebx, dword [ecx + 0xb4]
cmp ebx, ebp
je 0x663848
mov ecx, dword [ebx + 0x18]
cmp ecx, ebp
je 0x6636ae
call 0x5ac5fb
mov ebx, dword [ebx + 0xc]
cmp ebx, ebp
jne 0x6636a2
mov ecx, dword [edi]
mov ebx, dword [ecx + 0xb4]
cmp ebx, ebp
je 0x6636d9
cmp byte [ebx + 0x29], 0
je 0x6636d2
mov ecx, ebx
call fcn.0067d176
mov byte [ebx + 0x29], 0
mov ebx, dword [ebx + 0xc]
cmp ebx, ebp
jne 0x6636c1
mov ecx, dword [edi]
call fcn.00675e2f
mov edi, dword [edi]
or dword [esp + 0x1c], eax
add edi, 0x20
lea ecx, [esp + 0x3c]
call fcn.00611e05
cmp dword [edi], ebp
jne 0x663643
lea ecx, [esp + 0x50]
mov dword [esi + 0xaa4], ebp
call 0x64f9c0
mov edi, dword [esp + 0x64]
cmp dword [esp + 0x1c], ebp
je 0x66373f
cmp edi, ebp
je 0x66373f
fld qword [esi + 0x688]
fstp qword [esp + 0x1c]
fld qword [esp + 0x1c]
fistp dword [esp + 0x64]
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x64]
jge 0x66373f
mov eax, dword [esi]
mov edx, dword [eax + 0x98]
mov ecx, esi
call edx
mov ecx, dword [esi + 0xab0]
cmp ecx, ebp
je 0x66374e
call 0x5bf000
mov ecx, dword [esi + 0xaac]
cmp ecx, ebp
je 0x66375e
push esi
call 0x5aa772
mov eax, dword [esi + 0x18]
cmp dword [eax + 8], ebp
je 0x6637fb
mov ecx, dword [eax + 8]
push esi
call 0x61f433
lea eax, [esi + 0x1cc]
push eax
lea ecx, [esp + 0x34]
call 0x602c90
lea ecx, [esp + 0x30]
call 0x602cc0
mov dword [esp + 0x64], eax
cmp eax, ebp
je 0x6637f2
mov ecx, dword [esp + 0x64]
cmp dword [ecx + 0x74], 0
je 0x6637df
call 0x63e920
mov ebp, dword [eax + 0x40]
test ebp, ebp
je 0x6637df
cmp dword [ebp + 0x1c], 0
je 0x6637df
cmp dword [ebp + 0x28], 0
jne 0x6637df
cmp byte [ebp + 0x137], 0
jne 0x6637df
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 0x4c]
test dword [eax + 0x53c], 0x800
jne 0x6637df
mov ecx, dword [ebp + 0x38]
cmp dword [ecx + 0x18], 0
jne 0x6638bd
lea ecx, [esp + 0x30]
call 0x602cc0
mov dword [esp + 0x64], eax
test eax, eax
jne 0x663794
xor ebp, ebp
lea ecx, [esp + 0x30]
call 0x602cb0
cmp edi, ebp
je 0x663a07
fld qword [esi + 0x688]
fstp qword [esp + 0x1c]
fld qword [esp + 0x1c]
fistp dword [esp + 0x64]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x64]
jge 0x663a07
mov ecx, dword [esi + 0x4d4]
call 0x5bc6e3
mov ecx, esi
call 0x65b660
lea ecx, [esp + 0x18]
call 0x64d5e0
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x50
ret 4
cmp dword [ecx + 0x18], ebp
jne 0x6636b5
mov edx, dword [ecx + 0x20]
mov dword [edi], edx
cmp ecx, ebp
je 0x6636e9
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
jmp 0x6636e9
mov ecx, dword [ecx + 0x78]
call 0x5cd51e
test eax, eax
jne 0x6636b5
mov ebx, dword [edi]
mov eax, dword [ebx + 0x20]
mov dword [edi], eax
cmp dword [ebx + 0x18], ebp
je 0x6638ae
mov ecx, ebx
call fcn.00676964
mov ecx, ebx
test eax, eax
je 0x6638a8
call fcn.00675edf
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
jmp 0x6636e9
push ebp
call fcn.00675e75
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
jmp 0x6636e9
mov edx, dword [esp + 0x64]
mov edi, dword [edx + 0x28]
mov ecx, ebp
call 0x61d6ce
sub eax, edi
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.0064b130
cmp eax, 5
jle 0x6639e0
fld qword [esi + 0x688]
fstp qword [esp + 0x1c]
fld qword [esp + 0x1c]
fistp dword [esp + 0x28]
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x564]
mov dword [esi + ecx*4 + 0x550], eax
mov eax, dword [esi + 0x564]
inc eax
cdq
mov ecx, 5
idiv ecx
lea ebx, [esi + 0x550]
xor eax, eax
xor edi, edi
mov dword [esp + 0x28], ecx
mov dword [esi + 0x564], edx
mov edx, ebx
lea ecx, [ecx]
mov ecx, dword [edx]
cmp edi, ecx
jg 0x663938
mov edi, ecx
add eax, ecx
add edx, 4
sub dword [esp + 0x28], 1
jne 0x663930
mov ecx, edi
sub eax, ecx
cdq
and edx, 3
add eax, edx
mov dword [esp + 0x28], edi
mov edi, eax
sar edi, 2
lea edx, [edi - 0xb]
cmp edx, 0x3dc
ja 0x6639cc
mov ebx, dword [esi + 0x4c4]
fld qword [ebx + 0x218]
add ebx, 0x218
call fcn.00865350
fld qword [ebx]
add edi, eax
fmul qword [0x103049e0]
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
fstp qword [esp + 0x1c]
sar ecx, 2
and ecx, 3
mov ecx, dword [ecx*4 + 0x1030b168]
shl eax, cl
lea ecx, [eax + eax*4]
add ecx, ecx
mov eax, 0x4a4dc96f
imul ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
fld qword [esp + 0x1c]
fistp dword [esp + 0x28]
mov edx, dword [esp + 0x28]
lea eax, [edx + edi]
cdq
idiv ecx
add dword [esp + 0x10], eax
jmp 0x6639e0
test ecx, ecx
jle 0x6639e0
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], eax
call 0x602cb0
lea ecx, [esp + 0x18]
call 0x64d5e0
cmp dword [esp + 0x10], 0
jle 0x663ebe
jmp 0x663a10
lea ecx, [esp + 0x18]
call 0x64d5e0
mov edx, dword [esi + 0x4c4]
fld qword [edx + 0x218]
fild dword [esp + 0x10]
fmul st(1)
fadd qword [esi + 0x688]
fst qword [esi + 0x688]
fild dword [esp + 0x14]
fxch st(2)
fadd st(0), st(0)
fld st(0)
fadd st(2)
fcomp st(3)
fnstsw ax
test ah, 5
jnp 0x663e2a
fsubp st(1)
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x663e2e
fstp st(0)
cmp dword [esp + 0x10], 0
je 0x663cf3
mov ebp, dword [esp + 0x28]
jmp 0x663a70
dec dword [esp + 0x10]
lea eax, [esi + 0x1b4]
push eax
lea ecx, [esp + 0x20]
call 0x603750
lea ecx, [esp + 0x1c]
call 0x603770
mov edi, eax
test edi, edi
je 0x663b27
cmp dword [edi + 0x74], 0
je 0x663b09
mov ecx, edi
call 0x63e920
cmp dword [eax + 0x40], 0
je 0x663b09
cmp edi, ebp
je 0x663b09
mov ecx, edi
call 0x63e920
mov eax, dword [eax + 0x40]
cmp dword [eax + 0x1c], 0
je 0x663b09
cmp dword [eax + 0x28], 0
jne 0x663b09
mov eax, dword [edi + 0x4c]
test dword [eax + 0x53c], 0x800
jne 0x663b09
mov ecx, edi
call 0x63e920
mov ecx, dword [eax + 0x40]
mov eax, dword [ecx + 0x38]
cmp dword [eax + 0x18], 0
je 0x663b14
mov ebx, dword [edi + 0x28]
mov ecx, edi
call 0x63e920
mov ecx, dword [eax + 0x40]
call 0x61d6ce
cmp eax, ebx
jge 0x663b09
mov ecx, edi
call 0x63e920
cmp dword [eax + 4], 0
je 0x663b14
push 0
push 1
mov ecx, edi
call 0x643950
lea ecx, [esp + 0x1c]
call 0x603770
mov edi, eax
test edi, edi
jne 0x663a97
lea ecx, [esp + 0x1c]
call 0x607fc0
cmp byte [esi + 0xad9], 0
je 0x663b87
lea eax, [esi + 0x1b4]
push eax
lea ecx, [esp + 0x40]
mov byte [esi + 0xad9], 0
call 0x603750
lea ecx, [esp + 0x3c]
call 0x603770
test eax, eax
je 0x663b7e
lea ecx, [ecx]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x663b71
mov ecx, eax
call 0x643650
lea ecx, [esp + 0x3c]
call 0x603770
test eax, eax
jne 0x663b60
lea ecx, [esp + 0x3c]
call 0x607fc0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x663b93
call fcn.006fa92b
mov ecx, dword [esi + 0x4d4]
call 0x5bca0f
mov ecx, esi
call 0x65b660
mov edx, dword [esi + 0x49c]
mov ecx, dword [esi + 0x498]
push edx
call 0x604a70
push 0
mov ecx, esi
call fcn.0060cbc0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x663bcc
call fcn.006fafb1
lea eax, [esi + 0x1d4]
push eax
lea ecx, [esp + 0x54]
call 0x602c90
lea ecx, [esp + 0x50]
call 0x602cc0
mov edi, eax
test edi, edi
je 0x663cdf
nop
mov ecx, dword [edi + 0x4c]
test ecx, ecx
je 0x663cc8
call 0x632bf0
test eax, eax
je 0x663cc8
mov ecx, dword [edi + 0x4c]
call 0x632c20
test al, al
jne 0x663cc8
mov ecx, dword [edi + 0x4c]
cmp byte [ecx + 0x291], al
jne 0x663cc8
call 0x632bf0
push edi
lea ecx, [esi + 0x1d4]
mov ebx, eax
call 0x603700
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call 0x57ed68
push 0
push 1
mov ecx, esi
mov edx, eax
call fcn.0064f6a0
mov edx, dword [edx]
push 0
push edx
push eax
call fcn.006575e0
mov ecx, dword [esp + 0x30]
push ecx
mov ebp, eax
call fcn.00864d2b
xor eax, eax
add esp, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
cmp ebp, eax
jne 0x663c82
mov ebp, dword [edi + 0x4c]
mov ebx, dword [ebx + 0x28]
push ebp
lea ecx, [esp + 0x68]
mov dword [esp + 0x68], 2
call 0x6023f0
mov ecx, dword [edi + 0x4c]
call 0x632c10
test ebx, ebx
je 0x663cc0
push 0
push 1
lea edx, [esp + 0x6c]
push edx
push 0x1030bd4c
push ebx
mov ecx, esi
call 0x65c540
lea esp, [esp]
mov dword [esp + 0x64], 0
lea ecx, [esp + 0x50]
call 0x602cc0
mov edi, eax
test edi, edi
jne 0x663bf0
mov ebp, dword [esp + 0x28]
lea ecx, [esp + 0x50]
call 0x602cb0
cmp dword [esp + 0x10], 0
jne 0x663a70
mov eax, dword [esi]
mov ebp, dword [esp + 0x10]
mov edx, dword [eax + 0x7c]
mov ecx, esi
dec ebp
call edx
mov ecx, dword [esi + 0xa9c]
xor ebx, ebx
push ebx
push 2
call 0x61be56
mov edi, dword [esi + 0xaa0]
cmp edi, ebx
je 0x663d36
jmp 0x663d20
mov ecx, dword [edi + 0xdc]
cmp ecx, ebx
je 0x663d2f
call 0x5a6f1b
mov edi, dword [edi + 0x20]
cmp edi, ebx
jne 0x663d20
push ebx
push esi
lea ecx, [esi + 0x6e0]
call 0x64b7f0
push ebx
mov ecx, esi
call fcn.00660e30
lea ecx, [esi + 0x524]
call 0x615a4a
mov ecx, esi
call 0x652ad0
cmp dword [esi + 0x65c], ebx
je 0x663d79
lea eax, [esi + 0x69c]
push eax
mov ecx, esi
call 0x654600
mov dword [esi + 0x65c], ebx
cmp dword [esi + 0x47c], ebx
jne 0x663db6
cmp dword [esi + 0x598], ebx
jne 0x663db6
mov eax, dword [esi + 0x698]
cmp eax, ebx
jl 0x663db6
push ebx
push eax
lea edi, [esi + 0x69c]
push edi
mov ecx, esi
call fcn.00662800
mov ecx, dword [esi + 0x6a0]
mov edx, dword [edi]
push ecx
push edx
push 2
mov ecx, esi
call 0x653740
mov eax, dword [esi]
mov edx, dword [eax + 0x98]
mov ecx, esi
call edx
cmp dword [esi + 0x53c], ebx
je 0x663ea2
call dword [0x103046c4]
mov edx, dword [esi + 0x4c4]
mov ecx, eax
and ecx, 0x7fffffff
sub ecx, dword [esp + 0x14]
mov edi, 1
mov dword [esp + 0x64], ecx
fild dword [esp + 0x64]
fcomp qword [edx + 0x218]
fnstsw ax
test ah, 0x41
je 0x663e39
cmp ebp, edi
jg 0x663e39
fld qword [edx + 0x218]
fmul qword [0x10305f90]
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
fistp dword [esp + 0x64]
cmp ecx, dword [esp + 0x64]
jge 0x663e3f
add dword [esi + 0x56c], edi
jmp 0x663e3f
fstp st(1)
fstp st(0)
fstp qword [esi + 0x688]
jmp 0x663a58
add dword [esi + 0x568], edi
add dword [esi + 0x570], edi
mov eax, dword [esi + 0x570]
cmp eax, 4
jle 0x663e9c
cmp dword [esi + 0x540], 0xa
jle 0x663e9c
mov edx, 2
cmp dword [esi + 0x538], edx
jne 0x663e7b
mov ecx, dword [esi + 0x568]
lea ecx, [ecx + ecx*2]
cmp ecx, eax
jle 0x663e9c
mov dword [esi + 0x538], ebx
jmp 0x663e8e
mov ecx, dword [esi + 0x56c]
lea ecx, [ecx + ecx*2]
cmp ecx, eax
jle 0x663e9c
mov dword [esi + 0x538], edx
push edx
mov ecx, esi
mov dword [esi + 0x540], ebx
call 0x65c850
add dword [esi + 0x540], edi
mov ecx, dword [esi + 0x1c]
add ecx, 0x354
call fcn.007b01ae
mov edx, dword [esi + 0x1c]
mov ecx, dword [edx + 0x334]
call fcn.007ae9b2
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x50
ret 4