Function at 0x483e23
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1810
push 0x4a2bd4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffb8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x54], ecx
push 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x483e63
xor eax, eax
jmp 0x4840ff
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x48], 0
push 0
push 0x8000000
push 3
push 0
push 1
push closesocket
mov ecx, dword [ebp + 8]
push ecx
call dword [0x54299c]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x483ec1
mov eax, dword [ebp - 0x38]
jmp 0x4840ff
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 0x8000002
push 0
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x483f04
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x38]
jmp 0x4840ff
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x483f3b
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x38]
jmp 0x4840ff
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dl, byte [ecx]
cmp edx, 0x4d
jne 0x4840b9
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov cl, byte [eax + 1]
cmp ecx, 0x5a
jne 0x4840b9
mov edx, dword [ebp - 0x20]
add edx, 0x3c
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0x50
jne 0x4840b9
mov edx, dword [ebp - 0x28]
xor eax, eax
mov al, byte [edx + 1]
cmp eax, 0x45
jne 0x4840b9
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov dx, word [ecx + 6]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x2c]
add eax, 0xf8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x50], 0
jmp 0x483ff2
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x24]
add edx, 0x28
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x30]
jge 0x484028
push 4
push 0x53a944
mov ecx, dword [ebp - 0x24]
push ecx
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x484026
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x24], 0xe00000e0
jne 0x484026
mov dword [ebp - 0x38], 1
jmp 0x484028
jmp 0x483fe0
cmp dword [ebp - 0x38], 0
je 0x48409d
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x48]
add ecx, dword [eax + 0x14]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x48]
add eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x24]
add eax, dword [ecx + 8]
mov dword [ebp - 0x20], eax
jmp 0x484057
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x20]
jae 0x48409d
push 0x15
push 0x539e80
mov ecx, dword [ebp - 0x28]
push ecx
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x48407d
mov dword [ebp - 0x40], 1
push 0x12
push 0x539e98
mov edx, dword [ebp - 0x28]
push edx
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x48409b
mov dword [ebp - 0x44], 1
jmp 0x48404e
cmp dword [ebp - 0x40], 0
je 0x4840b2
cmp dword [ebp - 0x44], 0
je 0x4840b2
mov dword [ebp - 0x38], 1
jmp 0x4840b9
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 4], 0xffffffff
jmp 0x4840fc
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4