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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b186
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push esi
push edi
mov eax, dword [0x51484c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x18c
call fcn.00462d92
add esp, 4
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 4], esi
cmp eax, esi
je 0x431651
push edi
mov ecx, eax
call fcn.00431430
mov esi, eax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], esi
call fcn.00408110
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 1
call fcn.004083b0
push edi
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0xa0]
push edx
lea ebx, [esi + 8]
push ebx
call fcn.0041c840
add esp, 0x10
test al, al
jne 0x4316cc
test esi, esi
je 0x4316a6
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0xffffffff
call fcn.004081c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
mov ecx, ebx
call fcn.00420200
or ebx, 0xffffffff
mov dword [esi + 4], eax
cmp eax, ebx
je 0x43171a
mov eax, dword [esi + 0xc]
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x431746
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
push str.Failed_to_create_file_mapping
mov ecx, edi
call eax
mov eax, dword [ebp + 8]
mov edx, dword [edi]
mov edx, dword [edx + 0x28]
push eax
push str.filename
mov ecx, edi
call edx
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], ebx
call fcn.004081c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
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 ebx, eax
mov dword [ebp - 0x14], ebx
mov dword [esi + 0x18], ebx
test ebx, ebx
jne 0x4317b1
push str.Failed_to_map_view_of_file
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
mov eax, dword [edi]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x28]
push ecx
mov ecx, edi
push str.filename
call edx
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0xffffffff
call fcn.004081c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [ebx], ax
je 0x4317d4
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
push str.Failed_to_find_DOS_signature
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [ebp + 8]
mov edx, dword [edx + 0x28]
push eax
jmp 0x431778
push ebx
lea ecx, [esi + 0x2c]
call fcn.0044d350
mov ebx, dword [ebx + 0x3c]
add ebx, dword [ebp - 0x14]
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x4317fa
push str.Failed_to_find_NT_header
jmp 0x431766
push ebx
lea ecx, [esi + 0x70]
call fcn.0044d100
movzx ecx, word [ebx + 6]
movzx eax, word [ebx + 0x14]
push ecx
lea eax, [eax + ebx + 0x18]
push eax
lea ecx, [esi + 0x16c]
call fcn.0044d210
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x1c], ecx
mov ecx, esi
mov dword [esi + 0x20], ebx
call fcn.004313f0
push edi
mov ecx, esi
call fcn.004309d0
test al, al
jne 0x431854
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
push str.Failed_to_build_resource_tree..
mov ecx, edi
call eax
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
xor esi, esi
jmp 0x431857
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0xffffffff
call fcn.004081c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret