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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
mov eax, ecx
mov dword [ebp - 0xc], 0
push esi
push edi
mov dword [ebp - 0x54], eax
xor esi, esi
mov edi, dword [eax]
mov ebx, edx
mov eax, dword [ebp + 8]
and eax, 0xfffffff0
mov dword [ebp - 0x50], eax
jbe 0x409a24
nop word [eax + eax]
movsd xmm0, qword [ebx + esi*8]
movsd qword [ebp - 0x5c], xmm0
fld qword [ebp - 0x5c]
fistp dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov dword [edi + esi*4], eax
movsd xmm0, qword [ebx + esi*8 + 8]
movsd qword [ebp - 0x5c], xmm0
fld qword [ebp - 0x5c]
fistp dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov dword [edi + esi*4 + 4], eax
movsd xmm0, qword [ebx + esi*8 + 0x10]
movsd qword [ebp - 0x5c], xmm0
fld qword [ebp - 0x5c]
fistp dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov dword [edi + esi*4 + 8], eax
movsd xmm0, qword [ebx + esi*8 + 0x18]
movsd qword [ebp - 0x5c], xmm0
fld qword [ebp - 0x5c]
fistp dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov dword [edi + esi*4 + 0xc], eax
movsd xmm0, qword [ebx + esi*8 + 0x20]
movsd qword [ebp - 0x5c], xmm0
fld qword [ebp - 0x5c]
fistp dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
mov dword [edi + esi*4 + 0x10], eax
movsd xmm0, qword [ebx + esi*8 + 0x28]
movsd qword [ebp - 0x5c], xmm0
fld qword [ebp - 0x5c]
fistp dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov dword [edi + esi*4 + 0x14], eax
movsd xmm0, qword [ebx + esi*8 + 0x30]
movsd qword [ebp - 0x5c], xmm0
fld qword [ebp - 0x5c]
fistp dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov dword [edi + esi*4 + 0x18], eax
movsd xmm0, qword [ebx + esi*8 + 0x38]
movsd qword [ebp - 0x5c], xmm0
fld qword [ebp - 0x5c]
fistp dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
mov dword [edi + esi*4 + 0x1c], eax
movsd xmm0, qword [ebx + esi*8 + 0x40]
movsd qword [ebp - 0x5c], xmm0
fld qword [ebp - 0x5c]
fistp dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
mov dword [edi + esi*4 + 0x20], eax
movsd xmm0, qword [ebx + esi*8 + 0x48]
movsd qword [ebp - 0x5c], xmm0
fld qword [ebp - 0x5c]
fistp dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
mov dword [edi + esi*4 + 0x24], eax
movsd xmm0, qword [ebx + esi*8 + 0x50]
movsd qword [ebp - 0x5c], xmm0
fld qword [ebp - 0x5c]
fistp dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov dword [edi + esi*4 + 0x28], eax
movsd xmm0, qword [ebx + esi*8 + 0x58]
movsd qword [ebp - 0x5c], xmm0
fld qword [ebp - 0x5c]
fistp dword [ebp - 0x3c]
mov eax, dword [ebp - 0x3c]
mov dword [edi + esi*4 + 0x2c], eax
movsd xmm0, qword [ebx + esi*8 + 0x60]
movsd qword [ebp - 0x5c], xmm0
fld qword [ebp - 0x5c]
fistp dword [ebp - 0x40]
mov eax, dword [ebp - 0x40]
mov dword [edi + esi*4 + 0x30], eax
movsd xmm0, qword [ebx + esi*8 + 0x68]
movsd qword [ebp - 0x5c], xmm0
fld qword [ebp - 0x5c]
fistp dword [ebp - 0x44]
mov eax, dword [ebp - 0x44]
mov dword [edi + esi*4 + 0x34], eax
movsd xmm0, qword [ebx + esi*8 + 0x70]
movsd qword [ebp - 0x5c], xmm0
fld qword [ebp - 0x5c]
fistp dword [ebp - 0x48]
mov eax, dword [ebp - 0x48]
mov dword [edi + esi*4 + 0x38], eax
movsd xmm0, qword [ebx + esi*8 + 0x78]
movsd qword [ebp - 0x5c], xmm0
fld qword [ebp - 0x5c]
fistp dword [ebp - 0x4c]
mov eax, dword [ebp - 0x4c]
mov dword [edi + esi*4 + 0x3c], eax
add esi, 0x10
fnstsw word [ebp - 8]
test byte [ebp - 8], 1
je 0x409a1b
fnstenv [ebp - 0x78]
and dword [ebp - 0x74], 0xfffffffe
fldenv [ebp - 0x78]
lea eax, [ebp - 0xc]
mov edx, ebx
push eax
push esi
lea eax, [esi - 0x10]
mov ecx, edi
push eax
push 1
call fcn.004097c0
add esp, 0x10
cmp esi, dword [ebp - 0x50]
jb 0x409870
lea eax, [ebp - 0xc]
mov edx, ebx
push eax
push dword [ebp + 8]
mov ecx, edi
push esi
push 1
call fcn.004097c0
mov eax, dword [ebp + 8]
add esp, 0x10
mov ecx, dword [ebp - 0x54]
lea eax, [edi + eax*4]
pop edi
pop esi
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
pop ebx
mov esp, ebp
pop ebp
ret