Function at 0x428fa8
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 0x428fb1
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 0x42931c
push dword fs:[edx]
mov dword fs:[edx], esp
xor ebx, ebx
test eax, eax
jne 0x428fe2
xor eax, eax
jmp 0x428ffb
cmp word [eax + 0x18], 0x20b
jne 0x428ff5
add eax, 0x18
mov eax, dword [eax + 0xa0]
jmp 0x428ffb
mov eax, dword [eax + 0xa8]
test eax, eax
jne 0x4292c5
lea eax, [ebp - 0x18]
push eax
push 1
mov esi, dword [0x768bf8]
mov esi, dword [esi]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x4c]
mov ecx, 0x7fffffff
mov eax, 0x42933c
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.0040ad20
mov esi, dword [0x76897c]
mov esi, dword [esi]
mov edx, 0x42934c
mov eax, dword [ebp - 0x18]
call esi
test al, al
jne 0x4290f7
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4c]
call fcn.00409e0c
push eax
mov eax, dword [ebp - 0x18]
call fcn.00409e0c
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.0040ad20
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
mov ecx, 0x42934c
call fcn.0040abb0
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4290b5
mov eax, dword [ebp - 0x14]
call fcn.0040a944
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4290e4
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x429108
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x14]
mov ecx, 0
call fcn.0040a554
mov eax, dword [ebp - 0x24]
call fcn.0040a3a8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x429108
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x4c]
call fcn.00409d3c
jmp 0x429108
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x4c]
call fcn.00409d3c
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x429127
mov eax, dword [ebp - 0x14]
call fcn.0040a944
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x42915e
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x4292de
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov ecx, 0
call fcn.0040a554
mov eax, dword [ebp - 0x28]
call fcn.0040a3a8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4292de
mov eax, dword [ebp - 0x14]
call fcn.00428df8
test al, al
jne 0x4292de
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x42919b
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 0x14]
call fcn.0040a944
push eax
call sub.kernel32.dll_CreateFileW_1
mov esi, eax
jmp 0x4291ca
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
mov ecx, 0
call fcn.0040a554
mov eax, dword [ebp - 0x2c]
call fcn.0040a3a8
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x4292de
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov edi, eax
test edi, edi
je 0x4292bd
push 0
push 0
push 0
push 4
push edi
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4292b7
mov eax, dword [ebp - 0x1c]
call fcn.0041aab4
test eax, eax
je 0x4292a2
cmp word [eax + 0x18], 0x20b
jne 0x42922a
mov edx, eax
add edx, 0x108
jmp 0x429232
mov edx, eax
add edx, 0xf8
add edx, 0x28
test byte [edx + 0x24], 0x20
je 0x429253
mov dword [ebp - 8], 3
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0xc], ecx
sub edx, 0x28
mov ecx, dword [edx + 0xc]
sub dword [ebp - 0xc], ecx
jmp 0x429256
sub edx, 0x28
movzx ecx, word [eax + 6]
dec ecx
add ecx, ecx
add ecx, ecx
add ecx, ecx
lea ecx, [ecx + ecx*4]
add edx, ecx
cmp word [eax + 0x18], 0x20b
jne 0x429279
add eax, 0x18
mov eax, dword [eax + 0xa0]
jmp 0x42927f
mov eax, dword [eax + 0xa8]
cmp dword [edx + 0x14], 0
je 0x4292ae
cmp eax, dword [edx + 0xc]
jne 0x4292ae
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x1c]
add eax, ecx
push ebp
mov eax, dword [eax + 0x18]
add eax, ecx
call fcn.00428c0c
pop ecx
mov ebx, eax
jmp 0x4292ae
push ebp
mov eax, dword [ebp - 0x1c]
call fcn.00428c0c
pop ecx
mov ebx, eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_UnmapViewOfFile
push edi
call sub.kernel32.dll_CloseHandle_1
push esi
call sub.kernel32.dll_CloseHandle_1
jmp 0x4292de
mov edx, dword [ebp + 0xc]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x38]
add eax, edx
push ebp
add edx, dword [eax + 0x14]
mov eax, edx
call fcn.00428c0c
pop ecx
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429323
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.004099a4
lea eax, [ebp - 0x20]
call fcn.00409914
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00409974
lea eax, [ebp - 4]
mov edx, dword [0x425b40]
call fcn.0040bfc8
ret