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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
call fcn.0041c0e0
mov ebx, eax
push 0x46
lea ecx, [esp + 0x5c]
push ebx
push ecx
call fcn.00401240
push 0x5a
lea edx, [esp + 0x30]
push ebx
push edx
call fcn.00401240
push 0xa
lea eax, [esp + 0x78]
push ebx
push eax
call fcn.00401190
push 0xa
push ebx
call fcn.00401050
fld qword [eax + 6]
mov ecx, dword [eax + 0xe]
mov edx, dword [eax + 0x12]
fst qword [esp + 0x50]
fld qword [eax + 0x16]
fxch st(1)
fstp qword [esp + 0x88]
mov dword [esp + 0x58], ecx
mov eax, ecx
fstp qword [esp + 0x98]
mov ecx, edx
push 0x2a
push ebx
mov dword [esp + 0x64], edx
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
call fcn.00401050
mov edx, dword [eax + 6]
mov ecx, dword [eax + 0xa]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x4c], ecx
mov ecx, 1
add esp, 0x38
cmp edx, ecx
mov dword [esp + 0x38], ecx
jle 0x40b7c1
push 0xa
push eax
call fcn.00401050
fld qword [esp + 0x18]
fcomp qword [0x42a150]
mov edi, eax
add esp, 8
mov eax, dword [edi + 0xa]
mov edx, dword [edi + 6]
mov ecx, dword [edi + 0xe]
mov dword [esp + 0x40], eax
fnstsw ax
mov dword [esp + 0x3c], edx
mov edx, dword [edi + 0x12]
test ah, 0x40
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
je 0x40b63e
fld qword [esp + 0x3c]
fadd qword [esp + 0x20]
fmul qword [0x42a178]
fstp qword [esp + 0x88]
fld qword [esp + 0x44]
fadd qword [esp + 0x28]
fmul qword [0x42a178]
fstp qword [esp + 0x90]
jmp 0x40b739
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
call fcn.0040bd90
mov esi, eax
add esp, 0x28
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
fld qword [esi + 0x18]
fcomp qword [0x42a150]
fnstsw ax
test ah, 1
je 0x40b6be
fld qword [esi + 0x18]
fadd qword [0x42a158]
fst qword [esi + 0x18]
fcomp qword [0x42a150]
fnstsw ax
test ah, 1
jne 0x40b6a5
fld qword [esi + 0x18]
fcomp qword [0x42a158]
fnstsw ax
test ah, 1
jne 0x40b6e7
fld qword [esi + 0x18]
fsub qword [0x42a158]
fst qword [esi + 0x18]
fcomp qword [0x42a158]
fnstsw ax
test ah, 1
je 0x40b6ce
fld qword [esi + 0x20]
fcomp qword [esi + 0x18]
fnstsw ax
test ah, 1
je 0x40b70a
fld qword [esi + 0x20]
fadd qword [0x42a158]
fst qword [esi + 0x20]
fcomp qword [esi + 0x18]
fnstsw ax
test ah, 1
jne 0x40b6f4
fld qword [esi + 0x20]
fadd qword [esi + 0x18]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x88]
push edx
push eax
fmul qword [0x42a178]
push ecx
lea edx, [esp + 0x7c]
sub esp, 8
fstp qword [esp]
push edx
call fcn.0041f130
add esp, 0x18
fld qword [esp + 0x10]
fcomp qword [0x42a150]
fnstsw ax
test ah, 0x40
jne 0x40b763
mov eax, dword [0x42b330]
test eax, eax
jne 0x40b773
fld qword [esi + 0x10]
fcomp qword [0x42b334]
fnstsw ax
test ah, 0x41
jne 0x40b773
lea eax, [esp + 0x88]
push eax
call fcn.0040b1b0
add esp, 4
push 0x2a
push edi
call fcn.00401050
mov ecx, dword [eax + 6]
mov edx, dword [eax + 0xa]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x40]
add esp, 8
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x1c]
inc ecx
cmp ecx, edx
mov dword [esp + 0x38], ecx
jl 0x40b5d5
test byte [esp + 0x54], 1
je 0x40b941
fld qword [esp + 0x10]
fcomp qword [0x42a150]
fnstsw ax
test ah, 0x40
je 0x40b80c
fld qword [esp + 0x58]
fadd qword [esp + 0x20]
fmul qword [0x42a178]
fstp qword [esp + 0x88]
fld qword [esp + 0x60]
fadd qword [esp + 0x28]
fmul qword [0x42a178]
fstp qword [esp + 0x90]
jmp 0x40b907
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
call fcn.0040bd90
mov esi, eax
add esp, 0x28
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
fld qword [esi + 0x18]
fcomp qword [0x42a150]
fnstsw ax
test ah, 1
je 0x40b88c
fld qword [esi + 0x18]
fadd qword [0x42a158]
fst qword [esi + 0x18]
fcomp qword [0x42a150]
fnstsw ax
test ah, 1
jne 0x40b873
fld qword [esi + 0x18]
fcomp qword [0x42a158]
fnstsw ax
test ah, 1
jne 0x40b8b5
fld qword [esi + 0x18]
fsub qword [0x42a158]
fst qword [esi + 0x18]
fcomp qword [0x42a158]
fnstsw ax
test ah, 1
je 0x40b89c
fld qword [esi + 0x20]
fcomp qword [esi + 0x18]
fnstsw ax
test ah, 1
je 0x40b8d8
fld qword [esi + 0x20]
fadd qword [0x42a158]
fst qword [esi + 0x20]
fcomp qword [esi + 0x18]
fnstsw ax
test ah, 1
jne 0x40b8c2
fld qword [esi + 0x20]
fadd qword [esi + 0x18]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x88]
push edx
push eax
fmul qword [0x42a178]
push ecx
lea edx, [esp + 0x7c]
sub esp, 8
fstp qword [esp]
push edx
call fcn.0041f130
add esp, 0x18
fld qword [esp + 0x10]
fcomp qword [0x42a150]
fnstsw ax
test ah, 0x40
jne 0x40b931
mov eax, dword [0x42b330]
test eax, eax
jne 0x40b941
fld qword [esi + 0x10]
fcomp qword [0x42b334]
fnstsw ax
test ah, 0x41
jne 0x40b941
lea eax, [esp + 0x88]
push eax
call fcn.0040b1b0
add esp, 4
push ebx
call fcn.0041ab90
add esp, 4
mov eax, 0x13ec
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret