Function at 0x416090
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 edi, 0xffffff7d
jge 0x4160bb
or edx, 0xffffffff
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
jmp 0x416107
cmp dword [esi + 4], 0
je 0x4160f3
mov eax, dword [esi + 0x34]
cmp eax, 0xffffffff
jle 0x4160f3
xor ebx, ebx
xor ebp, ebp
xor edi, edi
test eax, eax
jle 0x4160e9
push edi
push esi
call fcn.00415c80
add esp, 8
add ebx, eax
adc ebp, edx
add edi, 1
cmp edi, dword [esi + 0x34]
jl 0x4160d3
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebp
jmp 0x4160ff
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0xffffffff
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
cmp dword [esi + 0x58], 2
jl 0x4167dc
cmp dword [esi + 4], 0
jne 0x416127
pop edi
pop esi
pop ebp
mov eax, 0xffffff76
pop ebx
add esp, 0x84
ret
mov ebx, dword [esp + 0xa0]
test ebx, ebx
jl 0x4167dc
mov eax, dword [esp + 0x9c]
jg 0x416147
test eax, eax
jb 0x4167dc
cmp ebx, edx
jg 0x4167dc
jl 0x416159
cmp eax, edi
ja 0x4167dc
mov ecx, dword [esi + 0x34]
sub ecx, 1
mov dword [esp + 0x28], ecx
js 0x41619f
mov ebp, dword [esi + 0x44]
mov eax, ecx
shl eax, 4
lea eax, [eax + ebp + 8]
mov ebp, dword [eax]
sub edi, ebp
mov ebp, dword [eax + 4]
sbb edx, ebp
cmp ebx, edx
jg 0x416193
jl 0x416189
cmp dword [esp + 0x9c], edi
jae 0x416193
sub ecx, 1
sub eax, 0x10
test ecx, ecx
jge 0x416171
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edi
mov edx, dword [esi + 0x38]
lea eax, [edx + ecx*8]
mov edx, dword [eax + 8]
mov ebp, dword [eax]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 4]
shl ecx, 4
mov dword [esp + 0x24], edx
mov edx, dword [esi + 0x44]
mov ebx, dword [ecx + edx]
mov edi, dword [ecx + edx + 8]
add ecx, edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 0xc]
add edi, ebx
adc ecx, edx
mov dword [esp + 0x50], ecx
mov ecx, ebx
sub ecx, dword [esp + 0x18]
mov dword [esp + 0x38], edx
sbb edx, dword [esp + 0x1c]
add ecx, dword [esp + 0x9c]
mov dword [esp + 0x10], ebp
adc edx, dword [esp + 0xa0]
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], eax
jg 0x416546
jl 0x416230
cmp ebp, dword [esp + 0x20]
jae 0x416546
jmp 0x416230
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
sub ecx, ebx
sbb eax, ebp
test eax, eax
jg 0x416256
jl 0x416252
cmp ecx, 0x10000
jae 0x416256
mov edi, ebp
jmp 0x4162b3
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x38]
push eax
push ecx
sbb ebx, edi
push ebx
push edx
call fcn.0043d2b0
mov ecx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x50]
sbb ebx, edi
push ebx
push ecx
push edx
push eax
call fcn.0043dc00
mov ebx, eax
add ebx, dword [esp + 0x10]
mov edi, edx
adc edi, ebp
sub ebx, 0x10000
sbb edi, 0
cmp edi, ebp
jg 0x4162b3
jl 0x4162a7
cmp ebx, dword [esp + 0x10]
ja 0x4162b3
mov ebx, dword [esp + 0x10]
add ebx, 1
mov edi, ebp
adc edi, 0
mov ecx, dword [esi]
test ecx, ecx
je 0x4162ef
mov eax, dword [esi + 0x2c4]
test eax, eax
je 0x4162e8
push 0
push edi
push ebx
push ecx
call eax
add esp, 0x10
cmp eax, 0xffffffff
je 0x4162e8
lea edx, [esi + 0x18]
push edx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edi
call fcn.0042e310
add esp, 4
xor eax, eax
jmp 0x4162f4
mov eax, 0xffffff80
jmp 0x4162f4
mov eax, 0xffffff7f
cdq
mov ebp, eax
or eax, edx
jne 0x4167a4
nop
mov ecx, dword [esp + 0x20]
sub ecx, dword [esi + 8]
mov edx, dword [esp + 0x24]
sbb edx, dword [esi + 0xc]
lea eax, [esp + 0x64]
push edx
push ecx
push eax
call fcn.004149d0
mov ebp, eax
add esp, 0xc
cmp ebp, 0xffffff80
mov dword [esp + 0x48], edx
jne 0x416331
cmp edx, 0xffffffff
je 0x4167a4
cmp dword [esp + 0x48], 0
jg 0x4163ec
jl 0x416346
test ebp, ebp
jae 0x4163ec
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add ecx, 1
adc eax, 0
cmp edi, eax
jl 0x416546
jg 0x416366
cmp ebx, ecx
jbe 0x416546
mov edx, ebx
or edx, edi
je 0x4167a4
add ebx, 0xffff0000
adc edi, 0xffffffff
cmp edi, dword [esp + 0x14]
jg 0x41638b
jl 0x416387
cmp ebx, dword [esp + 0x10]
ja 0x41638b
mov ebx, ecx
mov edi, eax
mov ecx, dword [esi]
test ecx, ecx
je 0x4163db
mov eax, dword [esi + 0x2c4]
test eax, eax
je 0x4163ca
push 0
push edi
push ebx
push ecx
call eax
add esp, 0x10
cmp eax, 0xffffffff
je 0x4163ca
lea eax, [esi + 0x18]
push eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edi
call fcn.0042e310
xor eax, eax
cdq
mov ebp, eax
mov ecx, ebp
add esp, 4
or ecx, edx
jmp 0x4164f3
mov eax, 0xffffff80
cdq
mov ebp, eax
mov ecx, ebp
or ecx, edx
jmp 0x4164f3
mov eax, 0xffffff7f
cdq
mov ebp, eax
mov ecx, ebp
or ecx, edx
jmp 0x4164f3
lea edx, [esp + 0x64]
push edx
call fcn.0042d8a0
mov ecx, dword [esi + 0x40]
mov edx, dword [esp + 0x2c]
add esp, 4
cmp eax, dword [ecx + edx*4]
jne 0x4164f9
lea eax, [esp + 0x64]
push eax
call fcn.0042d810
mov ecx, eax
and ecx, edx
add esp, 4
cmp ecx, 0xffffffff
je 0x4164f9
cmp edx, dword [esp + 0x30]
jg 0x41647b
jl 0x416431
cmp eax, dword [esp + 0x2c]
jae 0x41647b
mov ecx, dword [esp + 0x48]
mov ebx, dword [esi + 8]
mov edi, dword [esi + 0xc]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x2c]
sub ecx, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
sbb eax, edx
test eax, eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x38], edx
jg 0x416528
jl 0x4164f9
cmp ecx, 0xac44
ja 0x416528
jmp 0x4164f9
mov ecx, dword [esp + 0x10]
add ecx, 1
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x14]
adc ecx, 0
cmp edi, ecx
mov dword [esp + 0x58], ecx
jl 0x416546
jg 0x4164a5
cmp ebx, dword [esp + 0x54]
jbe 0x416546
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esi + 8]
jne 0x416518
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esi + 0xc]
jne 0x416518
mov edx, dword [esp + 0x48]
add ebx, 0xffff0000
adc edi, 0xffffffff
cmp edi, dword [esp + 0x14]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], edx
jg 0x4164e2
jl 0x4164da
cmp ebx, dword [esp + 0x10]
ja 0x4164e2
mov ebx, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
push edi
push ebx
mov eax, esi
call fcn.00414970
cdq
add esp, 8
mov ebp, eax
or eax, edx
jne 0x4167a4
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x24]
jg 0x416546
jl 0x416300
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x20]
jae 0x416546
jmp 0x416300
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x14], eax
jl 0x416230
jg 0x416546
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x10], ecx
jb 0x416230
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
push edx
push ebx
mov eax, esi
call fcn.00414970
cdq
mov ebp, eax
or eax, 0xffffffff
mov ecx, ebp
add esp, 8
or ecx, edx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
jne 0x4167a4
push eax
push eax
lea edx, [esp + 0x5c]
push edx
call fcn.004149d0
add esp, 0xc
test edx, edx
mov ebp, eax
jl 0x4167a4
jg 0x416593
test ebp, ebp
jb 0x4167a4
mov edi, dword [esp + 0x28]
cmp edi, dword [esi + 0x60]
je 0x4165b6
call fcn.004156f0
mov eax, dword [esi + 0x40]
mov dword [esi + 0x60], edi
mov ecx, dword [eax + edi*4]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x58], 3
jmp 0x4165c5
lea edx, [esi + 0x1e0]
push edx
call fcn.004196f0
add esp, 4
mov eax, dword [esi + 0x5c]
push eax
lea edi, [esi + 0x78]
push edi
call fcn.0042e380
lea ecx, [esp + 0x5c]
push ecx
push edi
call fcn.0042e020
lea edx, [esp + 0x84]
push edx
push edi
call fcn.0042e510
cdq
mov ecx, eax
add esp, 0x18
or ecx, edx
je 0x416640
xor ebp, ebp
cmp edx, ebp
jl 0x41670e
jg 0x416609
cmp eax, ebp
jb 0x41670e
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
mov eax, ecx
and eax, edx
cmp eax, 0xffffffff
jne 0x416718
push ebp
push edi
call fcn.0042e4f0
lea ecx, [esp + 0x7c]
push ecx
push edi
call fcn.0042e510
cdq
mov ecx, eax
add esp, 0x10
or ecx, edx
jne 0x4165f7
mov edx, dword [esp + 0x40]
push edx
push ebx
mov eax, esi
call fcn.00414970
cdq
add esp, 8
test edx, edx
mov ebp, eax
jl 0x4167a4
jg 0x416665
test ebp, ebp
jb 0x4167a4
lea eax, [esp + 0x54]
push eax
mov eax, esi
call fcn.00414a80
mov edi, edx
add esp, 4
test edi, edi
mov ebp, eax
jl 0x4167a4
jg 0x416690
test ebp, ebp
jb 0x4167a4
lea ebx, [ebx]
lea ecx, [esp + 0x54]
push ecx
call fcn.0042d8a0
add esp, 4
cmp eax, dword [esi + 0x5c]
jne 0x4166cc
lea edx, [esp + 0x54]
push edx
call fcn.0042d810
add esp, 4
cmp edx, 0xffffffff
jg 0x4166f8
jl 0x4166bb
cmp eax, 0xffffffff
ja 0x4166f8
lea eax, [esp + 0x54]
push eax
call fcn.0042d7e0
add esp, 4
test eax, eax
je 0x4166f8
lea ecx, [esp + 0x54]
push ecx
mov eax, esi
mov dword [esi + 8], ebp
mov dword [esi + 0xc], edi
call fcn.00414a80
mov edi, edx
add esp, 4
test edi, edi
mov ebp, eax
jg 0x416690
jl 0x4167a4
test ebp, ebp
jae 0x416690
jmp 0x4167a4
push edi
push ebp
push esi
call fcn.00415d70
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
mov ebp, 0xffffff78
jmp 0x41679c
mov eax, dword [esi + 0x60]
mov edi, dword [esi + 0x44]
shl eax, 4
sub ecx, dword [eax + edi]
sbb edx, dword [eax + edi + 4]
mov dword [esi + 0x50], ecx
cmp edx, ebp
mov dword [esi + 0x54], edx
jg 0x41673e
jl 0x416738
cmp ecx, ebp
jae 0x41673e
mov dword [esi + 0x50], ebp
mov dword [esi + 0x54], ebp
mov edx, dword [esp + 0x18]
add dword [esi + 0x50], edx
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0xa0]
adc dword [esi + 0x54], eax
mov ecx, dword [esi + 0x54]
cmp ecx, edi
jg 0x416797
jl 0x416768
mov edx, dword [esi + 0x50]
cmp edx, dword [esp + 0x9c]
ja 0x416797
push 0xffffffffffffffff
push esi
call fcn.00415c80
add esp, 8
cmp edi, edx
jg 0x416797
jl 0x416782
cmp dword [esp + 0x9c], eax
ja 0x416797
fldz
pop edi
fst qword [esi + 0x68]
xor eax, eax
fstp qword [esi + 0x70]
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
mov ebp, 0xffffff7f
mov dword [esp + 0x48], 0xffffffff
or eax, 0xffffffff
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
lea eax, [esi + 0x1e0]
push eax
call fcn.004192e0
lea ecx, [esi + 0x250]
push ecx
call fcn.00418ea0
add esp, 8
pop edi
mov dword [esi + 0x58], 2
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x84
ret
pop edi
pop esi
pop ebp
mov eax, 0xffffff7d
pop ebx
add esp, 0x84
ret