Function at 0x42dc40
Capabilities:
Enumerate pe sections
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x479ff9
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push ebp
push esi
push edi
mov eax, dword [0x536400]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
push 0x188
call fcn.00462aa2
add esp, 4
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0xb8]
xor esi, esi
cmp eax, esi
mov dword [esp + 0xac], esi
je 0x42dc9c
push ebx
mov ecx, eax
call fcn.0042da70
mov esi, eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0xac], 0xffffffff
call fcn.00406b00
mov edi, dword [esp + 0xb4]
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0xb0], 1
call fcn.00406da0
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
lea ebp, [esi + 8]
push ebp
call fcn.0041c830
add esp, 0x10
test al, al
jne 0x42dd10
test esi, esi
je 0x42dcf5
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0xac], 0xffffffff
call fcn.00406bc0
xor eax, eax
jmp 0x42de93
push 0
mov ecx, ebp
call fcn.0042c490
or ebp, 0xffffffff
cmp eax, ebp
mov dword [esi + 4], eax
je 0x42dd5f
mov ecx, dword [esi + 0xc]
push 0
push 0
push 0
push 2
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 0x14], eax
jne 0x42dd80
test ebx, ebx
je 0x42dd5f
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
push str.Failed_to_create_file_mapping
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x28]
push edi
push str.filename
mov ecx, ebx
call eax
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0xac], ebp
call fcn.00406bc0
xor eax, eax
jmp 0x42de93
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
test ebp, ebp
mov dword [esi + 0x18], ebp
jne 0x42ddc2
test ebx, ebx
je 0x42dceb
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
push str.Failed_to_map_view_of_file
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x28]
push edi
push str.filename
mov ecx, ebx
call eax
jmp 0x42dceb
cmp word [ebp], 0x5a4d
je 0x42ddf4
test ebx, ebx
je 0x42dceb
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
push str.Failed_to_find_DOS_signature
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x28]
push edi
push str.filename
mov ecx, ebx
call eax
jmp 0x42dceb
push ebp
lea ecx, [esi + 0x2c]
call fcn.004477d0
mov edi, dword [ebp + 0x3c]
push 4
add edi, ebp
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x42de46
test ebx, ebx
je 0x42de37
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
push str.Failed_to_find_NT_header
mov ecx, ebx
call eax
mov eax, dword [esp + 0xb4]
mov edx, dword [ebx]
mov edx, dword [edx + 0x28]
push eax
push str.filename
mov ecx, ebx
call edx
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
jmp 0x42dcf5
push edi
lea ecx, [esi + 0x70]
call fcn.00447600
movzx ecx, word [edi + 6]
movzx eax, word [edi + 0x14]
push ecx
lea eax, [eax + edi + 0x18]
push eax
lea ecx, [esi + 0x16c]
call fcn.004476f0
mov ecx, esi
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x20], edi
call fcn.0042da30
push ebx
mov ecx, esi
call fcn.0042d210
lea ecx, [esp + 0x1c]
mov dword [esp + 0xac], 0xffffffff
call fcn.00406bc0
mov eax, esi
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret