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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d13b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
test esi, esi
mov ebx, ecx
je 0x40b5fd
fld qword [ebp + 0x28]
fcomp qword [ebp + 0x18]
fnstsw ax
test ah, 0x40
jne 0x40b5fd
mov eax, dword [ebp + 0x54]
mov ecx, dword [ebp + 0x50]
mov edx, dword [ebp + 0x44]
push eax
mov eax, dword [ebp + 0x40]
push ecx
mov ecx, dword [ebp + 0x4c]
push edx
mov edx, dword [ebp + 0x48]
push eax
mov eax, dword [ebp + 0x3c]
push ecx
mov ecx, dword [ebp + 0x38]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.0040aa60
test eax, eax
je 0x40b301
lea edx, [ebp + 0x50]
lea eax, [ebp + 0x48]
push edx
lea ecx, [ebp + 0x40]
push eax
lea edx, [ebp + 0x38]
push ecx
push edx
mov ecx, ebx
call fcn.0040ab20
mov eax, dword [ebp + 0x74]
mov ecx, dword [ebp + 0x70]
mov edx, dword [ebp + 0x64]
push eax
mov eax, dword [ebp + 0x60]
push ecx
mov ecx, dword [ebp + 0x6c]
push edx
mov edx, dword [ebp + 0x68]
push eax
mov eax, dword [ebp + 0x5c]
push ecx
mov ecx, dword [ebp + 0x58]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.0040aa60
test eax, eax
je 0x40b343
lea edx, [ebp + 0x70]
lea eax, [ebp + 0x68]
push edx
lea ecx, [ebp + 0x60]
push eax
lea edx, [ebp + 0x58]
push ecx
push edx
mov ecx, ebx
call fcn.0040ab20
push 0x539120
lea ecx, [esp + 0x14]
call fcn.004ab06d
mov edi, dword [ebp + 0x10]
push 0xffffffffffffffff
push 0
mov ecx, edi
mov dword [esp + 0x88], 0
call fcn.004a4ef4
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x20]
push ecx
mov ecx, dword [ebp + 0x2c]
push edx
mov edx, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x18]
push edx
push eax
push ecx
push edi
mov ecx, esi
call fcn.004132a0
mov ecx, dword [edi + 8]
xor eax, eax
test ecx, ecx
mov dword [esp + 0xc], eax
jle 0x40b5e9
mov edx, dword [edi + 4]
mov esi, dword [edx + eax*4]
test esi, esi
je 0x40b5d5
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
fld qword [ebp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
fcomp qword [esp + 0x1c]
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
fnstsw ax
test ah, 0x41
jne 0x40b405
mov edx, dword [esi + 0x18]
mov eax, ecx
fld qword [ebp + 0x18]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
fsub qword [esp + 0x1c]
fstp qword [esp + 0x44]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
fld qword [ebp + 0x28]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 1
je 0x40b438
mov eax, ecx
mov ecx, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
fld qword [esp + 0x14]
fsub qword [ebp + 0x28]
fstp qword [esp + 0x4c]
mov edx, dword [ebp + 0x74]
mov eax, dword [ebp + 0x70]
mov ecx, dword [ebp + 0x64]
push edx
mov edx, dword [ebp + 0x60]
push eax
mov eax, dword [ebp + 0x6c]
push ecx
mov ecx, dword [ebp + 0x68]
push edx
mov edx, dword [ebp + 0x5c]
push eax
mov eax, dword [ebp + 0x58]
push ecx
mov ecx, dword [esi + 0x34]
push edx
mov edx, dword [esi + 0x30]
push eax
mov eax, dword [esi + 0x2c]
push ecx
mov ecx, dword [esi + 0x28]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x50]
push eax
push ecx
mov ecx, dword [ebp + 0x14]
push edx
call fcn.00413080
mov ecx, dword [ebp + 0x50]
mov edx, dword [ebp + 0x44]
mov edi, eax
mov eax, dword [ebp + 0x54]
push eax
mov eax, dword [ebp + 0x40]
push ecx
mov ecx, dword [ebp + 0x4c]
push edx
mov edx, dword [ebp + 0x48]
push eax
mov eax, dword [ebp + 0x3c]
push ecx
mov ecx, dword [ebp + 0x38]
push edx
mov edx, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x30]
push ecx
mov ecx, dword [esi + 0x2c]
push edx
mov edx, dword [esi + 0x28]
push eax
mov eax, dword [esi + 0x24]
push ecx
mov ecx, dword [esi + 0x20]
push edx
mov edx, dword [esi + 0x1c]
push eax
mov eax, dword [esi + 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
push eax
call fcn.00413080
test edi, edi
je 0x40b4e1
test eax, eax
je 0x40b4e1
mov eax, dword [ebp + 0x78]
test eax, eax
jne 0x40b5d2
fld qword [esp + 0x44]
fadd qword [esi + 0x18]
mov edx, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x30]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
fstp qword [esp + 0x3c]
fld qword [esi + 0x20]
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x24], eax
fsub qword [esp + 0x4c]
lea edx, [esp + 0x2c]
push 1
lea eax, [esp + 0x40]
push edx
mov dword [esp + 0x30], ecx
push eax
fstp qword [esp + 0x40]
push edi
lea ecx, [esp + 0x68]
push esi
push ecx
mov ecx, ebx
call fcn.0040a820
lea edx, [esp + 0x24]
push 0
lea eax, [esp + 0x38]
push edx
push eax
push edi
lea ecx, [esp + 0x70]
push esi
push ecx
mov ecx, ebx
call fcn.0040a820
fld qword [esp + 0x3c]
fcomp qword [esp + 0x34]
fnstsw ax
test ah, 1
je 0x40b5d2
fld qword [esp + 0x2c]
fcomp qword [esp + 0x24]
fnstsw ax
test ah, 0x41
jne 0x40b5d2
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x68]
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push eax
push ecx
push edi
mov ecx, ebx
call fcn.0040a690
mov edx, dword [ebp + 0x7c]
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x70]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x84]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x88]
mov dword [eax + 8], ecx
mov ecx, ebx
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040b620
mov edi, dword [ebp + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [edi + 8]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x40b3a3
lea ecx, [esp + 0x10]
mov dword [esp + 0x80], 0xffffffff
call fcn.004aafff
mov ecx, dword [esp + 0x78]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x78