Function at 0x459ff0
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov dword [ebx], 0
mov byte [ebp - 1], 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, 0xffffffff
je 0x45a050
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x45a059
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x45a088
push dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 8]
call esi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45a280
mov esi, dword [eax + 0x3c]
add esi, eax
mov eax, 0x100
test word [esi + 0x16], ax
je 0x45a0c3
movzx eax, word [esi + 4]
mov ecx, 0x8664
cmp ax, cx
je 0x45a0c3
mov ecx, 0x200
cmp ax, cx
je 0x45a0c3
mov byte [edi], 1
jmp 0x45a0c6
mov byte [edi], 2
mov eax, dword [esi + 8]
mov dword [ebx], eax
mov eax, dword [ebp + 0x14]
mov cx, word [esi + 0x5e]
mov word [eax], cx
cmp byte [edi], 2
jne 0x45a193
mov eax, dword [ebp + 0xc]
push pe_nt_image_headers32
mov esi, dword [eax + 0x3c]
add esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x45a280
cmp dword [esi], 0x4550
jne 0x45a280
lea eax, [esi + 0x108]
mov edx, 1
movzx esi, word [esi + 6]
cmp esi, edx
jl 0x45a280
lea ecx, [ecx]
cmp dword [eax + 0x10], 0
jne 0x45a186
cmp dword [eax], 0x7865742e
jne 0x45a137
cmp dword [eax + 4], 0x73736274
je 0x45a186
cmp dword [eax], 0x736c742e
jne 0x45a145
cmp dword [eax + 4], 0
je 0x45a186
cmp dword [eax], 0x7373622e
jne 0x45a161
cmp dword [eax + 4], 0
je 0x45a186
cmp dword [eax], 0x7373622e
jne 0x45a161
cmp dword [eax + 4], 0
je 0x45a186
cmp dword [eax], 0x625f7472
jne 0x45a172
cmp dword [eax + 4], 0x7373
je 0x45a186
mov ecx, dword [eax + 0x24]
test ecx, 0x20000000
je 0x45a186
test cl, 0xc0
jne 0x45a27c
inc edx
add eax, 0x28
cmp edx, esi
jle 0x45a120
jmp 0x45a280
push 0xf8
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x45a280
cmp dword [esi], 0x4550
jne 0x45a280
lea ecx, [esi + 0xf8]
movzx esi, word [esi + 6]
lea edi, [eax + 1]
cmp esi, edi
jl 0x45a280
mov edx, dword [ecx + 0x24]
test dl, 0x20
je 0x45a1e8
mov eax, dword [ecx + 8]
cmp eax, 0x1000
jbe 0x45a1e8
add eax, 0xfffff000
cmp dword [ecx + 0x10], eax
jb 0x45a27c
cmp dword [ecx], 0x7865742e
jne 0x45a20a
cmp dword [ecx + 4], 0x74
jne 0x45a20a
mov eax, dword [ecx + 8]
cmp eax, 0x1000
jbe 0x45a20a
add eax, 0xfffff000
cmp dword [ecx + 0x10], eax
jb 0x45a27c
cmp byte [ecx], 0
jne 0x45a217
mov eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 8]
jb 0x45a27c
cmp dword [ecx + 0x10], 0
jne 0x45a26e
cmp dword [ecx + 8], 0x1000
jb 0x45a26e
cmp dword [ecx], 0x7865742e
jne 0x45a237
cmp dword [ecx + 4], 0x73736274
je 0x45a26e
cmp dword [ecx], 0x736c742e
jne 0x45a245
cmp dword [ecx + 4], 0
je 0x45a26e
cmp dword [ecx], 0x7373622e
jne 0x45a253
cmp dword [ecx + 4], 0
je 0x45a26e
cmp dword [ecx], 0x7461642e
jne 0x45a261
cmp dword [ecx + 4], 0x61
je 0x45a26e
test edx, 0x20000000
je 0x45a26e
test dl, 0xc0
jne 0x45a27c
inc edi
add ecx, 0x28
cmp edi, esi
jle 0x45a1c8
jmp 0x45a280
mov byte [ebp - 1], 1
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 8]
call esi
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret