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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004d0fc
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x10085054]
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 [0x10086d18]
mov ebx, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10087548]
cmp eax, dword [ecx + 4]
jle 0x100175f4
push 0x10087548
call fcn.10026edf
add esp, 4
cmp dword [0x10087548], 0xffffffff
jne 0x100175f4
mov dword [ebp - 4], 0
mov dword [0x10087550], 0
push 2
push 0x1007d2b8
mov ecx, 0x10087550
mov dword [0x10087560], 0
mov dword [0x10087564], 7
mov byte [ebp - 4], 0
call fcn.10012970
push 0x1004e470
call fcn.100274af
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x10087548
call fcn.10026e95
add esp, 4
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x100175fe
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10017812
cmp dword [0x10087564], 8
mov edi, 0x10087550
mov eax, dword [ebx + 0x10]
mov esi, ebx
cmovae edi, dword [0x10087550]
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x118], ebx
jb 0x10017640
mov esi, dword [ebx]
mov dword [ebp - 0x118], esi
cmp dword [0x10087560], 0
je 0x10017801
test eax, eax
je 0x10017801
push 0x100
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.10028e70
mov eax, dword [0x10087560]
add esp, 0xc
mov ecx, edi
mov dword [ebp - 0x11c], 0x100
lea edx, [edi + eax*2]
cmp edi, edx
je 0x100176a1
movzx eax, word [ecx]
cmp ax, word [ebp - 0x11c]
jae 0x100176da
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x114], 1
cmp ecx, edx
jne 0x10017683
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 0x100176cd
cmp byte [ebp + eax - 0x114], 0
jne 0x10017755
cmp ecx, esi
je 0x10017801
sub ecx, 2
jmp 0x100176b7
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 [0x10087560]
mov esi, dword [ebp - 0x120]
movzx eax, ax
cmp ax, di
je 0x10017748
cmp edx, 1
je 0x1001772d
movzx eax, word [esi + 2]
add esi, 2
dec edx
cmp ax, di
jne 0x10017717
test esi, esi
jne 0x10017748
cmp ecx, dword [ebp - 0x118]
je 0x10017740
mov eax, dword [ebp - 0x11c]
sub ecx, 2
jmp 0x10017700
mov edx, dword [ebx + 0x10]
or ecx, 0xffffffff
jmp 0x10017759
sub ecx, dword [ebp - 0x118]
mov edx, dword [ebx + 0x10]
sar ecx, 1
jmp 0x10017759
sub ecx, esi
sar ecx, 1
cmp ecx, 0xffffffff
je 0x10017801
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 0x1001779f
mov eax, dword [ebx]
push ecx
push eax
lea ecx, [ebp - 0x13c]
call fcn.10012970
mov ecx, dword [ebp - 0x124]
lea eax, [ebp - 0x13c]
push eax
mov dword [ebp - 4], 3
call fcn.10017530
mov edx, dword [ebp - 0x128]
cmp edx, 8
jb 0x10017801
mov ecx, dword [ebp - 0x13c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100177f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017830
push edx
push ecx
call fcn.100270ff
add esp, 8
cmp dword [ebx + 0x14], 8
jb 0x10017809
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.10026d99
mov esp, ebp
pop ebp
ret 4
call fcn.100305b8
int3