Function at 0x1000bb50
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
sub esp, 0x218
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x214], eax
push 0x103
lea eax, [esp + 0x11]
push 0
push eax
mov dword [esp + 0xc], 0
mov byte [esp + 0x18], 0
call fcn.10116880
lea ecx, [esp + 0x11c]
push 0x104
push ecx
call fcn.10042f40
add esp, 0x14
cmp byte [esp + 0x110], 0
je 0x1000bbd1
lea eax, [esp + 0x110]
inc eax
cmp byte [eax], 0
jne 0x1000bba8
lea edx, [esp + 0x110]
sub eax, edx
je 0x1000bbd1
cmp byte [esp + eax + 0x10f], 0x5c
je 0x1000bbd1
push 0x10149ea8
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor eax, eax
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0xc], cl
inc eax
test cl, cl
jne 0x1000bbd3
push esi
push edi
call fcn.1000b8b0
mov edi, eax
lea eax, [esp + 0x14]
mov dword [esp + 0xc], edi
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1000bbf5
mov ecx, dword [str.WSSPORD.DAT]
mov edx, dword [0x10148b54]
mov dword [eax], ecx
mov ecx, dword [0x10148b58]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
push 1
push 0
xor edx, edx
lea ecx, [esp + 0x1c]
call fcn.10044660
add esp, 8
test eax, eax
jne 0x1000bc4f
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000bc4f
test al, 7
je 0x1000bc4f
mov eax, 2
lea ecx, [esp + 0x14]
call fcn.1004b850
lea eax, [esp + 0x14]
push 0x10148b5c
push eax
call fcn.1010ebfe
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000bc81
pop edi
lea eax, [esi + 1]
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1010d699
add esp, 0x218
ret
push ebx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0
call sub.WS2_32.dll_WSCEnumProtocols
mov eax, dword [esp + 0xc]
push eax
call fcn.1004e860
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1000bccc
push esi
call fcn.1010f263
add esp, 4
lea eax, [ebx + 1]
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1010d699
add esp, 0x218
ret
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push ebx
push 0
call sub.WS2_32.dll_WSCEnumProtocols
cmp eax, 0xffffffff
jne 0x1000bd0f
push ebx
call fcn.1010dc10
push esi
call fcn.1010f263
add esp, 8
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1010d699
add esp, 0x218
ret
push 2
push 0
push esi
call fcn.1010f167
push esi
call fcn.1010f06f
mov ecx, dword [esp + 0x1c]
add esp, 0x10
cmp eax, ecx
je 0x1000bd58
push esi
call fcn.1010f263
push ebx
call fcn.1010dc10
add esp, 8
xor eax, eax
pop ebx
test edi, edi
pop edi
setne al
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1010d699
add esp, 0x218
ret
push ecx
call fcn.1004e860
mov edi, eax
add esp, 4
test edi, edi
jne 0x1000bd91
push esi
call fcn.1010f263
push ebx
call fcn.1010dc10
add esp, 8
pop ebx
lea eax, [edi + 1]
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.1010d699
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
push ebp
push eax
push 0
push edi
call fcn.10116880
push 0
push 0
push esi
call fcn.1010f167
mov ecx, dword [esp + 0x28]
push esi
push 1
push ecx
push edi
call fcn.1010eeb5
mov eax, dword [esp + 0x38]
add esp, 0x28
mov ecx, ebx
mov ebp, edi
cmp eax, 4
jb 0x1000bddc
mov edx, dword [ebp]
cmp edx, dword [ecx]
jne 0x1000be01
sub eax, 4
add ecx, 4
add ebp, 4
cmp eax, 4
jae 0x1000bdc7
test eax, eax
je 0x1000be21
mov dl, byte [ecx]
cmp dl, byte [ebp]
jne 0x1000be01
cmp eax, 1
jbe 0x1000be21
mov dl, byte [ecx + 1]
cmp dl, byte [ebp + 1]
jne 0x1000be01
cmp eax, 2
jbe 0x1000be21
mov al, byte [ecx + 2]
cmp al, byte [ebp + 2]
je 0x1000be21
push esi
call fcn.1010f263
push ebx
call fcn.1010dc10
push edi
call fcn.1010dc10
xor eax, eax
add esp, 0xc
cmp dword [esp + 0x14], eax
setne al
jmp 0x1000be38
push esi
call fcn.1010f263
push ebx
call fcn.1010dc10
push edi
call fcn.1010dc10
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x224]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.1010d699
add esp, 0x218
ret