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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100aa12b
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x100dc008]
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 esi, ecx
mov eax, dword [ebp + 8]
mov ebx, 1
mov dword [ebp - 0x240], eax
push 0x208
lea eax, [ebp - 0x224]
push 0
push eax
lea edi, [esi + 0x78]
call fcn.1008b230
add esp, 0xc
lea eax, [ebp - 0x224]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
xorps xmm0, xmm0
push ebx
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x1c]
push str..v_02d
push eax
movq qword [ebp - 0x1a], xmm0
call fcn.100628f0
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp dword [esi + 0x14], 0
mov ecx, connect
push 0
push 0x20000000
push 3
push 0
mov eax, 0xc0000000
cmovne eax, ecx
push 1
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1006179f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10061884
cmp dword [esi + 0x14], 0
jne 0x100619dc
cmp eax, 5
je 0x10061771
cmp eax, 0x20
je 0x10061771
cmp eax, 0xa7
je 0x10061771
cmp eax, 0x21
je 0x10061771
cmp eax, 0x13
jne 0x100619dc
push 0
push 0
push 3
push 0
push 1
push connect
lea eax, [ebp - 0x224]
mov dword [esi + 0x14], 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100619d5
lea eax, [ebp - 0x248]
mov dword [ebp - 0x25c], edi
push eax
xorps xmm0, xmm0
push edi
movlpd qword [ebp - 0x248], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x100619f8
push 0
push 0x200
push dword [ebp - 0x244]
push dword [ebp - 0x248]
call fcn.100a8300
or eax, edx
jne 0x100619ea
mov eax, dword [ebp - 0x248]
lea ecx, [esi + 0x6c]
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x25c]
push eax
call fcn.10062820
cmp dword [esi + 0x14], 0
jne 0x1006187a
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x23c]
call fcn.100210f0
lea eax, [ebp - 0x23c]
mov dword [ebp - 4], 0
push eax
lea ecx, [esi + 0x280]
call fcn.10054150
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x228]
cmp eax, 8
jb 0x1006185d
inc eax
push eax
push dword [ebp - 0x23c]
call fcn.10017a90
xor eax, eax
mov dword [ebp - 0x228], 7
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], ax
inc ebx
cmp ebx, 0x40
jle 0x100616ae
mov ebx, dword [esi + 0x70]
push 0x200
push 0
push dword [ebp - 0x240]
mov ecx, dword [ebx - 8]
mov eax, dword [ebx - 4]
sub ecx, 0x200
mov dword [ebp - 0x248], ecx
sbb eax, 0
mov dword [ebp - 0x244], eax
call fcn.1008b230
add esp, 0xc
lea eax, [ebp - 0x248]
lea edi, [esi + 8]
mov ecx, edi
mov dword [ebp - 0x24c], edi
push 0
push dword [ebp - 0x240]
push 0x200
push eax
push 1
push dword [ebx - 0x10]
call fcn.10014e30
test eax, eax
js 0x10061a08
cmp eax, 1
je 0x10061a08
push dword [ebp - 0x240]
call fcn.10061250
test eax, eax
jne 0x100619d1
push 0x200
push eax
push dword [ebp - 0x240]
call fcn.1008b230
mov eax, dword [esi + 0x6c]
lea ecx, [ebp - 0x248]
add esp, 0xc
xorps xmm0, xmm0
movlpd qword [ebp - 0x248], xmm0
push 0
push dword [ebp - 0x240]
push 0x200
push ecx
push 1
push dword [eax]
mov ecx, edi
call fcn.10014e30
test eax, eax
js 0x10061a08
cmp eax, 1
je 0x10061a08
push dword [ebp - 0x240]
call fcn.10061250
test eax, eax
je 0x100619f1
cmp dword [esi + 0x14], 0
jne 0x100619d1
mov esi, dword [ebx - 8]
lea eax, [ebp - 0x248]
mov edi, dword [ebx - 4]
add esi, 0xffffffff
mov ecx, dword [ebp - 0x24c]
push 0
push dword [ebp - 0x240]
adc edi, 0xffffffff
shrd esi, edi, 9
push 0x200
push eax
shr edi, 9
shld edi, esi, 9
push 1
push dword [ebx - 0x10]
shl esi, 9
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], edi
call fcn.10014f90
test eax, eax
js 0x10061a08
cmp eax, 1
je 0x10061a08
add esi, 0x200
mov dword [ebx - 8], esi
adc edi, 0
mov dword [ebx - 4], edi
xor eax, eax
jmp 0x10061a08
call fcn.10015440
jmp 0x10061a08
test eax, eax
jle 0x10061a08
movzx eax, ax
or eax, 0x80070000
jmp 0x10061a08
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xe0035003
jmp 0x10061a08
call fcn.10015440
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
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.1007bfb0
mov esp, ebp
pop ebp
ret 4