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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
xor eax, eax
mov byte [ebp - 1], al
lea ecx, [ebp - 0x64]
push ecx
call fcn.0040ad50
add esp, 4
mov ecx, eax
call fcn.00408bc0
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 1]
call fcn.00425c50
push eax
lea ecx, [ebp - 0x12c]
call fcn.00412e90
mov ecx, eax
call fcn.004138e0
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
call eax
lea ecx, [ebp - 0x12c]
call fcn.0040a1b0
lea ecx, [ebp - 0x38]
call fcn.00408870
lea ecx, [ebp - 0x64]
call fcn.0040aef0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00408b60
movzx ecx, al
test ecx, ecx
jne 0x426510
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00408bc0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x426586
xor edx, edx
mov byte [ebp - 2], dl
lea eax, [ebp - 0x6c]
push eax
call fcn.0040ad50
add esp, 4
mov ecx, eax
call fcn.00408bc0
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 8]
add ecx, 0x1c
push ecx
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 2]
call fcn.00425a90
push eax
lea ecx, [ebp - 0x1c4]
call fcn.00412e90
mov ecx, eax
call fcn.004138e0
mov ecx, eax
call fcn.004138e0
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
call eax
lea ecx, [ebp - 0x1c4]
call fcn.0040a1b0
lea ecx, [ebp - 0x3c]
call fcn.00408870
lea ecx, [ebp - 0x6c]
call fcn.0040aef0
jmp 0x426838
push 0
push 1
push 3
push 0
push 7
push SysReAllocString
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00408bc0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x20], 0
je 0x4265bf
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0xffffffff
jne 0x42663b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
xor ecx, ecx
mov byte [ebp - 3], cl
lea edx, [ebp - 0x74]
push edx
call fcn.0040ad50
add esp, 4
mov ecx, eax
call fcn.00408bc0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 3]
call fcn.00425620
push eax
lea ecx, [ebp - 0x25c]
call fcn.00412e90
mov ecx, eax
call fcn.004138e0
mov ecx, eax
call fcn.00416a50
push eax
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax + 0xc]
call edx
lea ecx, [ebp - 0x25c]
call fcn.0040a1b0
lea ecx, [ebp - 0x44]
call fcn.00408870
lea ecx, [ebp - 0x74]
call fcn.0040aef0
jmp 0x426838
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edx, dword [ebp + 8]
mov dword [edx + 0x24], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 0
jne 0x4266dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
xor ecx, ecx
mov byte [ebp - 4], cl
lea edx, [ebp - 0x7c]
push edx
call fcn.0040ad50
add esp, 4
mov ecx, eax
call fcn.00408bc0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 4]
call fcn.00425ec0
push eax
lea ecx, [ebp - 0x2f4]
call fcn.00412e90
mov ecx, eax
call fcn.004138e0
mov ecx, eax
call fcn.00416a50
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x24]
mov edx, dword [eax + 0xc]
call edx
lea ecx, [ebp - 0x2f4]
call fcn.0040a1b0
lea ecx, [ebp - 0x4c]
call fcn.00408870
lea ecx, [ebp - 0x7c]
call fcn.0040aef0
jmp 0x426838
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004262f0
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0
push 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x28], 0
jne 0x4267a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
xor eax, eax
mov byte [ebp - 5], al
lea ecx, [ebp - 0x84]
push ecx
call fcn.0040ad50
add esp, 4
mov ecx, eax
call fcn.00408bc0
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 5]
call fcn.004258d0
push eax
lea ecx, [ebp - 0x38c]
call fcn.00412e90
mov ecx, eax
call fcn.004138e0
mov ecx, eax
call fcn.00416a50
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x28]
mov eax, dword [edx + 0xc]
call eax
lea ecx, [ebp - 0x38c]
call fcn.0040a1b0
lea ecx, [ebp - 0x54]
call fcn.00408870
lea ecx, [ebp - 0x84]
call fcn.0040aef0
jmp 0x426838
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x28]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], edx
jne 0x426820
xor eax, eax
mov byte [ebp - 6], al
lea ecx, [ebp - 0x8c]
push ecx
call fcn.0040ad50
add esp, 4
mov ecx, eax
call fcn.00408bc0
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 6]
call fcn.00426060
push eax
lea ecx, [ebp - 0x424]
call fcn.00412e90
mov ecx, eax
call fcn.004138e0
push eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 0xc]
call eax
lea ecx, [ebp - 0x424]
call fcn.0040a1b0
lea ecx, [ebp - 0x58]
call fcn.00408870
lea ecx, [ebp - 0x8c]
call fcn.0040aef0
jmp 0x426838
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x2c], edx
mov dword [ebp - 0x14], 1
xor eax, eax
jne 0x4264e8
xor ecx, ecx
mov byte [ebp - 7], cl
lea edx, [ebp - 0x94]
push edx
call fcn.0040ad50
add esp, 4
mov ecx, eax
call fcn.00408bc0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 7]
call fcn.00425d50
push eax
lea ecx, [ebp - 0x4bc]
call fcn.00412e90
mov ecx, eax
call fcn.004138e0
mov ecx, eax
call fcn.00419450
push eax
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x34]
mov edx, dword [eax + 0xc]
call edx
lea ecx, [ebp - 0x4bc]
call fcn.0040a1b0
lea ecx, [ebp - 0x5c]
call fcn.00408870
lea ecx, [ebp - 0x94]
call fcn.0040aef0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 4