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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004c5a0
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x10080280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x128], ecx
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10081c2c]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x124], esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10081858]
cmp eax, dword [ecx + 4]
jg 0x10017764
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x10017556
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10017747
cmp dword [0x1008001c], 7
mov eax, 0x10080008
mov edi, esi
mov dword [ebp - 0x11c], esi
cmova eax, dword [0x10080008]
cmp dword [esi + 0x14], 7
mov dword [ebp - 0x118], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x114], eax
jbe 0x1001759e
mov edi, dword [esi]
mov dword [ebp - 0x11c], edi
cmp dword [0x10080018], 0
je 0x100176ce
test eax, eax
je 0x100176ce
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.10028780
mov eax, dword [ebp - 0x118]
add esp, 0xc
mov edx, dword [0x10080018]
mov ecx, eax
mov dword [ebp - 0x120], 0x100
lea edx, [eax + edx*2]
cmp eax, edx
je 0x1001760e
nop dword [eax + eax]
movzx eax, word [ecx]
cmp ax, word [ebp - 0x120]
jae 0x10017646
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x110], 1
cmp ecx, edx
jne 0x100175f0
mov eax, dword [esi + 0x10]
or ecx, 0xffffffff
mov edx, dword [ebp - 0x120]
dec eax
cmp eax, ecx
cmovb ecx, eax
lea ecx, [edi + ecx*2]
movzx eax, word [ecx]
cmp ax, dx
jae 0x10017639
cmp byte [ebp + eax - 0x110], 0
jne 0x100176c8
cmp ecx, edi
je 0x100176ce
sub ecx, 2
jmp 0x10017623
mov eax, dword [ebp - 0x114]
or ecx, 0xffffffff
dec eax
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [ebp - 0x118]
movzx edx, word [eax]
lea ecx, [edi + ecx*2]
mov dword [ebp - 0x114], edx
nop word [eax + eax]
movzx edi, word [ecx]
mov esi, eax
mov edx, dword [0x10080018]
cmp word [ebp - 0x114], di
je 0x100176b8
cmp edx, 1
je 0x1001769a
movzx eax, word [esi + 2]
add esi, 2
dec edx
cmp ax, di
jne 0x10017684
test esi, esi
jne 0x100176b8
cmp ecx, dword [ebp - 0x11c]
je 0x100176ad
mov eax, dword [ebp - 0x118]
sub ecx, 2
jmp 0x10017670
mov esi, dword [ebp - 0x124]
or ecx, 0xffffffff
jmp 0x100176d1
sub ecx, dword [ebp - 0x11c]
mov esi, dword [ebp - 0x124]
sar ecx, 1
jmp 0x100176d1
sub ecx, edi
sar ecx, 1
jmp 0x100176d1
or ecx, 0xffffffff
cmp ecx, 0xffffffff
je 0x10017736
cmp dword [esi + 0x10], ecx
xorps xmm0, xmm0
movups xmmword [ebp - 0x140], xmm0
cmovb ecx, dword [esi + 0x10]
mov eax, esi
cmp dword [esi + 0x14], 7
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
jbe 0x10017705
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x140]
call fcn.10012910
mov ecx, dword [ebp - 0x128]
lea eax, [ebp - 0x140]
push eax
mov dword [ebp - 4], 0
call fcn.100174f0
lea ecx, [ebp - 0x140]
call fcn.100135f0
cmp dword [esi + 0x14], 7
jbe 0x1001773e
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 - 0x10]
xor ecx, ebp
call fcn.100268d0
mov esp, ebp
pop ebp
ret 4
push 0x10081858
call fcn.1002686c
add esp, 4
cmp dword [0x10081858], 0xffffffff
jne 0x1001754c
push 0x1004da00
call fcn.10026cf4
push 0x10081858
call fcn.1002681b
add esp, 8
jmp 0x1001754c