Function at 0x42735c
Capabilities:
Check if file exists
Enumerate pe sections
Get file attributes
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x427365
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 0xe], al
mov eax, dword [ebp + 8]
xor edx, edx
push ebp
push 0x4276fb
push dword fs:[edx]
mov dword fs:[edx], esp
xor ebx, ebx
test eax, eax
jne 0x427397
xor eax, eax
jmp 0x4273b0
cmp word [eax + 0x18], 0x20b
jne 0x4273aa
add eax, 0x18
mov eax, dword [eax + 0xa0]
jmp 0x4273b0
mov eax, dword [eax + 0xa8]
test eax, eax
jne 0x42769f
lea eax, [ebp - 0x18]
push eax
push 1
mov esi, dword [0x612eec]
mov esi, dword [esi]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x4c]
mov ecx, 0x7fffffff
mov eax, 0x42771c
call esi
mov edx, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4c]
mov ecx, 0x7fffffff
call fcn.004071b4
mov esi, dword [0x612af0]
mov esi, dword [esi]
mov edx, 0x42772c
mov eax, dword [ebp - 0x18]
call esi
test al, al
jne 0x4274b1
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4c]
call fcn.00406d78
push eax
lea eax, [ebp - 0x18]
call fcn.00405c38
call fcn.00406d78
pop ecx
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4c]
mov edx, 1
call fcn.004071b4
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x14]
mov ecx, 0x42772c
call fcn.00406edc
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x42746f
mov eax, dword [ebp - 0x14]
call fcn.00406a94
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42749e
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x4274c2
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov ecx, 0
call fcn.00406c4c
mov eax, dword [ebp - 0x28]
call fcn.004061fc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x4274c2
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x4c]
call fcn.00406a5c
jmp 0x4274c2
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x4c]
call fcn.00406a5c
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4274e1
mov eax, dword [ebp - 0x14]
call fcn.00406a94
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x427518
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x4276bd
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
mov ecx, 0
call fcn.00406c4c
mov eax, dword [ebp - 0x2c]
call fcn.004061fc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4276bd
mov eax, dword [ebp - 0x14]
call fcn.00427194
test al, al
jne 0x4276bd
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x427555
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 0x14]
call fcn.00406a94
push eax
call sub.kernel32.dll_CreateFileW_1
mov esi, eax
jmp 0x427584
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x14]
mov ecx, 0
call fcn.00406c4c
mov eax, dword [ebp - 0x30]
call fcn.004061fc
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x4276bd
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov edi, eax
test edi, edi
je 0x427697
push 0
push 0
push 0
push 4
push edi
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x427691
mov eax, dword [ebp - 0x20]
call fcn.0041a78c
test eax, eax
je 0x42767c
cmp word [eax + 0x18], 0x20b
jne 0x4275e7
mov edx, eax
add edx, 0x108
mov dword [ebp - 0x1c], edx
jmp 0x4275f2
mov edx, eax
add edx, 0xf8
mov dword [ebp - 0x1c], edx
add dword [ebp - 0x1c], 0x28
mov edx, dword [ebp - 0x1c]
test byte [edx + 0x24], 0x20
je 0x42761e
mov dword [ebp - 8], 3
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0xc]
mov dword [ebp - 0xc], edx
sub dword [ebp - 0x1c], 0x28
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0xc]
sub dword [ebp - 0xc], edx
jmp 0x427622
sub dword [ebp - 0x1c], 0x28
movzx edx, word [eax + 6]
dec edx
add edx, edx
add edx, edx
add edx, edx
lea edx, [edx + edx*4]
add dword [ebp - 0x1c], edx
cmp word [eax + 0x18], 0x20b
jne 0x427646
add eax, 0x18
mov eax, dword [eax + 0xa0]
jmp 0x42764c
mov eax, dword [eax + 0xa8]
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x14], 0
je 0x427688
mov edx, dword [ebp - 0x1c]
cmp eax, dword [edx + 0xc]
jne 0x427688
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x14]
mov eax, dword [ebp - 0x20]
add ecx, eax
mov edx, ecx
push ebp
mov edx, dword [edx + 0x18]
add edx, eax
mov eax, edx
call fcn.00426f9c
pop ecx
mov ebx, eax
jmp 0x427688
push ebp
mov eax, dword [ebp - 0x20]
call fcn.00426f9c
pop ecx
mov ebx, eax
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_UnmapViewOfFile
push edi
call sub.kernel32.dll_CloseHandle_1
push esi
call sub.kernel32.dll_CloseHandle_1
jmp 0x4276bd
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx - 4]
mov ecx, dword [ecx + 0x38]
add eax, ecx
mov edx, eax
push ebp
mov eax, dword [ebp + 0xc]
mov eax, ecx
add eax, dword [edx + 0x14]
call fcn.00426f9c
pop ecx
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427702
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00405a60
lea eax, [ebp - 0x24]
call fcn.004069f8
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00406a00
lea eax, [ebp - 4]
mov edx, dword [0x423e08]
call fcn.004085b8
ret