Function at 0x4a628ff8
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 0x4a629001
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 0x4a62936c
push dword fs:[edx]
mov dword fs:[edx], esp
xor ebx, ebx
test eax, eax
jne 0x4a629032
xor eax, eax
jmp 0x4a62904b
cmp word [eax + 0x18], 0x20b
jne 0x4a629045
add eax, 0x18
mov eax, dword [eax + 0xa0]
jmp 0x4a62904b
mov eax, dword [eax + 0xa8]
test eax, eax
jne 0x4a629315
lea eax, [ebp - 0x18]
push eax
push 1
mov esi, dword [0x4a6ce694]
mov esi, dword [esi]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x4c]
mov ecx, 0x7fffffff
mov eax, 0x4a62938c
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.4a6085ac
mov esi, dword [0x4a6ce5a0]
mov esi, dword [esi]
mov edx, 0x4a62939c
mov eax, dword [ebp - 0x18]
call esi
test al, al
jne 0x4a629147
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4c]
call fcn.4a607a58
push eax
mov eax, dword [ebp - 0x18]
call fcn.4a607a58
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.4a6085ac
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
mov ecx, 0x4a62939c
call fcn.4a60843c
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a629105
mov eax, dword [ebp - 0x14]
call fcn.4a60824c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4a629134
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x4a629158
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x14]
mov ecx, 0
call fcn.4a608094
mov eax, dword [ebp - 0x24]
call fcn.4a607ee8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x4a629158
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x4c]
call fcn.4a607990
jmp 0x4a629158
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x4c]
call fcn.4a607990
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a629177
mov eax, dword [ebp - 0x14]
call fcn.4a60824c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x4a6291ae
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x4a62932e
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov ecx, 0
call fcn.4a608094
mov eax, dword [ebp - 0x28]
call fcn.4a607ee8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4a62932e
mov eax, dword [ebp - 0x14]
call fcn.4a628e48
test al, al
jne 0x4a62932e
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4a6291eb
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 0x14]
call fcn.4a60824c
push eax
call sub.kernel32.dll_CreateFileW_1
mov esi, eax
jmp 0x4a62921a
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.4a608094
mov eax, dword [ebp - 0x2c]
call fcn.4a607ee8
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x4a62932e
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov edi, eax
test edi, edi
je 0x4a62930d
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 0x4a629307
mov eax, dword [ebp - 0x1c]
call fcn.4a6168a8
test eax, eax
je 0x4a6292f2
cmp word [eax + 0x18], 0x20b
jne 0x4a62927a
mov edx, eax
add edx, 0x108
jmp 0x4a629282
mov edx, eax
add edx, 0xf8
add edx, 0x28
test byte [edx + 0x24], 0x20
je 0x4a6292a3
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 0x4a6292a6
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 0x4a6292c9
add eax, 0x18
mov eax, dword [eax + 0xa0]
jmp 0x4a6292cf
mov eax, dword [eax + 0xa8]
cmp dword [edx + 0x14], 0
je 0x4a6292fe
cmp eax, dword [edx + 0xc]
jne 0x4a6292fe
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.4a628c5c
pop ecx
mov ebx, eax
jmp 0x4a6292fe
push ebp
mov eax, dword [ebp - 0x1c]
call fcn.4a628c5c
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 0x4a62932e
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.4a628c5c
pop ecx
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a629373
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.4a607618
lea eax, [ebp - 0x20]
call fcn.4a607588
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.4a6075e8
lea eax, [ebp - 4]
mov edx, dword [0x4a625b90]
call fcn.4a609274
ret