Function at 0x456a90
Capabilities:
Enumerate pe sections
Get common file path
Read file via mapping

Disassembly:
mov eax, 0x1018
call fcn.004218a0
push ebx
push ebp
push esi
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x28]
push 0x1000
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, dword [esp + 0x102c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xor ebp, ebp
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push ebp
push 0x80
mov ecx, ebx
push 3
push ebp
and ecx, 3
push 1
lea eax, [esp + 0x3c]
push 0x80000000
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
je 0x456cb5
push ebp
push ebp
push ebp
push 2
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push ebp
push ebp
push ebp
push 4
push eax
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x456cb5
mov ecx, dword [eax + 0x3c]
xor esi, esi
add ecx, eax
mov dword [esp + 0x10], ebp
mov edx, dword [ecx + 0x34]
mov si, word [ecx + 0x14]
mov dword [esp + 0x1c], edx
xor edx, edx
mov dx, word [ecx + 6]
lea edi, [esi + ecx + 0x18]
cmp edx, 1
jb 0x456cb5
mov dword [esp + 0x14], edx
mov esi, str.PAGE
mov ecx, edi
mov dl, byte [ecx]
mov bl, dl
cmp dl, byte [esi]
jne 0x456b9e
test bl, bl
je 0x456b9a
mov dl, byte [ecx + 1]
mov bl, dl
cmp dl, byte [esi + 1]
jne 0x456b9e
add ecx, 2
add esi, 2
test bl, bl
jne 0x456b7a
xor ecx, ecx
jmp 0x456ba3
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x456bab
mov ebp, edi
jmp 0x456be3
mov esi, str..text
mov ecx, edi
mov dl, byte [ecx]
mov bl, dl
cmp dl, byte [esi]
jne 0x456bd6
test bl, bl
je 0x456bd2
mov dl, byte [ecx + 1]
mov bl, dl
cmp dl, byte [esi + 1]
jne 0x456bd6
add ecx, 2
add esi, 2
test bl, bl
jne 0x456bb2
xor ecx, ecx
jmp 0x456bdb
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x456be3
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x14]
add edi, 0x28
dec ecx
mov dword [esp + 0x14], ecx
jne 0x456b73
test ebp, ebp
je 0x456cb5
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x456cb5
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
xor esi, esi
add ecx, eax
lea edi, [edx - 0x14]
xor ebx, ebx
test edi, edi
jbe 0x456c8b
mov al, 0xf
mov dl, byte [ecx]
cmp dl, 0x3b
je 0x456c26
cmp dl, 0x39
jne 0x456c81
cmp byte [ecx + 2], al
jne 0x456c81
cmp byte [ecx + 3], 0x84
jne 0x456c81
mov dl, byte [ecx + 8]
cmp dl, 0x3b
je 0x456c3e
cmp dl, 0x39
jne 0x456c81
cmp byte [ecx + 0xa], al
jne 0x456c81
cmp byte [ecx + 0xb], 0x85
jne 0x456c81
cmp byte [ecx + 0x10], 0x68
jne 0x456c81
mov dl, byte [ecx + 0x15]
cmp dl, 0x50
jbe 0x456c81
cmp dl, 0x60
jae 0x456c81
cmp byte [ecx + 0x16], 0xe8
jne 0x456c81
mov esi, dword [ecx + 0x11]
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
sub esi, edx
mov edx, dword [ebp + 0xc]
cmp esi, edx
jb 0x456c7f
mov ebp, dword [ebp + 8]
add ebp, edx
cmp esi, ebp
jb 0x456c87
xor esi, esi
inc ebx
inc ecx
cmp ebx, edi
jb 0x456c1a
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0x20]
push ecx
call edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1018
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1018
ret 4