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

Disassembly:
sub esp, 0x84
push ebx
push ebp
push esi
mov esi, dword [esp + 0x94]
mov eax, dword [esi + 0x58]
cmp eax, 2
push edi
mov ecx, 0xffffff7d
jl 0x464227
mov eax, dword [esi + 4]
test eax, eax
je 0x464227
mov eax, dword [esi + 0x34]
cmp eax, 0xffffffff
jle 0x464227
xor ebx, ebx
xor ebp, ebp
xor edi, edi
test eax, eax
jle 0x46421d
push edi
push esi
call fcn.00463de0
add esp, 8
add ebx, eax
mov eax, dword [esi + 0x34]
adc ebp, edx
inc edi
cmp edi, eax
jl 0x464207
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebp
jmp 0x464239
mov dword [esp + 0x1c], 0xffffffff
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
mov ebx, ecx
cmp dword [esi + 0x58], 2
jl 0x4648fa
mov eax, dword [esi + 4]
test eax, eax
jne 0x46425a
pop edi
pop esi
pop ebp
mov eax, 0xffffff76
pop ebx
add esp, 0x84
ret
mov edx, dword [esp + 0xa0]
test edx, edx
jl 0x4648fa
mov eax, dword [esp + 0x9c]
jg 0x46427a
test eax, eax
jb 0x4648fa
cmp edx, ebp
jg 0x4648fa
jl 0x46428c
cmp eax, ebx
ja 0x4648fa
mov ecx, dword [esi + 0x34]
dec ecx
mov dword [esp + 0x30], ecx
js 0x4642ce
mov edi, dword [esi + 0x44]
mov eax, ecx
shl eax, 4
lea eax, [edi + eax + 8]
mov edi, dword [eax]
sub ebx, edi
mov edi, dword [eax + 4]
sbb ebp, edi
cmp edx, ebp
jg 0x4642c2
jl 0x4642ba
cmp dword [esp + 0x9c], ebx
jae 0x4642c2
dec ecx
sub eax, 0x10
test ecx, ecx
jge 0x4642a2
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebx
mov edx, dword [esi + 0x38]
mov ebx, dword [edx + ecx*8]
mov ebp, dword [edx + ecx*8 + 4]
lea eax, [edx + ecx*8]
mov edx, dword [eax + 8]
shl ecx, 4
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 0x44]
mov edi, dword [eax + ecx]
add eax, ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
add edx, edi
adc eax, ecx
mov dword [esp + 0x50], eax
mov eax, edi
mov dword [esp + 0x44], edi
sub eax, dword [esp + 0x18]
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x48], ecx
sbb ecx, edx
mov edx, dword [esp + 0xa0]
add eax, edi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
adc ecx, edx
cmp ebp, eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebp
jg 0x464604
jl 0x464360
cmp ebx, dword [esp + 0x20]
jae 0x464604
jmp 0x464360
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
sub ecx, ebx
sbb eax, ebp
test eax, eax
jg 0x464386
jl 0x46437e
cmp ecx, 0x2134
jae 0x464386
mov ebx, dword [esp + 0x28]
mov edi, ebp
jmp 0x4643e7
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x38]
sub edx, edi
sbb ebx, dword [esp + 0x48]
push eax
push ecx
push ebx
push edx
call fcn.004686f0
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x48]
sub ecx, edi
mov edi, dword [esp + 0x50]
sbb edi, ebx
push edi
push ecx
push edx
push eax
call fcn.00468640
mov ecx, dword [esp + 0x28]
mov ebx, eax
add ebx, ecx
mov edi, edx
adc edi, ebp
sub ebx, 0x2134
sbb edi, 0
cmp edi, ebp
jg 0x4643e7
jl 0x4643db
mov eax, ecx
cmp ebx, eax
ja 0x4643e7
mov ebx, dword [esp + 0x28]
add ebx, 1
mov edi, ebp
adc edi, 0
mov eax, dword [esi]
test eax, eax
je 0x464410
push 0
push edi
push ebx
push eax
call dword [esi + 0x2c4]
lea edx, [esi + 0x18]
push edx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edi
call fcn.00474710
add esp, 0x14
lea ebx, [ebx]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x24]
sbb ecx, edx
push ecx
push eax
lea edx, [esp + 0x6c]
push edx
call fcn.00462fe0
add esp, 0xc
cmp eax, 0xffffff80
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jne 0x464449
mov eax, edx
cmp eax, 0xffffffff
je 0x4648ae
mov eax, dword [esp + 0x14]
test eax, eax
jg 0x4644ba
jl 0x46445b
mov eax, dword [esp + 0x10]
test eax, eax
jae 0x4644ba
mov ecx, dword [esp + 0x28]
add ecx, 1
mov eax, ebp
adc eax, 0
cmp edi, eax
jl 0x464604
jg 0x464479
cmp ebx, ecx
jbe 0x464604
mov edx, ebx
or edx, edi
je 0x4648ae
add ebx, 0xffffdecc
adc edi, 0xffffffff
cmp edi, ebp
jg 0x46449c
jl 0x464498
cmp ebx, dword [esp + 0x28]
ja 0x46449c
mov ebx, ecx
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4645b7
push 0
push edi
push ebx
push eax
call dword [esi + 0x2c4]
lea eax, [esi + 0x18]
push eax
jmp 0x4645a9
lea ecx, [esp + 0x64]
push ecx
call fcn.00473f40
mov ecx, eax
and ecx, edx
add esp, 4
cmp ecx, 0xffffffff
je 0x4645b7
cmp edx, dword [esp + 0x38]
jg 0x46452d
jl 0x4644e2
cmp eax, dword [esp + 0x34]
jae 0x46452d
mov ecx, dword [esp + 0x10]
mov ebx, dword [esi + 8]
mov ebp, dword [esi + 0xc]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x34]
sub ecx, eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x38]
sbb eax, edx
test eax, eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x48], edx
jg 0x4645ea
jl 0x464526
cmp ecx, 0xac44
ja 0x4645ea
mov edi, ebp
jmp 0x4645b7
mov ecx, dword [esp + 0x28]
add ecx, 1
mov dword [esp + 0x54], ecx
mov ecx, ebp
adc ecx, 0
cmp edi, ecx
mov dword [esp + 0x58], ecx
jl 0x464604
jg 0x464555
cmp ebx, dword [esp + 0x54]
jbe 0x464604
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esi + 8]
jne 0x4645d2
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esi + 0xc]
jne 0x4645d2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add ebx, 0xffffdecc
adc edi, 0xffffffff
cmp edi, ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
jg 0x464594
jl 0x46458c
cmp ebx, dword [esp + 0x28]
ja 0x464594
mov ebx, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
mov eax, dword [esi]
test eax, eax
je 0x4645b7
push 0
push edi
push ebx
push eax
call dword [esi + 0x2c4]
lea ecx, [esi + 0x18]
push ecx
mov dword [esi + 0xc], edi
mov dword [esi + 8], ebx
call fcn.00474710
add esp, 0x14
cmp ebp, dword [esp + 0x24]
jg 0x464604
jl 0x464410
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x28], edx
jae 0x464604
jmp 0x464410
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
cmp ebp, dword [esp + 0x24]
jl 0x464360
jg 0x464604
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x28], edx
jb 0x464360
lea eax, [esi + 0x1e0]
push eax
call fcn.004758d0
lea eax, [esi + 0x250]
push eax
call fcn.004754c0
fld qword [0x489948]
mov eax, dword [esi]
fstp qword [esi + 0x68]
fld qword [0x489948]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
fstp qword [esi + 0x70]
add esp, 8
test eax, eax
mov dword [esi + 0x58], 2
je 0x464663
push 0
push ebp
push ebx
push eax
call dword [esi + 0x2c4]
lea eax, [esi + 0x18]
push eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebp
call fcn.00474710
add esp, 0x14
push 0xffffffffffffffff
lea ecx, [esp + 0x58]
push 0xffffffffffffffff
push ecx
call fcn.00462fe0
add esp, 0xc
test edx, edx
jg 0x46468e
jl 0x46467e
test eax, eax
jae 0x46468e
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x84
ret
lea edx, [esp + 0x54]
push edx
call fcn.00473fd0
mov ecx, dword [esp + 0x34]
push eax
lea edi, [esi + 0x78]
push edi
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], ecx
call fcn.00474730
lea edx, [esp + 0x60]
push edx
push edi
mov dword [esi + 0x58], 3
call fcn.00474400
lea eax, [esp + 0x88]
push eax
push edi
call fcn.004748f0
cdq
mov ecx, eax
add esp, 0x1c
or ecx, edx
je 0x464720
test edx, edx
jl 0x464810
jg 0x4646e8
test eax, eax
jb 0x464810
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
jne 0x46481d
push 0
push edi
call fcn.004748d0
lea eax, [esp + 0x7c]
push eax
push edi
call fcn.004748f0
cdq
mov ecx, eax
add esp, 0x10
or ecx, edx
jne 0x4646d6
lea eax, [esi + 0x1e0]
push eax
call fcn.004758d0
lea eax, [esi + 0x250]
push eax
call fcn.004754c0
fld qword [0x489948]
mov eax, dword [esi]
fstp qword [esi + 0x68]
fld qword [0x489948]
add esp, 8
test eax, eax
fstp qword [esi + 0x70]
mov dword [esi + 0x58], 2
je 0x464777
push 0
push ebp
push ebx
push eax
call dword [esi + 0x2c4]
lea edx, [esi + 0x18]
push edx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebp
call fcn.00474710
add esp, 0x14
lea eax, [esp + 0x54]
push eax
mov eax, esi
call fcn.004630f0
mov edi, edx
add esp, 4
test edi, edi
mov ebx, eax
mov dword [esp + 0x10], ebx
jl 0x4648ae
jg 0x4647a0
test ebx, ebx
jb 0x4648ae
lea ecx, [esp + 0x54]
push ecx
call fcn.00473f40
add esp, 4
cmp edx, 0xffffffff
jg 0x4647f6
jl 0x4647b9
cmp eax, 0xffffffff
ja 0x4647f6
lea edx, [esp + 0x54]
push edx
call fcn.00473f20
add esp, 4
test eax, eax
je 0x4647f6
lea eax, [esp + 0x54]
push eax
mov eax, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edi
call fcn.004630f0
mov edi, edx
add esp, 4
test edi, edi
mov ebx, eax
jg 0x4647a0
jl 0x4647ed
test ebx, ebx
jae 0x4647a0
mov dword [esp + 0x10], ebx
jmp 0x4648ae
push edi
push ebx
push esi
mov dword [esp + 0x1c], ebx
call fcn.00463ee0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
mov dword [esp + 0x10], 0xffffff78
jmp 0x4648a6
mov edx, dword [esi + 0x60]
mov edi, dword [esi + 0x44]
shl edx, 4
sub eax, dword [edx + edi]
sbb ecx, dword [edx + edi + 4]
mov dword [esi + 0x50], eax
xor eax, eax
cmp ecx, eax
mov dword [esi + 0x54], ecx
jg 0x464846
jl 0x464840
cmp dword [esi + 0x50], eax
jae 0x464846
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov edi, dword [esi + 0x50]
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0x54]
mov ecx, dword [esp + 0x1c]
add edi, eax
mov dword [esi + 0x50], edi
mov edi, dword [esp + 0xa0]
adc edx, ecx
cmp edx, edi
mov dword [esi + 0x54], edx
jg 0x46489e
jl 0x464877
mov eax, dword [esi + 0x50]
cmp eax, dword [esp + 0x9c]
ja 0x46489e
push 0xffffffffffffffff
push esi
call fcn.00463de0
add esp, 8
cmp edi, edx
jg 0x46489e
jl 0x464891
cmp dword [esp + 0x9c], eax
ja 0x46489e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x84
ret
mov dword [esp + 0x10], 0xffffff7f
mov dword [esp + 0x14], 0xffffffff
or eax, 0xffffffff
lea ecx, [esi + 0x1e0]
push ecx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
call fcn.004758d0
lea edx, [esi + 0x250]
push edx
call fcn.004754c0
fld qword [0x489948]
mov eax, dword [esp + 0x18]
fstp qword [esi + 0x68]
fld qword [0x489948]
add esp, 8
pop edi
fstp qword [esi + 0x70]
mov dword [esi + 0x58], 2
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
pop edi
pop esi
pop ebp
mov eax, 0xffffff7d
pop ebx
add esp, 0x84
ret