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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov ecx, dword [ebp + 0x18]
fild dword [esp + 0xc]
mov dword [esp + 0xc], edx
push edi
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
fmul dword [0x4aa2f8]
fst dword [esp + 0x54]
fild dword [esp + 0x10]
fmul dword [0x4aa2f8]
fst dword [esp + 0xc]
fstp dword [esp + 0x58]
fild dword [ecx]
fmul dword [0x4aa2f8]
fstp dword [esp + 0x14]
fild dword [ecx + 4]
mov ecx, dword [esi]
mov esi, dword [esi + 4]
mov dword [esp + 0x10], ecx
cmp eax, ecx
fmul dword [0x4aa2f8]
fstp dword [esp + 0x18]
fild dword [esp + 0x10]
mov dword [esp + 0x10], esi
fmul dword [0x4aa2f8]
fst dword [esp + 0x30]
fsub dword [esp + 0x54]
fstp dword [esp + 0x94]
fild dword [esp + 0x10]
fmul dword [0x4aa2f8]
fst dword [esp + 0x2c]
fsub dword [esp + 0x58]
fstp dword [esp + 0x98]
jge 0x403b92
fstp dword [esp + 0x1c]
sub ecx, eax
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fmul dword [0x4aa2f8]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x24]
fld dword [esp + 0x14]
fcomp dword [0x4aa204]
fnstsw ax
test ah, 0x41
jne 0x403bd3
fld dword [esp + 0x24]
fadd dword [esp + 0x14]
fstp dword [esp + 0x24]
jmp 0x403bdf
sub eax, ecx
mov edi, dword [esp + 0x30]
fstp st(0)
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edi
fild dword [esp + 0x10]
fmul dword [0x4aa2f8]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x24]
fld dword [esp + 0x14]
fcomp dword [0x4aa204]
fnstsw ax
test ah, 0x41
jne 0x403bd3
fld dword [esp + 0x24]
fadd dword [esp + 0x14]
fstp dword [esp + 0x24]
jmp 0x403bdf
fld dword [esp + 0x1c]
fadd dword [esp + 0x14]
fstp dword [esp + 0x1c]
cmp edx, esi
jge 0x403c22
mov eax, dword [esp + 0xc]
sub esi, edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x20], eax
fild dword [esp + 0xc]
fmul dword [0x4aa2f8]
fadd dword [esp + 0x20]
fstp dword [esp + 0x28]
fld dword [esp + 0x18]
fcomp dword [0x4aa204]
fnstsw ax
test ah, 0x41
jne 0x403c61
fld dword [esp + 0x28]
fadd dword [esp + 0x18]
fstp dword [esp + 0x28]
jmp 0x403c6d
sub edx, esi
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], edx
mov dword [esp + 0x20], ecx
fild dword [esp + 0xc]
fmul dword [0x4aa2f8]
fadd dword [esp + 0x20]
fstp dword [esp + 0x28]
fld dword [esp + 0x18]
fcomp dword [0x4aa204]
fnstsw ax
test ah, 0x41
jne 0x403c61
fld dword [esp + 0x28]
fadd dword [esp + 0x18]
fstp dword [esp + 0x28]
jmp 0x403c6d
fld dword [esp + 0x20]
fadd dword [esp + 0x18]
fstp dword [esp + 0x20]
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [esp + 0x10], eax
mov edx, dword [ecx + 0xc]
test edx, edx
jbe 0x404029
mov edi, dword [ebp + 0xc]
mov bl, 1
jmp 0x403c8a
mov bl, 1
mov edx, dword [ecx + 4]
mov esi, dword [edx + eax*4]
mov eax, dword [ebp + 0x20]
cmp esi, eax
je 0x404012
test byte [esi + 0x18], 8
je 0x404012
mov ax, word [esi + 0x3a]
mov edx, dword [ebp + 0x1c]
and eax, edx
test ax, ax
je 0x404012
mov ecx, dword [esi + 0x10]
test byte [ecx + 6], bl
je 0x403cca
mov al, byte [ebp + 0x24]
test al, al
jne 0x404012
mov edx, dword [esi]
lea eax, [esp + 0x74]
push eax
mov ecx, esi
call dword [edx + 0x68]
mov edx, dword [esi]
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call dword [edx + 0x90]
mov edx, dword [esi]
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x84]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x70]
fld dword [esp + 0x74]
fadd dword [esp + 0x84]
fld st(0)
fadd dword [esp + 0x7c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x34]
fcomp dword [0x4aa204]
fnstsw ax
test ah, 0x41
jne 0x403d2d
fld dword [esp + 0x3c]
fadd dword [esp + 0x34]
fstp dword [esp + 0x3c]
jmp 0x403d31
fadd dword [esp + 0x34]
fld dword [esp + 0x78]
fadd dword [esp + 0x88]
fst dword [esp + 0x60]
fadd dword [esp + 0x80]
fstp dword [esp + 0x40]
fld dword [esp + 0x38]
fcomp dword [0x4aa204]
fnstsw ax
test ah, 0x41
jne 0x403d6a
fld dword [esp + 0x40]
fadd dword [esp + 0x38]
fstp dword [esp + 0x40]
jmp 0x403d76
fld dword [esp + 0x60]
fadd dword [esp + 0x38]
fstp dword [esp + 0x60]
fld dword [esp + 0x1c]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x403d99
fstp st(0)
fld dword [esp + 0x1c]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 0x41
jne 0x403dac
jmp 0x404012
fld dword [esp + 0x24]
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
jne 0x404012
fld dword [esp + 0x20]
fcomp dword [esp + 0x60]
fnstsw ax
test ah, 1
jne 0x403dcf
fld dword [esp + 0x20]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 0x41
jne 0x403de2
jmp 0x404012
fld dword [esp + 0x28]
fcomp dword [esp + 0x60]
fnstsw ax
test ah, 1
jne 0x404012
mov edx, dword [esi]
lea eax, [esp + 0xac]
push eax
mov ecx, esi
call dword [edx + 0x94]
fld dword [esp + 0x54]
fsub dword [esp + 0x74]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
fstp dword [esp + 0x4c]
fld dword [esp + 0x50]
fsub dword [esp + 0x78]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
fstp dword [esp + 0x50]
fld dword [esp + 0x14]
fsub dword [esp + 0x34]
fstp dword [esp + 0x44]
fld dword [esp + 0x48]
fsub dword [esp + 0x38]
fstp dword [esp + 0x48]
mov edx, dword [esi + 0x10]
test byte [edx + 6], bl
je 0x403f17
lea ecx, [esp + 0xc4]
lea eax, [esp + 0xae]
mov edx, 4
movsx ebx, word [eax - 2]
mov dword [esp + 0xc], ebx
add ecx, 8
fild dword [esp + 0xc]
movsx ebx, word [eax]
fstp dword [ecx - 0xc]
mov dword [esp + 0xc], ebx
add eax, 4
fild dword [esp + 0xc]
dec edx
fstp dword [ecx - 8]
jne 0x403e63
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x6c]
push eax
lea edx, [esp + 0x48]
push ecx
lea eax, [esp + 0x54]
push edx
push eax
lea ecx, [esp + 0xd0]
push 4
push ecx
lea edx, [esp + 0xa4]
push 2
push edx
mov dword [esp + 0x4c], 0x3f800000
call fcn.004014a0
add esp, 0x20
test al, al
je 0x404012
fld dword [esp + 0x2c]
fcomp dword [edi + 8]
fnstsw ax
test ah, 1
je 0x404012
fld dword [esp + 0x70]
fmul dword [esp + 0x18]
fld dword [esp + 0x6c]
fmul dword [esp + 0x14]
faddp st(1)
fcomp dword [0x4aa204]
fnstsw ax
test ah, 1
je 0x404012
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov dword [edi + 8], eax
mov dword [edi], ecx
mov dword [edi + 4], edx
jmp 0x404008
fld dword [esp + 0x18]
fcomp dword [0x4aa304]
fnstsw ax
test ah, 0x41
jne 0x404012
movsx eax, word [esp + 0xac]
movsx ecx, word [esp + 0xae]
mov dword [esp + 0xc], eax
mov dword [esp + 0x30], 0x3f800000
fild dword [esp + 0xc]
movsx edx, word [esp + 0xb8]
fstp dword [esp + 0x9c]
movsx eax, word [esp + 0xba]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x30]
fild dword [esp + 0xc]
mov dword [esp + 0xc], edx
lea edx, [esp + 0x64]
push ecx
push edx
fstp dword [esp + 0xa8]
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x54]
push eax
fstp dword [esp + 0xb0]
fild dword [esp + 0x18]
lea edx, [esp + 0xa8]
push ecx
lea eax, [esp + 0x9c]
push edx
fstp dword [esp + 0xbc]
push eax
call fcn.00401000
add esp, 0x18
test al, al
je 0x404012
fld dword [esp + 0x30]
fcomp dword [edi + 8]
fnstsw ax
test ah, 1
je 0x404012
fld dword [esp + 0x68]
fmul dword [esp + 0x18]
fld dword [esp + 0x64]
fmul dword [esp + 0x14]
faddp st(1)
fcomp dword [0x4aa204]
fnstsw ax
test ah, 1
jne 0x403ff4
mov al, byte [ebp + 0x28]
test al, al
je 0x404012
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov dword [edi + 8], ecx
mov dword [edi], edx
mov dword [edi + 4], eax
mov dword [edi + 0x10], 0
mov dword [edi + 0xc], esi
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x10]
inc eax
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x10], eax
cmp eax, edx
jb 0x403c88
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret