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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xf4
fld qword [ebp + 0x24]
push ebx
fdiv qword [ebp + 0x1c]
push esi
push edi
sub esp, 8
fstp qword [esp + 0x78]
fld dword [ebp + 0x14]
fsub dword [0x627b08]
fstp qword [esp]
call fcn.005f7840
fadd qword [0x62ffe8]
mov esi, dword [ebp + 0x2c]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
fsub dword [ebp + 0x10]
mov ecx, esi
sar ecx, 1
lea edi, [ebx + eax]
fmul qword [esp + 0x78]
mov edx, 1
sub edx, ecx
add eax, edi
mov dword [esp + 0x20], edx
fstp qword [esp + 0x30]
fild dword [esp + 0x20]
push 0x2c
mov dword [esp + 0x20], eax
lea eax, [esp + 0x48]
push 0
fstp qword [esp + 0x88]
push eax
mov dword [esp + 0x4c], 0
call fcn.005f7e70
mov ecx, dword [ebp + 0x18]
add esp, 0x14
test ecx, ecx
jle 0x503707
fld qword [esp + 0x28]
lea eax, [esi - 1]
sar eax, 1
mov edx, esi
sub edx, eax
lea eax, [esp + edx*4 + 0x34]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x14]
sub eax, edi
mov dword [esp + 0x1c], eax
mov eax, ebx
sub eax, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
fsub qword [0x62ffe8]
sub esp, 8
fst qword [esp + 0x88]
fstp qword [esp]
call fcn.005f7250
fadd qword [0x62ffe8]
xor ebx, ebx
add esp, 8
test esi, esi
fst qword [esp + 0x98]
mov dword [esp + 0x10], ebx
fsubr qword [esp + 0x28]
fldz
fst qword [esp + 0x30]
jle 0x503547
fstp st(0)
fsubr qword [esp + 0x78]
fstp qword [esp + 0x20]
jmp 0x503513
fstp st(0)
fild dword [esp + 0x10]
mov ecx, dword [ebp + 0x30]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
fadd qword [esp + 0x20]
sub esp, 8
fstp qword [esp]
call eax
fst qword [esp + ebx*8 + 0xa0]
add ebx, 1
cmp ebx, esi
fadd qword [esp + 0x30]
mov dword [esp + 0x10], ebx
fst qword [esp + 0x30]
jl 0x503511
jmp 0x503549
fstp st(1)
fdivr qword [0x64c638]
xor ebx, ebx
lea eax, [esi - 1]
cmp eax, ebx
mov dword [esp + 0x10], ebx
fstp qword [esp + 0x90]
fldz
fst qword [esp + 0x20]
jle 0x5035d8
mov esi, ebx
sar esi, 1
test bl, 1
je 0x50357c
mov ecx, dword [ebp + 0x2c]
sub ecx, esi
sub ecx, 1
mov esi, ecx
fld qword [esp + esi*8 + 0xa0]
sub esp, 8
fmul qword [esp + 0x98]
faddp st(1)
fst qword [esp + 0x90]
fstp qword [esp]
call fcn.00519e42
add dword [esp + 0x18], eax
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
add eax, 0x40
and eax, 0xff
mov dword [esp + esi*4 + 0x40], eax
fsubr qword [esp + 0x90]
mov eax, dword [ebp + 0x2c]
add ebx, 1
add eax, 0xffffffff
fadd qword [esp + 0x28]
add esp, 8
cmp ebx, eax
fst qword [esp + 0x20]
jl 0x503569
mov esi, dword [ebp + 0x2c]
mov eax, dword [esp + 0x6c]
fstp st(0)
fld qword [esp + 0x98]
mov edx, 0xc0
fsub qword [esp + 0x80]
sub edx, dword [esp + 0x10]
mov dword [eax], edx
fadd qword [0x62ffe8]
fmul dword [0x64a188]
fadd dword [0x63c1f0]
fstp dword [esp + 0x68]
mov eax, dword [esp + 0x68]
add eax, 0xb4c00000
cmp eax, 0x100
jb 0x503622
not eax
sar eax, 0x1f
movzx eax, al
shl eax, 8
cmp esi, 8
jle 0x503683
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
add eax, dword [esp + 0x58]
shl ecx, 8
add ecx, dword [esp + 0x38]
shl eax, 8
add eax, dword [esp + 0x5c]
shl ecx, 8
add ecx, dword [esp + 0x3c]
shl eax, 8
shl ecx, 8
add ecx, dword [esp + 0x40]
mov dword [edx + edi], ecx
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x1c]
shl ecx, 8
add ecx, dword [esp + 0x48]
shl ecx, 8
add ecx, dword [esp + 0x4c]
shl ecx, 8
add ecx, dword [esp + 0x50]
add eax, dword [esp + 0x60]
mov dword [edi], ecx
mov dword [edx + edi], eax
jmp 0x5036eb
cmp esi, 4
jle 0x5036c7
mov ecx, dword [esp + 0x44]
add eax, dword [esp + 0x48]
mov edx, dword [esp + 0x14]
shl ecx, 8
add ecx, dword [esp + 0x38]
shl eax, 8
add eax, dword [esp + 0x4c]
shl ecx, 8
add ecx, dword [esp + 0x3c]
shl eax, 8
shl ecx, 8
add ecx, dword [esp + 0x40]
mov dword [edx + edi], ecx
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x1c]
add eax, ecx
mov dword [edx + edi], eax
mov dword [edi], eax
jmp 0x5036eb
add eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
shl eax, 8
add eax, dword [esp + 0x3c]
shl eax, 8
add eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [edx + edi], eax
mov dword [edi], eax
mov dword [ecx + edi], eax
fld qword [esp + 0x28]
add edi, 4
sub dword [esp + 0x18], 1
fadd qword [esp + 0x70]
fst qword [esp + 0x28]
jne 0x5034c9
fstp st(0)
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret