Function at 0x4d2340
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55133f
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x5d3370]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x40]
call dword [0x55b404]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0xd0]
mov dword [ebp - 0x94], ecx
cmp dword [ebp - 0x94], 0
je 0x4d23c6
cmp dword [ebp - 0x94], 1
je 0x4d2417
jmp 0x4d246c
push str.WindowsBootEFI_bootmgr.efi
mov edx, dword [ebp - 0x90]
add edx, 0x20
push edx
lea eax, [ebp - 0x70]
push eax
call dword [0x55b334]
add esp, 0xc
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x9c]
push edx
lea ecx, [ebp - 0x40]
call dword [0x55b3ec]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call dword [0x55b408]
jmp 0x4d246c
push str.bootmgr.efi
mov eax, dword [ebp - 0x90]
add eax, 0x20
push eax
lea ecx, [ebp - 0x8c]
push ecx
call dword [0x55b334]
add esp, 0xc
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x40]
call dword [0x55b3ec]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call dword [0x55b408]
lea ecx, [ebp - 0x40]
call dword [0x55b3f0]
movzx ecx, al
test ecx, ecx
je 0x4d2491
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call dword [0x55b408]
jmp 0x4d27dc
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x40]
call dword [0x55b3dc]
push eax
call dword [0x55b228]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4d2513
mov edx, 1
test edx, edx
je 0x4d24fe
call fcn.00402980
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x4d24fe
call dword [0x55b27c]
push eax
lea ecx, [ebp - 0x40]
call dword [0x55b3dc]
push eax
push str.CreateFileW__s__failed__err:__d
push 4
push 1
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ecx + 0x18]
call eax
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call dword [0x55b408]
jmp 0x4d27dc
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [0x55b1ac]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4d2587
mov edx, 1
test edx, edx
je 0x4d2572
call fcn.00402980
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x4d2572
call dword [0x55b27c]
push eax
lea ecx, [ebp - 0x40]
call dword [0x55b3dc]
push eax
push str.CreateFileMapping__s__failed__err:__d
push 4
push 1
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ecx + 0x18]
call eax
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call dword [0x55b408]
jmp 0x4d27dc
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 0x14]
push ecx
call dword [0x55b1a8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4d25f9
mov edx, 1
test edx, edx
je 0x4d25e4
call fcn.00402980
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x4d25e4
call dword [0x55b27c]
push eax
lea ecx, [ebp - 0x40]
call dword [0x55b3dc]
push eax
push str.MapViewOfFile__s__failed__err:__d
push 4
push 1
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ecx + 0x18]
call eax
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call dword [0x55b408]
jmp 0x4d27dc
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x4d2657
mov eax, 1
test eax, eax
je 0x4d2642
call fcn.00402980
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x4d2642
lea ecx, [ebp - 0x40]
call dword [0x55b3dc]
push eax
push 0x585bb0
push 4
push 1
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [edx + 0x18]
call ecx
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call dword [0x55b408]
jmp 0x4d27dc
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp dword [ecx], 0x4550
je 0x4d26be
mov edx, 1
test edx, edx
je 0x4d26a9
call fcn.00402980
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x4d26a9
lea ecx, [ebp - 0x40]
call dword [0x55b3dc]
push eax
push str.File:__s__NT_header_not_found_
push 4
push 1
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ecx + 0x18]
call eax
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call dword [0x55b408]
jmp 0x4d27dc
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx + 4]
mov dword [ebp - 0xa8], edx
cmp dword [ebp - 0xa8], 0x5032
jg 0x4d2735
cmp dword [ebp - 0xa8], 0x5032
je 0x4d27a2
cmp dword [ebp - 0xa8], 0x200
jg 0x4d2720
cmp dword [ebp - 0xa8], 0x200
je 0x4d2799
cmp dword [ebp - 0xa8], 0x14c
je 0x4d2775
cmp dword [ebp - 0xa8], 0x1c0
je 0x4d2787
jmp 0x4d27c4
cmp dword [ebp - 0xa8], 0xebc
je 0x4d27bd
jmp 0x4d27c4
cmp dword [ebp - 0xa8], 0x8664
jg 0x4d2767
cmp dword [ebp - 0xa8], 0x8664
je 0x4d277e
cmp dword [ebp - 0xa8], 0x5064
je 0x4d27ab
cmp dword [ebp - 0xa8], 0x5128
je 0x4d27b4
jmp 0x4d27c4
cmp dword [ebp - 0xa8], 0xaa64
je 0x4d2790
jmp 0x4d27c4
mov dword [ebp - 0x1c], 1
jmp 0x4d27c4
mov dword [ebp - 0x1c], 2
jmp 0x4d27c4
mov dword [ebp - 0x1c], 3
jmp 0x4d27c4
mov dword [ebp - 0x1c], 4
jmp 0x4d27c4
mov dword [ebp - 0x1c], 5
jmp 0x4d27c4
mov dword [ebp - 0x1c], 6
jmp 0x4d27c4
mov dword [ebp - 0x1c], 7
jmp 0x4d27c4
mov dword [ebp - 0x1c], 8
jmp 0x4d27c4
mov dword [ebp - 0x1c], 9
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call dword [0x55b408]
xor eax, eax
jne 0x4d238d
cmp dword [ebp - 0x10], 0
je 0x4d27f3
mov ecx, dword [ebp - 0x10]
push ecx
call dword [0x55b1a4]
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x14], 0
je 0x4d2810
cmp dword [ebp - 0x14], 0xffffffff
je 0x4d2810
mov edx, dword [ebp - 0x14]
push edx
call dword [0x55b278]
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x18], 0
je 0x4d282d
cmp dword [ebp - 0x18], 0xffffffff
je 0x4d282d
mov eax, dword [ebp - 0x18]
push eax
call dword [0x55b278]
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.0053e1e2
mov esp, ebp
pop ebp
ret