Function at 0x472580
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4c2e10
mov edi, ecx
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
lea eax, [esi + edx]
push 0
push eax
push 0
push 0x8000004
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp dword [edi + 0x1c], eax
mov esi, eax
je 0x47261d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, edi
mov ecx, dword [edi + 0x1c]
mov ebx, eax
inc ecx
cmp ecx, 2
jb 0x472603
call fcn.0040e440
mov dword [ebp - 0x24], edi
push dword [edi + 0x1c]
call fcn.0040f9e0
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x1c], 0
mov eax, esi
inc eax
cmp eax, 2
jb 0x472613
mov dword [edi + 0x1c], esi
call fcn.0040e440
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [edi + 0x1c]
mov ebx, dword [ebp + 0x18]
lea eax, [esi + 1]
cmp eax, 1
ja 0x47264a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov esi, 0x19
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov ebx, edi
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x30]
push 0
push 0
push 7
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x472882
push 0
push 0
push 0
push 6
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x472897
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], ebx
test esi, esi
je 0x4726db
cmp dword [ebp + 0x14], 0
je 0x4726db
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x2c]
lea edi, [ecx + eax]
push dword [ebp + 0x14]
push esi
push edi
call fcn.0061e340
add esp, 0xc
mov eax, 0xfffff950
jmp 0x4726c5
add eax, 4
je 0x4726db
mov ecx, dword [edi + eax + 0x6b0]
test ecx, ecx
je 0x4726c0
sub ecx, esi
mov dword [edi + eax + 0x6b0], ecx
jmp 0x4726c0
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, edi
mov dword [0x6d1f8c], eax
call fcn.0043e750
mov ebx, dword [ebp + 0x18]
mov esi, 8
test al, al
je 0x4728b1
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 4
push 0x6d1f8c
push 0x6d1f8c
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4728ac
cmp dword [ebp - 0x20], 4
mov esi, 0x3a
mov dword [0x6d1f8c], 0
jne 0x4728bb
mov eax, dword [ebp + 0x10]
mov ecx, edi
mov dword [0x6d1f70], eax
call fcn.0043e750
mov esi, 8
test al, al
je 0x4728cd
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 4
push 0x6d1f70
push 0x6d1f70
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4728c8
cmp dword [ebp - 0x20], 4
mov esi, 0x3a
mov dword [0x6d1f70], 0
jne 0x4728bb
mov eax, dword [ebp + 0x14]
mov ecx, edi
mov dword [0x6d1f74], eax
call fcn.0043e750
mov esi, 8
test al, al
je 0x4728de
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 4
push 0x6d1f74
push 0x6d1f74
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4728d9
cmp dword [ebp - 0x20], 4
mov esi, 0x3a
mov dword [0x6d1f74], 0
jne 0x4728bb
mov esi, dword [ebp + 8]
push 0x1c
call fcn.005d0220
add esp, 4
mov ecx, eax
mov eax, dword [edi + 0x28]
mov edx, dword [edi]
mov edi, dword [edi + 8]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], ecx
push esi
push eax
push edi
push edx
call fcn.00472910
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov esi, dword [edi + 0x24]
mov dword [edi + 0x24], ecx
test esi, esi
je 0x472849
mov ecx, esi
call fcn.0049dab0
push esi
call fcn.005d31ac
add esp, 4
mov ecx, dword [edi + 0x24]
mov dword [ebp - 0x10], 0xffffffff
push 0x20000
push dword [ebp + 0x10]
push dword [ebp - 0x2c]
call fcn.00472a40
mov esi, 4
test al, al
je 0x472635
mov ecx, edi
call fcn.00472ed0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x472635
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov esi, 0x1a
mov dword [ecx], eax
jmp 0x472635
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov esi, 0x1b
mov dword [ecx], eax
jmp 0x472635
mov esi, 1
mov dword [0x6d1f8c], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
jmp 0x472635
mov esi, 1
mov dword [0x6d1f70], 0
jmp 0x4728bb
mov esi, 1
mov dword [0x6d1f74], 0
jmp 0x4728bb