Function at 0x42fbd0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x628c69
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf0], 0
mov dword [ebp - 4], 1
push 0x642488
lea ecx, [ebp - 0xa4]
call fcn.0040e4b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x84]
call fcn.0044d720
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp + 0xc]
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42fe3b
push 0
push 0x80
push 4
push 0
push 1
push connect
lea ecx, [ebp + 0xc]
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0xffffffff
jne 0x42fcc2
push 0x64248c
mov ecx, dword [ebp + 8]
call fcn.0040e4b0
mov eax, dword [ebp - 0xf0]
or eax, 1
mov dword [ebp - 0xf0], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0040e530
mov eax, dword [ebp + 8]
jmp 0x42fe77
push 0
mov ecx, dword [ebp - 0xc4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x88]
add edx, 1
push edx
call fcn.005b2e02
add esp, 4
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x42fd3d
push 0x642490
mov ecx, dword [ebp + 8]
call fcn.0040e4b0
mov ecx, dword [ebp - 0xf0]
or ecx, 1
mov dword [ebp - 0xf0], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0040e530
mov eax, dword [ebp + 8]
jmp 0x42fe77
mov edx, dword [ebp - 0x88]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.005b4de0
add esp, 0xc
push 0
lea ecx, [ebp - 0xc8]
push ecx
mov edx, dword [ebp - 0x88]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0xc4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x84]
call fcn.0044d850
cmp dword [ebp - 0x14], 0
je 0x42fdbe
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xd0], edx
mov eax, dword [ebp - 0xd0]
push eax
call fcn.005b467e
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0xec]
push ecx
lea ecx, [ebp - 0x84]
call fcn.0044ebc0
mov dword [ebp - 0xf4], eax
mov edx, dword [ebp - 0xf4]
mov dword [ebp - 0xf8], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xf8]
push eax
lea ecx, [ebp - 0xc0]
push ecx
call fcn.00439f10
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xec]
call fcn.0040e3e0
lea ecx, [ebp - 0xc0]
call fcn.0040ee50
test eax, eax
jbe 0x42fe2c
lea edx, [ebp - 0xc0]
push edx
lea ecx, [ebp - 0xa4]
call fcn.0040e550
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc0]
call fcn.0040e530
lea eax, [ebp - 0xa4]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e4f0
mov ecx, dword [ebp - 0xf0]
or ecx, 1
mov dword [ebp - 0xf0], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa4]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0040e530
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret