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

Disassembly:
sub esp, 0xf8
add dword [0x4ededc], 1
push ebx
push ebp
mov ebp, dword [esp + 0x10c]
mov ecx, dword [ebp + 0x38]
mov edx, dword [ebp + 0x3c]
push esi
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0x40]
push edi
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp + 0x48]
lea eax, [ebp + 0x1c]
push eax
mov dword [esp + 0x40], edx
mov edx, dword [ebp + 0x44]
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebp + 0x50]
mov dword [esp + 0x48], edx
mov edx, dword [ebp + 0x4c]
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x118]
mov dword [esp + 0x54], edx
mov edx, dword [ebp + 0x54]
push ebp
push ecx
lea ebx, [esp + 0x58]
lea eax, [esp + 0x90]
mov dword [esp + 0x64], edx
call fcn.004506b0
lea eax, [esp + 0x30]
lea edi, [esp + 0x80]
call fcn.00450a80
mov ebx, dword [esp + 0xec]
mov dword [esp + 0x1c], 0
xor eax, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
jle 0x45123d
lea ecx, [esp + 0xa0]
jmp 0x451220
mov edx, dword [ecx - 4]
mov dword [esp + eax*4 + 0xfc], edx
mov edx, dword [ecx]
mov dword [esp + eax*4 + 0xf0], edx
add eax, 1
add ecx, 0x24
cmp eax, ebx
jl 0x451220
mov eax, ebx
sub eax, 2
je 0x451257
sub eax, 1
jne 0x45126a
lea eax, [esp + 0x80]
call fcn.00450e30
jmp 0x451263
lea eax, [esp + 0x80]
call fcn.00450d50
mov ebx, dword [esp + 0xec]
cmp ebx, 3
je 0x4514e3
lea eax, [esp + 0x14]
lea edi, [esp + 0x80]
call fcn.00450a80
lea esi, [esp + 0x58]
mov ecx, edi
call fcn.00450990
fld dword [esp + 0x5c]
fld st(0)
fld dword [esp + 0x58]
fld st(0)
fmul st(0), st(0)
fld st(2)
fmulp st(3)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fcomp dword [0x499b7c]
fnstsw ax
test ah, 5
jnp 0x4514d8
mov eax, dword [esp + 0xec]
fxch st(1)
fchs
sub esp, 8
fstp dword [esp + 4]
lea esi, [eax + eax*8]
lea eax, [esp + 0x78]
fchs
lea esi, [esp + esi*4 + 0x88]
fstp dword [esp]
call fcn.004069b0
fld dword [esp + 0x74]
sub esp, 8
fld st(0)
lea eax, [esp + 0x80]
fld dword [esp + 0x4c]
fld st(0)
fmulp st(2)
fld dword [esp + 0x78]
fld st(0)
fld dword [esp + 0x48]
fld st(0)
fmulp st(2)
fxch st(4)
fsubrp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp + 4]
fxch st(3)
fmulp st(2)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
call fcn.004069b0
lea eax, [esp + 0x78]
push eax
mov eax, ebp
call fcn.00450570
mov dword [esi + 0x1c], eax
mov ecx, dword [ebp + 0x10]
fld dword [ecx + eax*8]
lea eax, [ecx + eax*8]
fld dword [esp + 0x40]
sub esp, 8
fld st(0)
fmulp st(2)
fld dword [esp + 0x4c]
fld st(0)
fmul dword [eax + 4]
faddp st(3)
fld dword [esp + 0x44]
faddp st(3)
fxch st(2)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp + 4]
fld dword [eax]
fmulp st(2)
fmul dword [eax + 4]
lea eax, [esp + 0x70]
fsubp st(1)
fadd dword [esp + 0x40]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
call fcn.004069b0
fld dword [esp + 0x54]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
fld st(0)
fld dword [esp + 0x5c]
mov dword [esi], edx
fld st(0)
mov dword [esi + 4], eax
fmulp st(2)
fld dword [esp + 0x50]
fld st(0)
fld dword [esp + 0x58]
fld st(0)
fmulp st(2)
sub esp, 8
fxch st(4)
lea eax, [esp + 0x38]
fsubrp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp + 4]
fmulp st(1)
fxch st(2)
fmulp st(1)
faddp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
call fcn.004069b0
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push ecx
mov eax, edi
call fcn.00450570
mov dword [esi + 0x20], eax
mov edx, dword [edi + 0x10]
fld dword [edx + eax*8]
lea eax, [edx + eax*8]
fld dword [esp + 0x50]
sub esp, 8
fld st(0)
fmulp st(2)
fld dword [eax + 4]
fld dword [esp + 0x5c]
fld st(0)
fmulp st(2)
fxch st(3)
faddp st(1)
fadd dword [esp + 0x54]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp + 4]
fld dword [eax]
fmulp st(2)
fmul dword [eax + 4]
lea eax, [esp + 0x2c]
fsubp st(1)
fadd dword [esp + 0x50]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
call fcn.004069b0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
lea edx, [esi + 8]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov ecx, esi
lea eax, [esp + 0x60]
call fcn.00421e20
mov edx, dword [eax]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x10], edx
mov eax, dword [eax + 4]
mov edi, 1
add dword [esp + 0x1c], edi
add dword [0x4eded8], edi
mov dword [esi + 0x14], eax
xor eax, eax
test ecx, ecx
jle 0x4514bb
mov edx, dword [esi + 0x1c]
lea esp, [esp]
cmp edx, dword [esp + eax*4 + 0xfc]
jne 0x4514b5
mov ebx, dword [esi + 0x20]
cmp ebx, dword [esp + eax*4 + 0xf0]
je 0x4514dc
add eax, edi
cmp eax, ecx
jl 0x4514a0
mov ebx, dword [esp + 0xec]
add ebx, edi
cmp dword [esp + 0x1c], 0x14
mov dword [esp + 0xec], ebx
jl 0x451205
jmp 0x4514e3
fstp st(1)
fstp st(0)
mov ebx, dword [esp + 0xec]
mov eax, dword [esp + 0x1c]
cmp dword [0x4eded4], eax
jg 0x4514f4
mov dword [0x4eded4], eax
mov eax, dword [esp + 0x10c]
lea edi, [eax + 8]
lea esi, [esp + 0x80]
call fcn.00450b30
mov esi, dword [esp + 0x10c]
mov ecx, edi
mov edx, esi
lea eax, [esp + 0x24]
call fcn.00421e20
fld dword [esp + 0x28]
fld dword [esp + 0x24]
push ecx
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.00421df0
mov ecx, dword [esp + 0x20]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
add esp, 4
cmp ebx, 3
fst dword [esi + 0x10]
fldz
mov dword [esi + 0x14], ecx
ja case.0x45155f.0
jmp dword [ebx*4 + 0x4517c0]
fstp st(1)
lea ecx, [esp + 0xb4]
lea edx, [esp + 0x90]
fstp st(0)
lea eax, [esp + 0x24]
call fcn.00421e20
fld dword [esp + 0x28]
fld dword [esp + 0x24]
push ecx
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.00421df0
fstp dword [esp + 0x20]
add esp, 4
fld dword [esp + 0x14]
jmp 0x451601
fstp st(1)
lea ecx, [esp + 0x90]
lea edx, [esp + 0xd8]
fstp st(0)
lea eax, [esp + 0x60]
call fcn.00421e20
mov esi, eax
lea ecx, [esp + 0x90]
lea edx, [esp + 0xb4]
lea eax, [esp + 0x30]
call fcn.00421e20
mov ecx, eax
mov eax, esi
call fcn.00421e10
fstp dword [esp + 0x1c]
fld dword [esp + 0x14]
mov esi, dword [esp + 0x10c]
jmp 0x451601
fstp dword [esp + 0x1c]
test ebx, ebx
fld dword [esp + 0x1c]
mov ecx, dword [esp + 0x110]
fstp dword [ecx]
mov word [ecx + 4], bx
jle 0x451637
add ecx, 9
lea eax, [esp + 0xa0]
movzx edx, byte [eax - 4]
mov byte [ecx - 3], dl
movzx edx, byte [eax]
mov byte [ecx], dl
add eax, 0x24
add ecx, 1
sub ebx, 1
jne 0x451620
cmp byte [ebp + 0x58], 0
je 0x4517b0
mov eax, dword [esp + 0x2c]
fld dword [ebp + 0x18]
fstp dword [esp + 0x14]
fld dword [eax + 0x18]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fadd dword [esp + 0x14]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x451743
fld dword [0x499b60]
fcomp st(2)
fnstsw ax
test ah, 5
jp 0x451743
fsubp st(1)
mov ecx, esi
mov edx, edi
lea eax, [esp + 0x1c]
fstp dword [esi + 0x10]
call fcn.00421e20
fld dword [esp + 0x20]
push ecx
fld dword [esp + 0x20]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.00421df0
fstp dword [esp + 0x14]
add esp, 4
fld dword [0x499b60]
fld dword [esp + 0x10]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x4516ee
fld1
fdivrp st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x1c]
fld dword [esp + 0x10]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x1c]
fmul dword [esp + 0x20]
fstp dword [esp + 0x20]
jmp 0x4516f0
fstp st(0)
fld dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
fstp dword [esp]
lea eax, [esp + 0x64]
call fcn.00421e30
mov ecx, eax
add esp, 4
mov eax, esi
call fcn.00421e00
fld dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x20]
fstp dword [esp]
lea eax, [esp + 0x64]
call fcn.00421e30
fld dword [edi]
fsub dword [eax]
add esp, 4
fstp dword [edi]
fld dword [edi + 4]
fsub dword [eax + 4]
fstp dword [edi + 4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret
fstp st(1)
sub esp, 8
fstp st(0)
lea eax, [esp + 0x38]
fld dword [edi + 4]
fadd dword [esi + 4]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp + 4]
fld dword [esi]
fadd dword [edi]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp]
call fcn.004069b0
fld dword [0x499a48]
push ecx
lea ecx, [esp + 0x34]
fstp dword [esp]
lea eax, [esp + 0x28]
call fcn.00421e30
fldz
mov eax, dword [esp + 0x28]
fstp dword [esi + 0x10]
mov ecx, dword [esp + 0x2c]
add esp, 4
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [edi], eax
mov dword [edi + 4], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret
pop edi
fstp st(0)
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret