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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b156
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push esi
push edi
mov eax, dword [0x51384c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x18c
call fcn.00462d62
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 0x431621
push edi
mov ecx, eax
call fcn.00431400
mov esi, eax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], esi
call fcn.004080e0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 1
call fcn.00408380
push edi
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0xa0]
push edx
lea ebx, [esi + 8]
push ebx
call fcn.0041c810
add esp, 0x10
test al, al
jne 0x43169c
test esi, esi
je 0x431676
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.00408190
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.004201d0
or ebx, 0xffffffff
mov dword [esi + 4], eax
cmp eax, ebx
je 0x4316ea
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 0x431716
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.00408190
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 0x431781
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.00408190
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 0x4317a4
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 0x431748
push ebx
lea ecx, [esi + 0x2c]
call fcn.0044d320
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 0x4317ca
push str.Failed_to_find_NT_header
jmp 0x431736
push ebx
lea ecx, [esi + 0x70]
call fcn.0044d0d0
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.0044d1e0
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x1c], ecx
mov ecx, esi
mov dword [esi + 0x20], ebx
call fcn.004313c0
push edi
mov ecx, esi
call fcn.004309a0
test al, al
jne 0x431824
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 0x431827
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0xffffffff
call fcn.00408190
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