Function at 0x4885af
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad6a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x5c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
push 0
push 0x8000000
push 3
push 0
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [0x54b4dc]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x50], ecx
cmp dword [ebp - 0x50], 0xffffffff
jne 0x48864d
mov eax, dword [ebp - 0x34]
jmp 0x488959
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 0x8000002
push 0
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x488690
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x34]
jmp 0x488959
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x4886c7
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x34]
jmp 0x488959
jmp 0x4886cf
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0x4d
je 0x488708
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x34]
jmp 0x488959
mov edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x4c]
lea edx, [ecx + eax - 0x400]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
jmp 0x488732
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x28]
jae 0x488835
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0x2a
jne 0x488830
mov edx, dword [ebp - 0x18]
xor eax, eax
mov al, byte [edx + 1]
cmp eax, 0x2d
jne 0x488830
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov dl, byte [ecx + 2]
cmp edx, 0x2e
jne 0x488830
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov cl, byte [eax + 3]
cmp ecx, 0x2d
jne 0x488830
mov edx, dword [ebp - 0x18]
xor eax, eax
mov al, byte [edx + 4]
cmp eax, 0x2a
jne 0x488830
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
sub edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
jmp 0x4887b2
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x28]
jae 0x488830
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 2
jne 0x4887d5
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dl, byte [ecx]
cmp edx, 1
jne 0x48882b
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x54]
push eax
push 0
mov ecx, dword [ebp - 0x38]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x54]
sub edx, 1
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
jmp 0x4887a9
jmp 0x488729
cmp dword [ebp - 0x38], 0
jne 0x488861
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x34]
jmp 0x488959
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ntdll.dll_atoi]
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x30]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call sub.ntdll.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
push eax
call dword [0x54b4b8]
mov dword [ebp - 0x40], eax
push 0
push 0x8000000
push 1
push 0
push 1
push 0xc0000000
mov ecx, dword [ebp + 8]
push ecx
call dword [0x54b4dc]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xffffffff
jne 0x4888f5
jmp 0x488922
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x44]
push edx
call dword [0x54b4d4]
cmp dword [ebp - 0x14], 0
ja 0x488915
jmp 0x488922
mov dword [ebp - 0x34], 1
xor eax, eax
test eax, eax
jne 0x4888ce
cmp dword [ebp - 0x44], 0
je 0x488932
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
push eax
call fcn.004aa2c8
add esp, 4
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
push edx
call fcn.004aa2c8
add esp, 4
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4