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

Disassembly:
sub esp, 0x88
push ebx
push ebp
push esi
mov esi, dword [esp + 0x98]
mov eax, dword [esi + 0x110]
push edi
xor edi, edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
lea ebp, [edi + 1]
lea ebx, [edi + 0x14]
cmp eax, edi
je 0x406301
mov ecx, dword [eax + 4]
cmp ecx, edi
je 0x406290
mov eax, ecx
mov ecx, dword [eax + 4]
cmp ecx, edi
jne 0x406286
nop
cmp dword [eax + 0x60], ebp
je 0x4062c9
cmp dword [eax + 0x64], ebp
je 0x4062c9
mov edx, dword [eax + 0x5c]
cmp edx, ebp
jne 0x4062a6
cmp dword [esi + 0x14], ebx
jg 0x4062c9
mov ecx, ebp
cmp dword [eax + 0x68], ebp
jne 0x4062b2
mov ecx, 2
cmp edx, ebp
jne 0x4062b8
xor ecx, ecx
mov edx, dword [eax + 0x28]
add dword [esp + ecx*8 + 0x68], edx
mov edx, dword [eax + 0x2c]
lea ecx, [esp + ecx*8 + 0x68]
adc dword [ecx + 4], edx
mov ecx, dword [eax + 8]
cmp ecx, edi
je 0x4062f0
mov eax, ecx
mov ecx, dword [eax + 4]
cmp ecx, edi
je 0x4062fd
lea esp, [esp]
mov eax, ecx
mov ecx, dword [eax + 4]
cmp ecx, edi
jne 0x4062e0
jmp 0x4062fd
mov ecx, eax
mov eax, dword [eax]
cmp eax, edi
je 0x406301
cmp dword [eax + 8], ecx
je 0x4062f0
cmp eax, edi
jne 0x406290
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
xor ebx, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x4c], ebp
nop
mov ecx, dword [esi + 0x178]
mov eax, dword [esi + 0x17c]
mov dword [esp + 0x88], ecx
mov ecx, eax
and eax, 0x7fffffff
and ecx, 0x80000000
mov dword [esp + 0x8c], eax
fild qword [esp + 0x88]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x90], 0
fild qword [esp + 0x90]
fchs
faddp st(1)
fmul qword [esi + 0x108]
fdiv qword [0x424200]
call fcn.00412d96
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
sub ecx, eax
sbb ebp, edx
add ecx, dword [esp + 0x68]
mov dword [esp + 0x84], ebp
mov dword [esp + 0x80], ecx
mov ecx, ebp
adc ecx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x80]
sub edi, eax
mov eax, dword [esp + 0x20]
sbb ebx, edx
add edi, dword [esp + 0x70]
mov dword [esp + 0x28], ebp
adc ebx, dword [esp + 0x74]
mov edx, dword [esp + 0x28]
mov ebp, ecx
mov ecx, dword [esp + 0x24]
add edi, edx
adc ebx, ebp
add eax, dword [esp + 0x78]
mov dword [esp + 0x2c], ebp
adc ecx, dword [esp + 0x7c]
add eax, edi
adc ecx, ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
cmp dword [esp + 0x50], edx
jne 0x40642d
cmp dword [esp + 0x54], ebp
jne 0x40642d
mov edx, dword [esp + 0x58]
cmp edx, edi
jne 0x40642d
mov eax, dword [esp + 0x5c]
cmp eax, ebx
jne 0x40642d
mov ecx, dword [esp + 0x60]
cmp ecx, dword [esp + 0x38]
jne 0x40642d
mov edx, dword [esp + 0x64]
cmp edx, dword [esp + 0x3c]
je 0x4067d0
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
push ebx
push edi
push edx
push ecx
push ebp
push eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x64]
push eax
push str.Zone_calculation__iteration__u:_0____I64d____I64d____I64d
mov dword [esp + 0x78], ecx
mov ecx, dword [esi + 0x22c]
push 0
push 4
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], ebx
call ecx
mov eax, dword [esi + 0x14c]
mov ecx, dword [esi + 0x148]
xor edi, edi
xor ebx, ebx
add esp, 0x28
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
cmp eax, ebp
ja 0x4064c7
jb 0x4064ad
cmp ecx, dword [esp + 0x28]
jae 0x4064c7
mov edx, dword [esi + 0x150]
sub edx, ecx
mov ecx, dword [esi + 0x154]
sbb ecx, eax
add dword [esp + 0x10], edx
adc dword [esp + 0x14], ecx
jmp 0x406511
cmp eax, dword [esp + 0x34]
ja 0x4064eb
jb 0x4064d5
cmp ecx, dword [esp + 0x30]
jae 0x4064eb
mov edx, dword [esi + 0x150]
sub edx, ecx
mov ecx, dword [esi + 0x154]
sbb ecx, eax
add edi, edx
adc ebx, ecx
jmp 0x406511
cmp eax, dword [esp + 0x3c]
ja 0x406511
jb 0x4064f9
cmp ecx, dword [esp + 0x38]
jae 0x406511
mov edx, dword [esi + 0x150]
sub edx, ecx
mov ecx, dword [esi + 0x154]
sbb ecx, eax
add dword [esp + 0x20], edx
adc dword [esp + 0x24], ecx
mov eax, dword [esi + 0x15c]
mov ecx, dword [esi + 0x158]
cmp eax, ebp
ja 0x406543
jb 0x406529
cmp ecx, dword [esp + 0x28]
jae 0x406543
mov edx, dword [esi + 0x160]
sub edx, ecx
mov ecx, dword [esi + 0x164]
sbb ecx, eax
add dword [esp + 0x10], edx
adc dword [esp + 0x14], ecx
jmp 0x40658d
cmp eax, dword [esp + 0x34]
ja 0x406567
jb 0x406551
cmp ecx, dword [esp + 0x30]
jae 0x406567
mov edx, dword [esi + 0x160]
sub edx, ecx
mov ecx, dword [esi + 0x164]
sbb ecx, eax
add edi, edx
adc ebx, ecx
jmp 0x40658d
cmp eax, dword [esp + 0x3c]
ja 0x40658d
jb 0x406575
cmp ecx, dword [esp + 0x38]
jae 0x40658d
mov edx, dword [esi + 0x160]
sub edx, ecx
mov ecx, dword [esi + 0x164]
sbb ecx, eax
add dword [esp + 0x20], edx
adc dword [esp + 0x24], ecx
mov eax, dword [esi + 0x16c]
mov ecx, dword [esi + 0x168]
cmp eax, ebp
ja 0x4065bf
jb 0x4065a5
cmp ecx, dword [esp + 0x28]
jae 0x4065bf
mov edx, dword [esi + 0x170]
sub edx, ecx
mov ecx, dword [esi + 0x174]
sbb ecx, eax
add dword [esp + 0x10], edx
adc dword [esp + 0x14], ecx
jmp 0x406609
cmp eax, dword [esp + 0x34]
ja 0x4065e3
jb 0x4065cd
cmp ecx, dword [esp + 0x30]
jae 0x4065e3
mov edx, dword [esi + 0x170]
sub edx, ecx
mov ecx, dword [esi + 0x174]
sbb ecx, eax
add edi, edx
adc ebx, ecx
jmp 0x406609
cmp eax, dword [esp + 0x3c]
ja 0x406609
jb 0x4065f1
cmp ecx, dword [esp + 0x38]
jae 0x406609
mov edx, dword [esi + 0x170]
sub edx, ecx
mov ecx, dword [esi + 0x174]
sbb ecx, eax
add dword [esp + 0x20], edx
adc dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x110]
test ecx, ecx
je 0x4067be
mov eax, dword [ecx + 4]
test eax, eax
je 0x406629
mov edi, edi
mov ecx, eax
mov eax, dword [ecx + 4]
test eax, eax
jne 0x406620
mov dword [esp + 0x48], ecx
lea ecx, [ecx]
cmp dword [ecx + 0x60], 0
jne 0x406650
cmp dword [ecx + 0x64], 0
jne 0x406650
cmp dword [ecx + 0x5c], 0
je 0x406780
cmp dword [esi + 0x14], 0x14
jle 0x406780
mov eax, dword [ecx + 0x48]
xor edx, edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
cmp eax, edx
je 0x406780
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov ebp, edx
and ebp, ecx
cmp ebp, 0xffffffff
je 0x40675f
cmp ecx, dword [esi + 0x14c]
jb 0x4066a3
ja 0x406689
cmp edx, dword [esi + 0x148]
jb 0x4066a3
cmp ecx, dword [esi + 0x154]
jb 0x40675f
ja 0x4066a3
cmp edx, dword [esi + 0x150]
jb 0x40675f
cmp ecx, dword [esi + 0x15c]
jb 0x4066cf
ja 0x4066b5
cmp edx, dword [esi + 0x158]
jb 0x4066cf
cmp ecx, dword [esi + 0x164]
jb 0x40675f
ja 0x4066cf
cmp edx, dword [esi + 0x160]
jb 0x40675f
cmp ecx, dword [esi + 0x16c]
jb 0x4066f3
ja 0x4066e1
cmp edx, dword [esi + 0x168]
jb 0x4066f3
cmp ecx, dword [esi + 0x174]
jb 0x40675f
ja 0x4066f3
cmp edx, dword [esi + 0x170]
jb 0x40675f
cmp ecx, dword [esp + 0x2c]
ja 0x406719
jb 0x406701
cmp edx, dword [esp + 0x28]
jae 0x406719
mov edx, dword [eax + 8]
sub edx, dword [esp + 0x40]
mov ecx, dword [eax + 0xc]
sbb ecx, dword [esp + 0x44]
add dword [esp + 0x10], edx
adc dword [esp + 0x14], ecx
jmp 0x40675f
cmp ecx, dword [esp + 0x34]
ja 0x40673b
jb 0x406727
cmp edx, dword [esp + 0x30]
jae 0x40673b
mov edx, dword [eax + 8]
sub edx, dword [esp + 0x40]
mov ecx, dword [eax + 0xc]
sbb ecx, dword [esp + 0x44]
add edi, edx
adc ebx, ecx
jmp 0x40675f
cmp ecx, dword [esp + 0x3c]
ja 0x40675f
jb 0x406749
cmp edx, dword [esp + 0x38]
jae 0x40675f
mov edx, dword [eax + 8]
sub edx, dword [esp + 0x40]
mov ecx, dword [eax + 0xc]
sbb ecx, dword [esp + 0x44]
add dword [esp + 0x20], edx
adc dword [esp + 0x24], ecx
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
test eax, eax
jne 0x406665
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x2c]
mov eax, ecx
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x4067a3
mov eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40679b
mov eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x406792
mov ecx, eax
mov dword [esp + 0x48], ecx
jmp 0x4067b6
mov ecx, eax
mov eax, dword [eax]
test eax, eax
je 0x4067b0
cmp dword [eax + 8], ecx
je 0x4067a3
mov ecx, eax
mov dword [esp + 0x48], eax
test eax, eax
jne 0x406630
mov eax, dword [esp + 0x4c]
inc eax
cmp eax, 0xa
mov dword [esp + 0x4c], eax
jle 0x406330
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
xor eax, eax
mov dword [esi + 0x128], eax
mov dword [esi + 0x12c], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x130], edx
mov edx, dword [esp + 0x38]
mov dword [esi + 0x138], eax
mov eax, dword [esp + 0x3c]
pop edi
mov dword [esi + 0x134], ebp
mov dword [esi + 0x13c], ecx
mov dword [esi + 0x140], edx
mov dword [esi + 0x144], eax
pop esi
pop ebp
pop ebx
add esp, 0x88
ret