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

Disassembly:
sub esp, 0x38
mov edx, dword [esp + 0x3c]
push ebx
push esi
mov ebx, ecx
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push 0x58
push eax
push 6
push ecx
push edx
mov ecx, ebx
call fcn.004fc860
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 8], esi
jne 0x4fcee9
mov eax, dword [0x5e062c]
push str.Failed_to_read_cluster_lump_A3DESP::ReadClusterLump
push eax
call fcn.004c6d70
add esp, 8
xor al, al
pop esi
pop ebx
add esp, 0x38
ret 8
lea eax, [esi*8]
sub eax, esi
lea ecx, [eax + eax*4]
shl ecx, 2
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4fcf28
mov edx, dword [0x5e062c]
push str.Not_enough_memory_in_A3DESP::ReadClusterLump
push edx
call fcn.004c6d70
add esp, 8
xor al, al
pop esi
pop ebx
add esp, 0x38
ret 8
test esi, esi
jle 0x4fd0c6
push ebp
push edi
xor edi, edi
lea ecx, [eax + 0x1c]
mov dword [esp + 0x4c], esi
lea esi, [edi + 0x3c]
lea edx, [ecx + 0x20]
mov ebp, 3
mov eax, dword [esp + 0x50]
add esi, 4
add edx, 4
dec ebp
mov eax, dword [esi + eax - 0x10]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x50]
mov eax, dword [esi + eax - 4]
mov dword [edx + 0x14], eax
mov eax, dword [esp + 0x50]
mov eax, dword [esi + eax - 0x1c]
mov dword [edx - 4], eax
mov eax, dword [esp + 0x50]
mov eax, dword [esi + eax - 0x28]
mov dword [edx - 0x10], eax
mov eax, dword [esp + 0x50]
mov eax, dword [esi + eax - 0x34]
mov dword [edx - 0x1c], eax
mov eax, dword [esp + 0x50]
mov eax, dword [esi + eax - 0x40]
mov dword [edx - 0x28], eax
fild dword [edx + 8]
fdivr dword [0x58d5d4]
fstp dword [edx + 0x20]
jne 0x4fcf46
fld dword [ecx - 4]
fadd dword [ecx + 8]
fld dword [ecx]
fadd dword [ecx + 0xc]
lea edx, [ecx - 0x1c]
fstp dword [esp + 0x34]
fld dword [ecx + 4]
fadd dword [ecx + 0x10]
fstp dword [esp + 0x38]
fmul dword [0x58e1f0]
fstp dword [esp + 0x18]
fld dword [esp + 0x34]
fmul dword [0x58e1f0]
mov eax, dword [esp + 0x18]
mov dword [edx], eax
fstp dword [esp + 0x1c]
fld dword [esp + 0x38]
fmul dword [0x58e1f0]
mov eax, dword [esp + 0x1c]
mov dword [edx + 4], eax
fstp dword [esp + 0x20]
mov eax, dword [esp + 0x20]
mov dword [edx + 8], eax
lea edx, [ecx - 0x10]
fld dword [ecx + 8]
fsub dword [ecx - 4]
fld dword [ecx + 0xc]
fsub dword [ecx]
fstp dword [esp + 0x40]
fld dword [ecx + 0x10]
fsub dword [ecx + 4]
fstp dword [esp + 0x44]
fmul dword [0x58e1f0]
fstp dword [esp + 0x24]
fld dword [esp + 0x40]
fmul dword [0x58e1f0]
mov eax, dword [esp + 0x24]
mov dword [edx], eax
fstp dword [esp + 0x28]
fld dword [esp + 0x44]
fmul dword [0x58e1f0]
mov eax, dword [esp + 0x28]
mov dword [edx + 4], eax
fstp dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
mov dword [edx + 8], eax
mov edx, dword [esp + 0x50]
mov eax, dword [edi + edx + 0x50]
mov edx, dword [ebx + 0x10]
lea eax, [edx + eax*8]
mov dword [ecx + 0x58], eax
mov edx, dword [esp + 0x50]
mov eax, dword [edi + edx + 0x54]
mov dword [ecx + 0x5c], eax
mov edx, dword [esp + 0x50]
mov ebp, dword [ebx + 0xc]
mov edx, dword [edi + edx + 0x48]
lea eax, [edx + edx*4]
shl eax, 4
add eax, ebp
mov dword [ecx + 0x50], eax
mov edx, dword [esp + 0x50]
mov eax, dword [edi + edx + 0x4c]
mov dword [ecx + 0x54], eax
mov dword [ecx + 0x60], 1
mov edx, dword [ecx + 0x40]
imul edx, dword [ecx + 0x38]
mov dword [ecx + 0x64], edx
mov eax, dword [ecx + 0x38]
mov dword [ecx + 0x68], eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 0x6c], 0
add edi, 0x58
add ecx, 0x8c
dec eax
mov dword [esp + 0x4c], eax
jne 0x4fcf3b
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
pop edi
pop ebp
mov ecx, dword [esp + 0x48]
mov dword [ebx + 0x14], eax
push ecx
mov dword [ebx + 0x78], esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, 1
pop esi
pop ebx
add esp, 0x38
ret 8