Function at 0x1005f0e0
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100aa07b
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x100dc008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x424], ecx
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x434], eax
test edi, edi
je 0x1005f4b4
cmp word [edi], 0
je 0x1005f4b4
cmp dword [ecx + 0x14], 0
mov edx, connect
push 0
push 0x20000000
push 3
push 0
mov eax, 0xc0000000
push 1
cmovne eax, edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x1005f1e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 5
je 0x1005f1ab
cmp edi, 0x20
je 0x1005f1ab
cmp edi, 0xa7
je 0x1005f1ab
cmp edi, 0x21
je 0x1005f1ab
cmp edi, 0x13
je 0x1005f1ab
test edi, edi
jle 0x1005f493
movzx edi, di
or edi, 0x80070000
jmp 0x1005f493
mov edi, dword [ebp - 0x42c]
push 0
push 0
push 3
push 0
push 1
push connect
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x428], esi
cmp esi, 0xffffffff
je 0x1005f48c
mov eax, dword [ebp - 0x424]
mov dword [eax + 0x14], 1
jmp 0x1005f1fc
mov eax, dword [ebp - 0x424]
cmp dword [eax + 0x14], 0
jne 0x1005f1fc
push edi
lea ecx, [eax + 0x4c]
call fcn.100168d0
push 0x5c
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x1005f21b
mov edi, 0x80004005
jmp 0x1005f493
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1008b230
mov eax, dword [ebp - 0x42c]
add esp, 0xc
sub eax, edi
sar eax, 1
add eax, 2
push eax
push edi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
push 0x208
xorps xmm0, xmm0
lea eax, [ebp - 0x218]
push 0
push eax
movups xmmword [ebp - 0x454], xmm0
movups xmmword [ebp - 0x444], xmm0
call fcn.1008b230
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x454]
add esp, 0xc
xorps xmm0, xmm0
movups xmmword [ebp - 0x47c], xmm0
movups xmmword [ebp - 0x46c], xmm0
push eax
lea eax, [ebp - 0x47c]
movq qword [ebp - 0x45c], xmm0
push eax
push esi
call fcn.1005f4e0
mov edi, eax
test edi, edi
js 0x1005f493
cmp edi, 1
je 0x1005f493
lea eax, [ebp - 0x430]
xorps xmm0, xmm0
push eax
push esi
movlpd qword [ebp - 0x430], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1005f48c
push 0
push 0x200
push dword [ebp - 0x42c]
push dword [ebp - 0x430]
call fcn.100a8300
or eax, edx
jne 0x1005f485
mov ecx, dword [ebp - 0x424]
mov eax, esi
or esi, 0xffffffff
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x47c], eax
lea eax, [ebp - 0x47c]
push eax
lea ecx, [ecx + 0x6c]
call fcn.10060690
mov edi, dword [ebp - 0x454]
mov eax, edi
or eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x448]
mov edx, dword [ebp - 0x44c]
jne 0x1005f347
mov eax, edx
or eax, ecx
je 0x1005f481
movzx eax, byte [ebp - 0x445]
push eax
movzx eax, byte [ebp - 0x446]
push eax
movzx eax, ch
push eax
movzx eax, cl
push eax
movzx eax, byte [ebp - 0x449]
push eax
movzx eax, byte [ebp - 0x44a]
push eax
movzx eax, dh
push eax
movzx eax, dl
push eax
movzx eax, word [ebp - 0x44e]
push eax
mov eax, dword [ebp - 0x450]
movzx eax, ax
push eax
push edi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push str._s_08x__04x__04x__02x_02x__02x_02x_02x_02x_02x_02x.vdi
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x38
lea eax, [ebp - 0x218]
push 0
push 0
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x428], esi
cmp esi, 0xffffffff
jne 0x1005f442
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
jne 0x1005f195
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1008b230
mov ecx, dword [ebp - 0x434]
lea edx, [ebp - 0x218]
add esp, 0xc
mov eax, dword [ecx]
push 0x104
push edx
push ecx
call dword [eax + 0x18]
mov edi, eax
test edi, edi
js 0x1005f493
cmp edi, 1
je 0x1005f493
push 0
push 0
push 3
push 0
push 1
push connect
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x428], esi
cmp esi, 0xffffffff
je 0x1005f48c
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x47c]
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x47c], xmm0
movups xmmword [ebp - 0x46c], xmm0
movq qword [ebp - 0x45c], xmm0
call fcn.1005f4e0
mov edi, eax
test edi, edi
jns 0x1005f2b1
jmp 0x1005f493
xor edi, edi
jmp 0x1005f493
mov edi, 0xe0034004
jmp 0x1005f493
call fcn.10015440
mov edi, eax
mov dword [ebp - 4], 0xffffffff
cmp esi, 0xffffffff
je 0x1005f4a6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x428], 0xffffffff
mov eax, edi
jmp 0x1005f4b9
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007bfb0
mov esp, ebp
pop ebp
ret 8