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

Disassembly:
sub esp, 0x118
push ebx
mov ebx, dword [esp + 0x120]
push ebp
push esi
xor ebp, ebp
cmp ebx, ebp
mov esi, ecx
mov dword [esp + 0x7c], esi
je 0x405265
push edi
mov ecx, ebx
call fcn.004387c0
mov edi, eax
cmp edi, ebp
mov dword [esp + 0xb4], edi
je 0x405264
lea eax, [esp + 0x14]
push eax
push 0x10
push edi
mov ecx, ebx
call fcn.00437e00
push edi
mov ecx, ebx
call fcn.00437dd0
cmp eax, 1
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xdc], eax
mov dword [esi + 4], ebp
jle 0x404b0c
lea edx, [ecx + 8]
dec eax
fld dword [edx - 8]
add edx, 0x18
dec eax
fsub dword [edx - 8]
fld dword [edx - 0x1c]
fsub dword [edx - 4]
fld dword [edx - 0x18]
fsub dword [edx]
fld st(1)
fmul st(2)
fld st(3)
fmul st(4)
faddp st(1)
fld st(1)
fmul st(2)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fadd dword [esi + 4]
fstp dword [esi + 4]
jne 0x404ad7
fld dword [esi + 4]
mov edx, dword [esi + 4]
fmul dword [0x4cccc4]
xor edi, edi
mov eax, edx
xor ebx, ebx
fstp dword [esi + 8]
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x34], ebx
jmp 0x404b50
mov ecx, dword [esp + 0x14]
test ebx, ebx
jne 0x404d81
fld dword [ecx]
mov eax, ecx
fsub dword [ecx + 0x18]
mov edx, dword [eax]
fld dword [ecx + 4]
mov dword [esp + 0x30], ebx
fsub dword [ecx + 0x1c]
xor edi, edi
fld dword [ecx + 8]
mov ebp, 1
fsub dword [ecx + 0x20]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
fld st(2)
mov eax, dword [eax + 8]
fmulp st(3)
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], 2
fld st(0)
fmul st(1)
faddp st(3)
fld st(1)
fmul st(2)
faddp st(3)
fxch st(2)
fsqrt
fstp st(2)
fstp st(0)
fstp dword [esp + 0x10]
fld dword [ecx + 0x18]
fsub dword [ecx]
fstp dword [esp + 0x68]
fld dword [ecx + 0x1c]
fsub dword [ecx + 4]
fstp dword [esp + 0x6c]
mov edx, dword [esp + 0x6c]
fld dword [ecx + 0x20]
fsub dword [ecx + 8]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], edx
fstp dword [esp + 0x70]
mov eax, dword [esp + 0x70]
push ecx
mov edx, ecx
push edx
mov dword [esp + 0x34], eax
call fcn.0041a12f
fld dword [esp + 0x10]
fchs
fld dword [esp + 0x24]
fmul st(1)
fld dword [esp + 0x28]
fmul st(2)
fstp dword [esp + 0xf0]
fld dword [esp + 0x2c]
fmul st(2)
fstp dword [esp + 0xf4]
fld dword [esp + 0x18]
fadd st(1)
fstp dword [esp + 0x90]
mov eax, dword [esp + 0x90]
mov dword [esp + 0x5c], eax
fstp st(0)
fstp st(0)
fld dword [esp + 0x1c]
fadd dword [esp + 0xf0]
fstp dword [esp + 0x94]
mov ecx, dword [esp + 0x94]
fld dword [esp + 0x20]
mov dword [esp + 0x60], ecx
fadd dword [esp + 0xf4]
mov ecx, dword [esp + 0x14]
lea eax, [ecx + 0x18]
fstp dword [esp + 0x98]
mov edx, dword [esp + 0x98]
mov dword [esp + 0x64], edx
mov edx, eax
mov ebx, dword [edx]
mov dword [esp + 0x18], ebx
mov ebx, dword [edx + 4]
mov dword [esp + 0x1c], ebx
mov edx, dword [edx + 8]
mov dword [esp + 0x20], edx
fld dword [ecx + 0x30]
fsub dword [eax]
fstp dword [esp + 0xb8]
fld dword [ecx + 0x34]
fsub dword [eax + 4]
fstp dword [esp + 0xbc]
fld dword [ecx + 0x38]
mov ecx, dword [esp + 0xbc]
fsub dword [eax + 8]
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x28], ecx
fstp dword [esp + 0xc0]
mov edx, dword [esp + 0xc0]
push eax
mov ecx, eax
push ecx
mov dword [esp + 0x34], edx
call fcn.0041a12f
fld dword [esp + 0x24]
fmul dword [esp + 0x10]
fld dword [esp + 0x28]
fmul dword [esp + 0x10]
fld dword [esp + 0x2c]
fmul dword [esp + 0x10]
fstp dword [esp + 0x124]
fxch st(1)
fadd dword [esp + 0x18]
fstp dword [esp + 0xa8]
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x50], edx
fadd dword [esp + 0x1c]
fstp dword [esp + 0xac]
mov eax, dword [esp + 0xac]
fld dword [esp + 0x124]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x14]
fadd dword [esp + 0x20]
lea edx, [eax + 0x18]
push edx
fstp dword [esp + 0xb4]
mov ecx, dword [esp + 0xb4]
push eax
mov dword [esp + 0x60], ecx
call fcn.004424a0
fst dword [esp + 0x40]
mov eax, dword [esp + 0x1c]
fstp dword [esp + 0x48]
mov edx, dword [esp + 0x40]
lea ecx, [eax + 0x18]
push ecx
push eax
push edx
call fcn.004453c0
fstp dword [esp + 0x50]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x60], eax
jmp 0x4050e4
fld dword [esp + 0x30]
fadd dword [esi + 8]
fst dword [esp + 0x30]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 0x41
jne 0x4050ef
fld dword [esp + 0x30]
mov eax, dword [esp + 0x48]
fsub dword [esp + 0x10]
mov edx, edi
inc edi
inc ebp
fstp dword [esp + 0x30]
inc eax
mov dword [esp + 0x48], eax
lea ebx, [edi + edi*2]
shl ebx, 3
fld dword [ebx + ecx]
lea eax, [ebx + ecx]
lea esi, [ebp + ebp*2]
shl esi, 3
fsub dword [esi + ecx]
lea edx, [edx + edx*2]
fld dword [eax + 4]
fsub dword [esi + ecx + 4]
fld dword [eax + 8]
fsub dword [esi + ecx + 8]
lea ecx, [ecx + edx*8]
mov dword [esp + 0x44], ecx
mov edx, eax
fld st(2)
mov ecx, dword [edx]
fmulp st(3)
mov dword [esp + 0x18], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x1c], ecx
fld st(0)
mov edx, dword [edx + 8]
fmul st(1)
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x20], edx
faddp st(3)
fld st(1)
fmul st(2)
faddp st(3)
fxch st(2)
fsqrt
fstp st(2)
fstp st(0)
fstp dword [esp + 0x10]
fld dword [ecx]
fsub dword [eax]
fstp dword [esp + 0xd0]
fld dword [ecx + 4]
fsub dword [eax + 4]
fstp dword [esp + 0xd4]
fld dword [ecx + 8]
mov ecx, dword [esp + 0xd4]
fsub dword [eax + 8]
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x28], ecx
fstp dword [esp + 0xd8]
mov edx, dword [esp + 0xd8]
push eax
mov ecx, eax
push ecx
mov dword [esp + 0x34], edx
call fcn.0041a12f
fld dword [esp + 0x24]
fmul dword [esp + 0x10]
fld dword [esp + 0x28]
fmul dword [esp + 0x10]
fld dword [esp + 0x2c]
fmul dword [esp + 0x10]
fstp dword [esp + 0x118]
fxch st(1)
fadd dword [esp + 0x18]
fstp dword [esp + 0xe0]
fadd dword [esp + 0x1c]
fstp dword [esp + 0xe4]
fld dword [esp + 0x118]
fadd dword [esp + 0x20]
fstp dword [esp + 0xe8]
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xe0]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x64], ecx
cmp eax, dword [esp + 0xdc]
mov dword [esp + 0x5c], edx
jge 0x404fc0
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x14]
lea ecx, [eax + edx*8]
add eax, esi
mov dword [esp + 0x44], ecx
mov edx, eax
mov ecx, dword [edx]
mov dword [esp + 0x18], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x1c], ecx
mov edx, dword [edx + 8]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x20], edx
fld dword [ecx]
fsub dword [eax]
fstp dword [esp + 0xc4]
fld dword [ecx + 4]
fsub dword [eax + 4]
fstp dword [esp + 0xc8]
fld dword [ecx + 8]
mov ecx, dword [esp + 0xc8]
fsub dword [eax + 8]
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x28], ecx
fstp dword [esp + 0xcc]
mov edx, dword [esp + 0xcc]
push eax
mov ecx, eax
push ecx
mov dword [esp + 0x34], edx
call fcn.0041a12f
fld dword [esp + 0x24]
fmul dword [esp + 0x10]
fld dword [esp + 0x28]
fmul dword [esp + 0x10]
fld dword [esp + 0x2c]
fmul dword [esp + 0x10]
fstp dword [esp + 0x100]
fxch st(1)
fadd dword [esp + 0x18]
fstp dword [esp + 0x74]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x50], edx
fadd dword [esp + 0x1c]
fstp dword [esp + 0x78]
mov eax, dword [esp + 0x78]
fld dword [esp + 0x100]
mov dword [esp + 0x54], eax
fadd dword [esp + 0x20]
fstp dword [esp + 0x7c]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x58], ecx
jmp 0x4050a1
mov edx, dword [esp + 0x14]
lea eax, [ebx + edx]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [ecx + 8]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x14]
fld dword [esi + ecx]
fsub dword [eax]
fstp dword [esp + 0x84]
mov edx, dword [esp + 0x84]
fld dword [esi + ecx + 4]
fsub dword [eax + 4]
fstp dword [esp + 0x88]
fld dword [esi + ecx + 8]
fsub dword [eax + 8]
mov eax, dword [esp + 0x88]
mov dword [esp + 0x24], edx
lea edx, [esp + 0x24]
mov dword [esp + 0x28], eax
fstp dword [esp + 0x8c]
mov ecx, dword [esp + 0x8c]
push edx
mov eax, edx
push eax
mov dword [esp + 0x34], ecx
call fcn.0041a12f
fld dword [esp + 0x24]
fmul dword [esp + 0x10]
fld dword [esp + 0x28]
fmul dword [esp + 0x10]
fld dword [esp + 0x2c]
fmul dword [esp + 0x10]
fstp dword [esp + 0x10c]
fxch st(1)
fadd dword [esp + 0x18]
fstp dword [esp + 0x9c]
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x50], ecx
fadd dword [esp + 0x1c]
fstp dword [esp + 0xa0]
mov edx, dword [esp + 0xa0]
fld dword [esp + 0x10c]
mov dword [esp + 0x54], edx
fadd dword [esp + 0x20]
fstp dword [esp + 0xa4]
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
lea edx, [esi + eax]
push edx
add eax, ebx
push eax
mov dword [esp + 0x40], ecx
call fcn.004424a0
fstp dword [esp + 0x48]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x54]
add esi, eax
push esi
add ebx, eax
push ebx
push edx
mov dword [esp + 0x50], ecx
call fcn.004453c0
fstp dword [esp + 0x60]
mov esi, dword [esp + 0x94]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x48]
add esp, 0x14
mov al, byte [esp + 0x130]
fld dword [0x4cc30c]
test al, al
fdiv dword [esp + 0x10]
lea edx, [ebp + ebp*2]
jne 0x40513e
push ecx
fst dword [esp + 0x38]
fmul dword [esp + 0x34]
lea eax, [esp + 0x54]
fstp dword [esp]
push eax
lea eax, [ecx + edx*8]
push eax
lea edx, [edi + edi*2]
lea eax, [ecx + edx*8]
push eax
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x6c]
push ecx
lea edx, [ebx + ebx*2]
lea ecx, [eax + edx*4]
push ecx
call fcn.0041a237
fld dword [esp + 0x34]
jmp 0x405186
fld dword [esp + 0x30]
lea eax, [ecx + edx*8]
fmul st(1)
lea edx, [edi + edi*2]
mov dword [esp + 0x44], eax
lea eax, [ecx + edx*8]
mov edx, dword [esi + 0xc]
lea ecx, [ebx + ebx*2]
lea ecx, [edx + ecx*4]
mov edx, dword [esp + 0x44]
fld dword [edx]
fsub dword [eax]
fmul st(1)
fadd dword [eax]
fstp dword [ecx]
fld dword [edx + 4]
fsub dword [eax + 4]
fmul st(1)
fadd dword [eax + 4]
fstp dword [ecx + 4]
fld dword [edx + 8]
fsub dword [eax + 8]
fmul st(1)
fadd dword [eax + 8]
fstp dword [ecx + 8]
fstp st(0)
fld dword [esp + 0x40]
fsub dword [esp + 0x38]
fcom dword [0x4cc304]
fnstsw ax
test ah, 0x41
jne 0x4051ae
fcom dword [0x4cccc0]
fnstsw ax
test ah, 1
jne 0x4051ae
fsub dword [0x4cc4d0]
fcom dword [0x4cc304]
fnstsw ax
test ah, 5
jp 0x4051ce
fcom dword [0x4cccbc]
fnstsw ax
test ah, 0x41
jp 0x4051ce
fadd dword [0x4cc4d0]
mov eax, dword [esi + 0x10]
fld st(1)
fmul st(1)
fmul dword [esp + 0x30]
fadd dword [esp + 0x38]
fstp dword [eax + ebx*4]
fstp st(0)
fld dword [esp + 0x4c]
fsub dword [esp + 0x3c]
fcom dword [0x4cc304]
fnstsw ax
test ah, 0x41
jne 0x40520a
fcom dword [0x4cccc0]
fnstsw ax
test ah, 1
jne 0x40520a
fsub dword [0x4cc4d0]
fcom dword [0x4cc304]
fnstsw ax
test ah, 5
jp 0x40522a
fcom dword [0x4cccbc]
fnstsw ax
test ah, 0x41
jp 0x40522a
fadd dword [0x4cc4d0]
mov ecx, dword [esi + 0x14]
fxch st(1)
fmul st(1)
inc ebx
cmp ebx, 0x1000
mov dword [esp + 0x34], ebx
fmul dword [esp + 0x30]
fadd dword [esp + 0x3c]
fstp dword [ecx + ebx*4 - 4]
fstp st(0)
jl 0x404b4c
mov edx, dword [esp + 0xb4]
mov ecx, dword [esp + 0x12c]
push edx
call fcn.00437e40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 8