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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x10]
sub esp, 0xc5c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp eax, edi
je 0x401488
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
jmp 0x4014a7
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
dec eax
push eax
dec ecx
push ecx
push edi
push edi
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov ebx, dword [ebp + 0x14]
xor edx, edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
cmp ebx, edi
jne 0x4014f0
lea eax, [esp + 0x20]
push eax
push esi
lea ecx, [esp + 0x70]
push ecx
call fcn.004011d0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
lea ebx, [esp + 0x68]
sub eax, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
inc eax
inc ecx
imul eax, ecx
lea edx, [esp + 0x34]
push ebx
push edx
mov esi, eax
call fcn.00401280
mov ecx, dword [esp + 0x58]
fld qword [0x47f930]
mov dword [esp + 0x20], edi
fld st(0)
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x50]
fst qword [esp + 0x28]
mov dword [esp + 0x24], esi
fxch st(1)
add esp, 8
fst qword [esp + 0x60]
xor esi, esi
cmp edi, ecx
mov eax, edi
jg 0x401548
mov edx, dword [ebx + eax*4]
imul edx, eax
inc eax
add esi, edx
cmp eax, ecx
jle 0x40153b
inc edi
cmp edi, ecx
jge 0x401607
lea eax, [edi - 1]
mov dword [esp + 0x14], eax
lea ebx, [ebx + edi*4 - 4]
lea esp, [esp]
mov ecx, dword [ebx]
fstp st(0)
fstp st(0)
test ecx, ecx
je 0x40157f
mov eax, dword [esp + 0x14]
add dword [esp + 0x18], ecx
imul eax, ecx
sub dword [esp + 0x1c], ecx
add dword [esp + 0x10], eax
sub esi, eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x60]
push edx
mov edx, dword [esp + 0x18]
push eax
push esi
push ecx
push edx
call fcn.004013f0
fst qword [esp + edi*8 + 0x480]
fld qword [esp + 0x78]
add esp, 0x18
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x4015d1
mov eax, dword [esp + 0x5c]
fstp st(0)
mov ecx, dword [esp + 0x58]
fld st(0)
fst qword [esp + 0x60]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
fldz
fld qword [esp + 0x20]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x4015eb
fcom st(2)
fnstsw ax
test ah, 0x41
jne 0x401644
fstp st(0)
fxch st(1)
fst qword [esp + 0x20]
fxch st(1)
inc dword [esp + 0x14]
inc edi
add ebx, 4
cmp edi, dword [esp + 0x50]
jl 0x401560
fld qword [0x47f928]
fdiv st(1), st(0)
fxch st(1)
call fcn.00463db0
fdivp st(1)
mov dword [esp + 0x40], eax
call fcn.00463db0
mov edi, dword [ebp + 8]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x34]
test edi, edi
je 0x40163b
mov ecx, 9
lea esi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
fstp st(2)
jmp 0x4015f5