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

Disassembly:
push 0xffffffffffffffff
push 0x580318
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61c948]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov esi, dword [ecx + 0x5974]
mov eax, dword [ecx + 0x5978]
add eax, esi
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x8c]
mov ecx, dword [eax + 0x78]
movzx ebx, word [ecx + 2]
mov eax, dword [ecx + 0x14]
mov edx, eax
imul edx, ebx
mov dword [esp + 0x50], ecx
movzx ecx, word [ecx + 0xe]
mov dword [esp + 0x38], edx
shr ecx, 3
xor edx, edx
div ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], esi
mov dword [esp + 0x28], ebx
mov ebp, eax
call fcn.004df590
mov edi, ebx
imul edi, ebp
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x64]
mov dword [esp + 0x80], 0
mov dword [esp + 0x60], edi
call fcn.004c8620
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x60]
mov ecx, eax
sub ecx, esi
cmp ecx, dword [esp + 0x38]
mov dword [esp + 0x44], edx
jl 0x4e171c
fld qword [0x5a39b0]
mov ecx, dword [esi]
cmp ecx, 0x64685353
jne 0x4e152e
mov ecx, dword [esi + 4]
lea esi, [esi + ecx + 8]
jmp 0x4e170c
cmp ecx, 0x64625353
jne 0x4e1549
mov ecx, dword [esp + 0x18]
add esi, 8
mov byte [ecx + 0x5948], 1
jmp 0x4e170c
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x5948], 0
je 0x4e1757
xor ecx, ecx
cmp ebp, ecx
mov dword [esp + 0x3c], ecx
jle 0x4e16b2
mov edi, esi
lea eax, [esi + ebp*2]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], edx
xor edx, edx
cmp ebx, 4
jl 0x4e1637
mov eax, dword [esp + 0x34]
lea ebx, [ecx + ebp*2]
lea ecx, [ecx + ebp*2]
lea ecx, [esi + ecx*2]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x28]
add ebx, ebp
add ecx, 0xfffffffc
lea ebx, [esi + ebx*2]
shr ecx, 2
add ecx, 1
mov dword [esp + 0x24], ebx
lea ebx, [ecx*4]
lea edx, [ebp*8]
mov dword [esp + 0x4c], ebx
movsx ebx, word [edi]
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x1c]
add dword [esp + 0x1c], edx
fild dword [esp + 0x48]
add eax, 0x10
add edi, edx
fmul st(1)
fstp dword [eax - 0x10]
movsx ebx, word [ebx]
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x20]
add dword [esp + 0x20], edx
fild dword [esp + 0x48]
fmul st(1)
fstp dword [eax - 0xc]
movsx ebx, word [ebx]
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x24]
add dword [esp + 0x24], edx
sub ecx, 1
fild dword [esp + 0x48]
fmul st(1)
fstp dword [eax - 8]
movsx ebx, word [ebx]
mov dword [esp + 0x48], ebx
fild dword [esp + 0x48]
fmul st(1)
fstp dword [eax - 4]
jne 0x4e15c9
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x28]
cmp edx, ebx
jge 0x4e1684
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x44]
add eax, edx
lea edi, [edi + eax*4]
mov eax, edx
imul eax, ebp
add eax, ecx
lea eax, [esi + eax*2]
mov dword [esp + 0x24], eax
mov eax, ebx
sub eax, edx
mov ebx, dword [esp + 0x24]
movsx edx, word [ebx]
mov dword [esp + 0x4c], edx
lea edx, [ebp + ebp]
add ebx, edx
fild dword [esp + 0x4c]
add edi, 4
sub eax, 1
mov dword [esp + 0x24], ebx
fmul st(1)
fstp dword [edi - 4]
jne 0x4e165a
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x40]
add dword [esp + 0x2c], 2
add dword [esp + 0x30], ebx
add ecx, 1
lea eax, [ebx*4]
add dword [esp + 0x34], eax
add edi, 2
cmp ecx, ebp
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edi
jl 0x4e157d
fstp st(0)
mov eax, dword [esp + 0x50]
movzx ecx, word [eax + 2]
mov edx, dword [eax + 4]
push 0
push ecx
mov ecx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x68]
push eax
call fcn.004dff30
mov edi, eax
test edi, edi
jne 0x4e176e
add esi, dword [esp + 0x38]
mov edi, dword [esp + 0x14]
sub edi, esi
push edi
push esi
mov esi, dword [esp + 0x5c]
push esi
call fcn.0047dcb0
fld qword [0x5a39b0]
mov edx, dword [esp + 0x50]
add esp, 0xc
add edi, esi
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x14]
mov ecx, eax
sub ecx, esi
cmp ecx, dword [esp + 0x38]
jge 0x4e1518
fstp st(0)
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
sub eax, esi
push eax
add ecx, 0x5970
call fcn.00514000
lea ecx, [esp + 0x5c]
mov dword [esp + 0x78], 0xffffffff
call fcn.004df5b0
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
test edi, edi
fstp st(0)
jle 0x4e16b4
mov ecx, edi
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
jmp 0x4e16b4
lea ecx, [esp + 0x5c]
mov dword [esp + 0x78], 0xffffffff
call fcn.004df5b0
mov eax, edi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret