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

Disassembly:
push 0xffffffffffffffff
push 0x100ad4ab
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x100de040]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100de040]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov eax, dword [esp + 0x284]
mov ebx, dword [esp + 0x280]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 1
push 0x206
xor ebp, ebp
lea edx, [esp + 0x6a]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x70], cx
call fcn.10064e10
add esp, 0xc
lea eax, [ebx + 0x84]
push eax
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [esp + 0x24]
push edx
xor eax, eax
xor ecx, ecx
push str..v_02d
lea edx, [esp + 0x60]
mov word [esp + 0x60], cx
mov dword [esp + 0x62], eax
mov dword [esp + 0x66], eax
call fcn.100602c0
add esp, 8
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebx + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebp
push 0x20000000
neg eax
push 3
sbb eax, eax
push ebp
and eax, 0xc0000000
push 1
add eax, 0xc0000000
push eax
lea edx, [esp + 0x7c]
push edx
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x1005ea97
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1005eb86
cmp dword [ebx + 0x14], ebp
jne 0x1005ed1d
cmp eax, 5
je 0x1005ea72
cmp eax, 0x20
je 0x1005ea72
cmp eax, 0xa7
je 0x1005ea72
cmp eax, 0x21
je 0x1005ea72
cmp eax, 0x13
jne 0x1005ed1d
push ebp
push ebp
push 3
push ebp
push 1
push connect
lea eax, [esp + 0x7c]
push eax
mov dword [ebx + 0x14], 1
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x1005ed16
lea ecx, [esp + 0x14]
push ecx
push esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1005ed2d
mov edi, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
push 0x200
push edi
push ebp
call fcn.100ab490
or eax, edx
jne 0x1005ed3f
lea edx, [esp + 0x44]
mov dword [esp + 0x50], edi
push edx
lea edi, [ebx + 0x6c]
mov dword [esp + 0x50], ebp
call fcn.1005fe10
xor edi, edi
cmp dword [ebx + 0x14], edi
jne 0x1005eb72
xor eax, eax
mov word [esp + 0x2c], ax
mov ebp, 7
lea eax, [esp + 0x64]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1005eb10
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x68]
push ecx
lea esi, [esp + 0x30]
call fcn.10002530
mov edx, esi
push edx
lea eax, [ebx + 0x28c]
push eax
mov dword [esp + 0x280], edi
call fcn.100192f0
mov dword [esp + 0x278], 0xffffffff
cmp dword [esp + 0x40], 8
jb 0x1005eb63
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.1006243d
add esp, 4
xor edx, edx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], dx
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 0x40
mov dword [esp + 0x24], eax
jle 0x1005e9a5
xor ebp, ebp
lea edi, [ebx + 0x6c]
mov eax, edi
call fcn.1005fda0
mov edx, dword [esp + 0x20]
mov esi, eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub eax, 0x200
push 0x200
sbb ecx, ebp
push ebp
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call fcn.10064e10
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi]
add esp, 0xc
push 0
push ecx
lea edx, [esp + 0x1c]
push edx
push 1
push eax
lea ebp, [ebx + 8]
push ebp
mov eax, 0x200
call fcn.10003760
test eax, eax
jl 0x1005ecec
cmp eax, 1
je 0x1005ecec
mov edx, dword [esp + 0x20]
call fcn.1005e3c0
test eax, eax
jne 0x1005ecea
push 0x200
push eax
mov eax, dword [esp + 0x28]
push eax
call fcn.10064e10
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0xc]
add esp, 0xc
mov dword [esp + 0x24], eax
cmp eax, dword [edi + 0x10]
jbe 0x1005ec29
call fcn.10062881
mov edi, dword [edi]
test edi, edi
jne 0x1005ed4d
call fcn.10062881
mov ecx, dword [esp + 0x24]
cmp ecx, dword [edi + 0x10]
jb 0x1005ec46
call fcn.10062881
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
push 0
push edi
lea ecx, [esp + 0x1c]
push ecx
push 1
push eax
push ebp
mov eax, 0x200
call fcn.10003760
test eax, eax
jl 0x1005ecec
cmp eax, 1
je 0x1005ecec
mov edx, edi
call fcn.1005e3c0
test eax, eax
je 0x1005ed46
cmp dword [ebx + 0x14], 0
jne 0x1005ecea
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
add edx, 0xffffffff
adc eax, 0xffffffff
shrd edx, eax, 9
push 0
push 0x200
shr eax, 9
push eax
push edx
call fcn.10070c30
mov ecx, dword [esp + 0x20]
push 0
push ecx
mov edi, edx
lea edx, [esp + 0x1c]
mov ebx, eax
mov eax, dword [esi]
push edx
push 1
push eax
mov eax, 0x200
mov ecx, ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edi
call fcn.100038a0
test eax, eax
jl 0x1005ecec
cmp eax, 1
je 0x1005ecec
add ebx, 0x200
adc edi, 0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edi
xor eax, eax
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.10062448
add esp, 0x268
ret 8
call fcn.10002d30
jmp 0x1005ecec
cmp eax, ebp
jle 0x1005ecec
and eax, 0xffff
or eax, 0x80070000
jmp 0x1005ecec
call fcn.10002d30
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x1005ecec
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xe0035003
jmp 0x1005ecec
mov edi, dword [edi]
jmp 0x1005ec38