Function at 0x4cd8f0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed6d8
push 0x489ac0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffb4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
cmp dword [ebp + 8], 0xffffffff
je 0x4cd928
cmp dword [ebp + 0x10], 0
je 0x4cd928
cmp dword [ebp + 0x14], 0
jne 0x4cd932
mov eax, 0x57
jmp 0x4cdbed
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4cd982
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x4cdba1
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4cd9ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x4cdba1
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0x4550
jne 0x4cdba1
mov ecx, dword [ebp - 0x2c]
add ecx, 0x80
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x2c]
add edx, 0xf8
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
jmp 0x4cd9fd
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov dx, word [ecx + 6]
cmp dword [ebp - 0x38], edx
jae 0x4cda52
mov eax, dword [ebp - 0x38]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ecx]
cmp ecx, dword [edx + eax + 0xc]
jb 0x4cda50
mov edx, dword [ebp - 0x38]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x38]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + edx + 0xc]
mov ecx, dword [ebp - 0x3c]
add edx, dword [ecx + eax + 8]
mov eax, dword [ebp - 0x30]
cmp dword [eax], edx
jae 0x4cda50
mov ecx, dword [ebp - 0x38]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x3c]
add edx, ecx
mov dword [ebp - 0x34], edx
jmp 0x4cda52
jmp 0x4cd9f4
cmp dword [ebp - 0x34], 0
je 0x4cdba1
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x34]
mov edx, dword [eax + 0xc]
sub edx, dword [ecx + 0x14]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x80]
sub ecx, dword [ebp - 0x44]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
cmp dword [edx], 0
jne 0x4cda92
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x10], 0
je 0x4cdba1
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0xc]
sub edx, dword [ebp - 0x44]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], 0
jmp 0x4cdab3
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [ebp + 0xc]
jae 0x4cdb93
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x48]
imul eax, eax, 0x64
mov ecx, dword [ebp + 0x10]
add ecx, eax
push ecx
call fcn.004860ca
add esp, 8
test eax, eax
jne 0x4cdb8e
cmp dword [ebp - 0x4c], 0
je 0x4cdb8e
mov dword [ebp - 0x50], 0
mov edx, dword [ebp - 0x40]
cmp dword [edx], 0
je 0x4cdb08
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax]
sub ecx, dword [ebp - 0x44]
mov dword [ebp - 0x50], ecx
jmp 0x4cdb24
mov edx, dword [ebp - 0x40]
cmp dword [edx + 0x10], 0
je 0x4cdb22
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x10]
sub ecx, dword [ebp - 0x44]
mov dword [ebp - 0x50], ecx
jmp 0x4cdb24
jmp 0x4cdb93
mov edx, dword [ebp - 0x50]
cmp dword [edx], 0
je 0x4cdb8e
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
and ecx, 0x80000000
test ecx, ecx
je 0x4cdb3d
jmp 0x4cdb83
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx]
sub eax, dword [ebp - 0x44]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
add ecx, 2
mov dword [ebp - 0x54], ecx
cmp dword [ebp - 0x54], 0
je 0x4cdb83
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x48]
imul eax, eax, 0x64
mov ecx, dword [ebp + 0x10]
lea edx, [ecx + eax + 0x32]
push edx
call fcn.004860ca
add esp, 8
test eax, eax
jne 0x4cdb83
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
jmp 0x4cdba1
mov ecx, dword [ebp - 0x50]
add ecx, 4
mov dword [ebp - 0x50], ecx
jmp 0x4cdb24
jmp 0x4cdaaa
mov edx, dword [ebp - 0x40]
add edx, 0x14
mov dword [ebp - 0x40], edx
jmp 0x4cda7d
mov dword [ebp - 4], 0xffffffff
jmp 0x4cdbca
cmp dword [ebp - 0x1c], 0
je 0x4cdbda
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x24], 0
je 0x4cdbea
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10