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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x541b70
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x598c90]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jne 0x48515f
xor esi, esi
jmp 0x485162
mov esi, dword [eax + 0xc]
test eax, eax
jne 0x48516c
mov dword [esp + 0x14], eax
jmp 0x485173
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
push 1
push 0
push 3
lea edx, [esp + 0x38]
push edx
mov edi, esi
call fcn.0048fe70
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x58]
push eax
xor edi, edi
mov dword [esp + 0x84], 0
call fcn.004902c0
lea ecx, [esp + 0x3c]
push ecx
mov edi, 2
lea ecx, [esp + 0x30]
mov byte [esp + 0x84], 1
call fcn.004902c0
fld dword [ebx + 0xc]
fld qword [0x573068]
lea edx, [esi - 1]
fld st(0)
mov dword [esp + 0x20], edx
fdivrp st(2)
fxch st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fld qword [0x572c30]
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 0x34]
fld dword [ebx + 0xc]
fsub qword [0x572c38]
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x18]
fadd dword [esp + 0x18]
mov dword [esp + 0x18], edx
fstp qword [esp + 0x24]
mov ebx, dword [esp + 0x24]
test edx, edx
jl 0x48525f
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x58]
dec edi
xor eax, eax
add esi, edx
lea ecx, [ecx + edx*4]
test edi, edi
jl 0x485256
mov dl, byte [ecx + 3]
imul ebx, eax
movzx edx, dl
shl edx, 6
add ebx, edx
imul ebx, dword [esp + 0x34]
sar ebx, 0xc
mov eax, ebx
mov ebx, dword [esp + 0x24]
mov byte [esi], al
add ecx, dword [esp + 0x60]
add esi, dword [esp + 0x44]
sub edi, 1
jns 0x485227
mov edx, dword [esp + 0x18]
sub edx, 1
mov dword [esp + 0x18], edx
jns 0x48520f
mov esi, dword [esp + 0x14]
add esi, 0xffffffff
mov dword [esp + 0x18], esi
js 0x4852ad
mov edx, dword [esp + 0x20]
mov eax, esi
imul eax, dword [esp + 0x44]
add eax, dword [esp + 0x3c]
xor ecx, ecx
test edx, edx
jl 0x4852a4
movzx esi, byte [eax]
mov edi, ebx
imul edi, ecx
shl esi, 6
add esi, edi
imul esi, dword [esp + 0x34]
sar esi, 0xc
mov ecx, esi
mov byte [eax], cl
inc eax
sub edx, 1
jns 0x485281
mov esi, dword [esp + 0x18]
sub esi, 1
mov dword [esp + 0x18], esi
jns 0x48526c
lea eax, [esp + 0x3c]
call fcn.00490330
lea eax, [esp + 0x58]
mov byte [esp + 0x80], 0
call fcn.00490330
mov eax, dword [esp + 0x1c]
fld dword [eax + 0x10]
push ecx
fmul dword [ebp + 0x10]
lea edx, [esp + 0x24]
mov eax, 0x59f898
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp]
call fcn.00476380
mov esi, dword [ebp + 0xc]
push eax
call fcn.00478940
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
push 1
push ecx
push edx
push esi
lea ecx, [esp + 0x3c]
call fcn.00479cd0
fld dword [ebp + 0x10]
push ecx
fstp dword [esp]
call fcn.004789b0
mov ecx, dword [ebp + 8]
push 0
push 0
push 0
push esi
call fcn.00479cd0
lea ecx, [esp + 0x2c]
call fcn.0048ff10
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc