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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004ddb0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x138
mov eax, dword [0x10083080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x130], ecx
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10084cf4]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x12c], esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10085528]
cmp eax, dword [ecx + 4]
jle 0x1001766c
push 0x10085528
call fcn.10027cae
add esp, 4
cmp dword [0x10085528], 0xffffffff
jne 0x1001766c
push 0x1004f1c0
call fcn.1002820c
add esp, 4
push 0x10085528
call fcn.10027c5d
add esp, 4
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x10017676
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1001789c
cmp dword [0x10083b3c], 7
mov eax, 0x10083b28
mov edi, esi
mov dword [ebp - 0x124], esi
cmova eax, dword [0x10083b28]
cmp dword [esi + 0x14], 7
mov dword [ebp - 0x120], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x11c], eax
jbe 0x100176be
mov edi, dword [esi]
mov dword [ebp - 0x124], edi
cmp dword [0x10083b38], 0
je 0x100177ee
test eax, eax
je 0x100177ee
push 0x100
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.10029b60
mov eax, dword [ebp - 0x120]
add esp, 0xc
mov edx, dword [0x10083b38]
mov ecx, eax
mov dword [ebp - 0x128], 0x100
lea edx, [eax + edx*2]
cmp eax, edx
je 0x1001772e
nop dword [eax + eax]
movzx eax, word [ecx]
cmp ax, word [ebp - 0x128]
jae 0x10017766
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x118], 1
cmp ecx, edx
jne 0x10017710
mov eax, dword [esi + 0x10]
or ecx, 0xffffffff
mov edx, dword [ebp - 0x128]
dec eax
cmp eax, ecx
cmovb ecx, eax
lea ecx, [edi + ecx*2]
movzx eax, word [ecx]
cmp ax, dx
jae 0x10017759
cmp byte [ebp + eax - 0x118], 0
jne 0x100177e8
cmp ecx, edi
je 0x100177ee
sub ecx, 2
jmp 0x10017743
mov eax, dword [ebp - 0x11c]
or ecx, 0xffffffff
dec eax
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [ebp - 0x120]
movzx edx, word [eax]
lea ecx, [edi + ecx*2]
mov dword [ebp - 0x11c], edx
nop word [eax + eax]
movzx edi, word [ecx]
mov esi, eax
mov edx, dword [0x10083b38]
cmp word [ebp - 0x11c], di
je 0x100177d8
cmp edx, 1
je 0x100177ba
movzx eax, word [esi + 2]
add esi, 2
dec edx
cmp ax, di
jne 0x100177a4
test esi, esi
jne 0x100177d8
cmp ecx, dword [ebp - 0x124]
je 0x100177cd
mov eax, dword [ebp - 0x120]
sub ecx, 2
jmp 0x10017790
mov esi, dword [ebp - 0x12c]
or ecx, 0xffffffff
jmp 0x100177f1
sub ecx, dword [ebp - 0x124]
mov esi, dword [ebp - 0x12c]
sar ecx, 1
jmp 0x100177f1
sub ecx, edi
sar ecx, 1
jmp 0x100177f1
or ecx, 0xffffffff
cmp ecx, 0xffffffff
je 0x1001788b
cmp dword [esi + 0x10], ecx
xorps xmm0, xmm0
movups xmmword [ebp - 0x148], xmm0
cmovb ecx, dword [esi + 0x10]
mov eax, esi
cmp dword [esi + 0x14], 7
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
jbe 0x10017829
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x148]
call fcn.10013900
mov ecx, dword [ebp - 0x130]
lea eax, [ebp - 0x148]
push eax
mov dword [ebp - 4], 0
call fcn.100175d0
mov ecx, dword [ebp - 0x134]
cmp ecx, 7
jbe 0x1001788b
mov edx, dword [ebp - 0x148]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10017881
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100178bc
push ecx
push edx
call fcn.10027e5c
add esp, 8
cmp dword [esi + 0x14], 7
jbe 0x10017893
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10027c1f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.10032625
int3