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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b176
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.00462d52
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 0x431611
push edi
mov ecx, eax
call fcn.004313f0
mov esi, eax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], esi
call fcn.004080d0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 1
call fcn.00408370
push edi
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0xa0]
push edx
lea ebx, [esi + 8]
push ebx
call fcn.0041c800
add esp, 0x10
test al, al
jne 0x43168c
test esi, esi
je 0x431666
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.00408180
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.004201c0
or ebx, 0xffffffff
mov dword [esi + 4], eax
cmp eax, ebx
je 0x4316da
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 0x431706
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.00408180
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 0x431771
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.00408180
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 0x431794
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 0x431738
push ebx
lea ecx, [esi + 0x2c]
call fcn.0044d310
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 0x4317ba
push str.Failed_to_find_NT_header
jmp 0x431726
push ebx
lea ecx, [esi + 0x70]
call fcn.0044d0c0
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.0044d1d0
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x1c], ecx
mov ecx, esi
mov dword [esi + 0x20], ebx
call fcn.004313b0
push edi
mov ecx, esi
call fcn.00430990
test al, al
jne 0x431814
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 0x431817
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0xffffffff
call fcn.00408180
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