Function at 0x10017b80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004e80c
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x10088054]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x124], ecx
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10089d38]
mov ebx, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1008a568]
cmp eax, dword [ecx + 4]
jle 0x10017c44
push 0x1008a568
call fcn.10028355
add esp, 4
cmp dword [0x1008a568], 0xffffffff
jne 0x10017c44
mov dword [ebp - 4], 0
mov dword [0x1008a570], 0
push 2
push 0x1007f2d0
mov ecx, 0x1008a570
mov dword [0x1008a580], 0
mov dword [0x1008a584], 7
mov byte [ebp - 4], 0
call fcn.10012d20
push 0x1004fe60
call fcn.10028925
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x1008a568
call fcn.1002830b
add esp, 4
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x10017c4e
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10017e34
cmp dword [0x1008a584], 8
mov edi, 0x1008a570
mov eax, dword [ebx + 0x10]
mov esi, ebx
cmovae edi, dword [0x1008a570]
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x118], ebx
jb 0x10017c90
mov esi, dword [ebx]
mov dword [ebp - 0x118], esi
cmp dword [0x1008a580], 0
je 0x10017e23
test eax, eax
je 0x10017e23
push 0x100
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.1002a2e0
mov eax, dword [0x1008a580]
add esp, 0xc
mov ecx, edi
mov dword [ebp - 0x11c], 0x100
lea edx, [edi + eax*2]
cmp edi, edx
je 0x10017cf1
movzx eax, word [ecx]
cmp ax, word [ebp - 0x11c]
jae 0x10017d2a
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x114], 1
cmp ecx, edx
jne 0x10017cd3
mov edx, dword [ebx + 0x10]
or ecx, 0xffffffff
mov edi, 0x100
lea eax, [edx - 1]
cmp eax, ecx
cmovb ecx, eax
lea ecx, [esi + ecx*2]
movzx eax, word [ecx]
cmp ax, di
jae 0x10017d1d
cmp byte [ebp + eax - 0x114], 0
jne 0x10017da5
cmp ecx, esi
je 0x10017e23
sub ecx, 2
jmp 0x10017d07
mov eax, dword [ebx + 0x10]
or ecx, 0xffffffff
dec eax
cmp eax, ecx
cmovb ecx, eax
movzx eax, word [edi]
mov dword [ebp - 0x11c], eax
lea ecx, [esi + ecx*2]
nop dword [eax]
nop word [eax + eax]
movzx edi, word [ecx]
mov edx, dword [0x1008a580]
mov esi, dword [ebp - 0x120]
movzx eax, ax
cmp ax, di
je 0x10017d98
cmp edx, 1
je 0x10017d7d
movzx eax, word [esi + 2]
add esi, 2
dec edx
cmp ax, di
jne 0x10017d67
test esi, esi
jne 0x10017d98
cmp ecx, dword [ebp - 0x118]
je 0x10017d90
mov eax, dword [ebp - 0x11c]
sub ecx, 2
jmp 0x10017d50
mov edx, dword [ebx + 0x10]
or ecx, 0xffffffff
jmp 0x10017da9
sub ecx, dword [ebp - 0x118]
mov edx, dword [ebx + 0x10]
sar ecx, 1
jmp 0x10017da9
sub ecx, esi
sar ecx, 1
cmp ecx, 0xffffffff
je 0x10017e23
mov dword [ebp - 0x13c], 0
xor eax, eax
mov dword [ebp - 4], 0xffffffff
cmp edx, ecx
mov word [ebp - 0x13c], ax
mov dword [ebp - 0x12c], 0
mov eax, ebx
cmovb ecx, edx
mov dword [ebp - 0x128], 7
cmp dword [ebx + 0x14], 8
jb 0x10017deb
mov eax, dword [ebx]
push ecx
push eax
lea ecx, [ebp - 0x13c]
call fcn.10012d20
mov ecx, dword [ebp - 0x124]
lea eax, [ebp - 0x13c]
push eax
mov dword [ebp - 4], 3
call fcn.10017b80
lea ecx, [ebp - 0x13c]
mov dword [ebp - 4], 0xffffffff
call fcn.10012c90
cmp dword [ebx + 0x14], 8
jb 0x10017e2b
mov ebx, dword [ebx]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1002820f
mov esp, ebp
pop ebp
ret 4