Function at 0x4a69f0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e9ac0
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x7ce4e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1dc], edi
mov dword [ebp - 0x1e0], eax
call fcn.004b0410
test al, al
je 0x4a6a61
push str.CreateShareble
mov dword [ebp - 0x1e4], str.CreateShareble
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call fcn.004bcd00
mov ecx, eax
call fcn.004bd010
mov dword [ebp - 4], 0
cmp dword [ebx + 4], 0
je 0x4a6a83
push str._rYeR
push esi
call fcn.0049c8a0
add esp, 8
mov bl, al
jmp 0x4a6d06
test edi, edi
jne 0x4a6af1
cmp byte [ebp + 0xc], 0
je 0x4a6cab
push edi
push dword [ebp - 0x1e0]
push 0
push 0x8000004
call fcn.004a87d0
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
jne 0x4a6bd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0049c7f0
mov ecx, eax
call fcn.0049c950
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, esi
call fcn.0049c7f0
test edi, edi
jne 0x4a6bcb
push 0x792e5c
push 0x791e68
push eax
jmp 0x4a6cfc
push 6
push 0x791ea8
push dword [ebp - 0x1dc]
lea edi, [ebp - 0x1d8]
call fcn.005d221c
add esp, 0xc
test eax, eax
mov eax, edi
je 0x4a6b3f
push 0x791ea8
push 0xe2
push eax
call fcn.005d0460
add esp, 0xc
mov eax, edi
push 0xc2
push dword [ebp - 0x1dc]
push 0xe2
push eax
call fcn.005d570a
jmp 0x4a6b55
push 0xc8
push dword [ebp - 0x1dc]
push 0xe2
push eax
call fcn.005d20af
xor eax, eax
add esp, 0x10
mov word [ebp - 0x48], ax
cmp byte [ebp + 0x14], al
je 0x4a6b84
call fcn.0049f040
add eax, 0x706
je 0x4a6b84
push eax
lea eax, [ebp - 0x1d8]
push 0xe2
push eax
call fcn.005cfead
add esp, 0xc
cmp byte [ebp + 0x18], 0
je 0x4a6bab
call fcn.0049f040
add eax, 0x6e4
je 0x4a6bab
push eax
lea eax, [ebp - 0x1d8]
push 0xe2
push eax
call fcn.005cfead
add esp, 0xc
lea eax, [ebp - 0x1d8]
push eax
push 1
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test eax, eax
je 0x4a6a87
mov ecx, 2
jmp 0x4a6bda
push 0x792e40
jmp 0x4a6ce5
mov ecx, 1
push dword [ebp - 0x1e0]
mov dword [ebx + 0xc], ecx
push 0
push 0
push 6
push eax
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 8], eax
test eax, eax
jne 0x4a6ca7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x1dc], eax
test ecx, ecx
je 0x4a6c1f
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebx + 8], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x4a6c34
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 4], 0
push dword [ebp - 0x1dc]
mov ecx, esi
call fcn.0049c7f0
mov ecx, eax
call fcn.0049c950
mov ecx, esi
call fcn.0049c7f0
test edi, edi
jne 0x4a6c63
push 0x792ed4
push 0x791e68
push eax
jmp 0x4a6cfc
push str.Filemap
mov esi, eax
push 0x791e68
push esi
call fcn.0049a160
add esp, 0xc
push edi
push 0x791e68
push esi
call fcn.0049a160
add esp, 0xc
push 0x792f20
push 0x791e68
push esi
call fcn.0049a160
add esp, 0xc
push dword [ebp - 0x1e0]
push 0x791e58
jmp 0x4a6cfb
mov bl, 1
jmp 0x4a6d06
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0049c7f0
mov ecx, eax
call fcn.0049c950
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, esi
call fcn.0049c7f0
test edi, edi
jne 0x4a6ce0
push 0x792e94
push 0x791e68
push eax
jmp 0x4a6cfc
push 0x792e78
mov esi, eax
push 0x791e68
push esi
call fcn.0049a160
add esp, 0xc
push edi
push 0x791e68
push esi
call fcn.0049a160
add esp, 0xc
xor bl, bl
lea ecx, [ebp - 0x1e4]
call fcn.004b0360
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005be209
mov esp, ebp
pop ebp
ret 0x2c