Function at 0x10017650
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 0x1004df30
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 0x100176ec
push 0x10085528
call fcn.10027e3d
add esp, 4
cmp dword [0x10085528], 0xffffffff
jne 0x100176ec
push 0x1004f360
call fcn.1002839b
add esp, 4
push 0x10085528
call fcn.10027dec
add esp, 4
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x100176f6
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1001791c
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 0x1001773e
mov edi, dword [esi]
mov dword [ebp - 0x124], edi
cmp dword [0x10083b38], 0
je 0x1001786e
test eax, eax
je 0x1001786e
push 0x100
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.10029cf0
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 0x100177ae
nop dword [eax + eax]
movzx eax, word [ecx]
cmp ax, word [ebp - 0x128]
jae 0x100177e6
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x118], 1
cmp ecx, edx
jne 0x10017790
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 0x100177d9
cmp byte [ebp + eax - 0x118], 0
jne 0x10017868
cmp ecx, edi
je 0x1001786e
sub ecx, 2
jmp 0x100177c3
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 0x10017858
cmp edx, 1
je 0x1001783a
movzx eax, word [esi + 2]
add esi, 2
dec edx
cmp ax, di
jne 0x10017824
test esi, esi
jne 0x10017858
cmp ecx, dword [ebp - 0x124]
je 0x1001784d
mov eax, dword [ebp - 0x120]
sub ecx, 2
jmp 0x10017810
mov esi, dword [ebp - 0x12c]
or ecx, 0xffffffff
jmp 0x10017871
sub ecx, dword [ebp - 0x124]
mov esi, dword [ebp - 0x12c]
sar ecx, 1
jmp 0x10017871
sub ecx, edi
sar ecx, 1
jmp 0x10017871
or ecx, 0xffffffff
cmp ecx, 0xffffffff
je 0x1001790b
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 0x100178a9
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x148]
call fcn.10013970
mov ecx, dword [ebp - 0x130]
lea eax, [ebp - 0x148]
push eax
mov dword [ebp - 4], 0
call fcn.10017650
mov ecx, dword [ebp - 0x134]
cmp ecx, 7
jbe 0x1001790b
mov edx, dword [ebp - 0x148]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10017901
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001793c
push ecx
push edx
call fcn.10027feb
add esp, 8
cmp dword [esi + 0x14], 7
jbe 0x10017913
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.10027dae
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.100327b5
int3