Function at 0x10016e60
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100856a9
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x100ad708]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x64], edi
mov eax, esi
mov dword [ebp - 0x84], esi
cmp dword [esi + 0x14], 8
jb 0x10016ea5
mov eax, dword [esi]
push 1
push 0x1008d954
push 0
push dword [esi + 0x10]
push eax
call fcn.10015760
add esp, 0x14
mov dword [ebp - 0x48], edi
cmp eax, 0xffffffff
mov dword [ebp - 0x44], 7
mov ecx, 0x1008d954
mov edx, 0x1008ccb4
cmovne edx, ecx
xor eax, eax
mov ecx, edx
mov word [ebp - 0x58], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x60], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016ee2
sub ecx, dword [ebp - 0x60]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.100042a0
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10005d30
mov byte [ebp - 4], 2
mov byte [ebp - 0x59], 1
nop dword [eax]
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
push dword [ebp - 0x48]
mov eax, dword [ebp - 0x58]
cmovae ecx, eax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x28]
push ecx
push 0
push dword [ebp - 0x18]
cmovae eax, esi
push eax
call fcn.10015760
mov edx, eax
add esp, 0x14
mov dword [ebp - 0x80], edx
cmp edx, 0xffffffff
je 0x100172c4
xor eax, eax
mov ecx, edx
cmp dword [ebp - 0x30], eax
jne 0x1001701e
cmp dword [ebp - 0x18], edx
mov dword [ebp - 0xa4], eax
cmovb ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 8
mov word [ebp - 0xb4], ax
lea eax, [ebp - 0x28]
push ecx
cmovae eax, esi
mov dword [ebp - 0xa0], 7
push eax
lea ecx, [ebp - 0xb4]
call fcn.100042a0
or edi, 8
mov edx, dword [ebp - 0x2c]
or edi, 1
mov byte [ebp - 4], 3
mov dword [ebp - 0x60], edi
cmp edx, 8
jb 0x10016ff3
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10016fe9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100173ee
push edx
push ecx
call fcn.1002eba8
add esp, 8
movups xmm0, xmmword [ebp - 0xb4]
xor eax, eax
mov esi, 7
mov word [ebp - 0xb4], ax
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [ebp - 0xa4]
movq qword [ebp - 0x30], xmm0
jmp 0x100170d9
cmp dword [ebp - 0x18], edx
mov word [ebp - 0x9c], ax
lea eax, [ebp - 0x28]
cmovb ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, esi
mov dword [ebp - 0x8c], 0
push eax
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x88], 7
call fcn.100042a0
or edi, 0x10
mov esi, edi
push dword [ebp - 0x48]
or edi, 2
mov dword [ebp - 4], 4
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x64], edi
cmovae eax, dword [ebp - 0x58]
push eax
push 0
call fcn.1000fe60
xor ecx, ecx
movups xmm1, xmmword [eax]
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movups xmmword [ebp - 0x7c], xmm1
mov word [eax], cx
movq qword [ebp - 0x6c], xmm0
push dword [ebp - 0x6c]
or esi, 0x26
movd eax, xmm1
cmp dword [ebp - 0x68], 8
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 5
cmovae ecx, eax
mov dword [ebp - 0x60], esi
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x64], esi
call fcn.1000f400
mov esi, dword [ebp - 0xa0]
mov eax, dword [ebp - 0x60]
mov dword [ebp - 4], 4
test al, 4
je 0x1001712a
mov edx, dword [ebp - 0x68]
and eax, 0xfffffffb
mov dword [ebp - 0x60], eax
cmp edx, 8
jb 0x1001712a
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001711d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100173ee
push edx
push ecx
call fcn.1002eba8
mov eax, dword [ebp - 0x60]
add esp, 8
mov dword [ebp - 4], 3
test al, 2
je 0x1001719b
mov edx, dword [ebp - 0x88]
and eax, 0xfffffffd
mov dword [ebp - 0x60], eax
cmp edx, 8
jb 0x1001717e
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10017171
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100173ee
push edx
push ecx
call fcn.1002eba8
mov eax, dword [ebp - 0x60]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], cx
mov dword [ebp - 4], 2
test al, 1
je 0x100171e6
and eax, 0xfffffffe
mov dword [ebp - 0x60], eax
cmp esi, 8
jb 0x100171e6
mov ecx, dword [ebp - 0xb4]
lea edx, [esi*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100171dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100173ee
push edx
push ecx
call fcn.1002eba8
add esp, 8
mov edx, dword [ebp - 0x80]
xor eax, eax
inc edx
mov word [ebp - 0x7c], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 7
cmp eax, edx
jb 0x100173e9
sub eax, edx
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x7c]
lea eax, [eax + edx*2]
push eax
call fcn.100042a0
mov edi, dword [ebp - 0x60]
mov edx, dword [ebp - 0x14]
or edi, 0x40
mov dword [ebp - 0x64], edi
cmp edx, 8
jb 0x1001726f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10017265
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100173ee
push edx
push ecx
call fcn.1002eba8
add esp, 8
movups xmm0, xmmword [ebp - 0x7c]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
movups xmmword [ebp - 0x28], xmm0
push eax
movq xmm0, qword [ebp - 0x6c]
movq qword [ebp - 0x18], xmm0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10016f30
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne cl
mov byte [ebp - 0x59], cl
test eax, eax
jne 0x10016f30
mov esi, dword [ebp - 0x28]
jmp 0x100172c7
mov cl, byte [ebp - 0x59]
test cl, cl
je 0x10017300
mov esi, dword [ebp - 0x84]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x100172db
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100172fd
cmp dword [esi + 0x14], 8
jb 0x100172ee
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne byte [ebp - 0x59]
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x10017337
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x1001732d
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100173ee
push ecx
push esi
call fcn.1002eba8
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x10017381
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10017377
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100173f3
push edx
push ecx
call fcn.1002eba8
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], 7
cmp eax, 8
jb 0x100173cb
mov edx, dword [ebp - 0x58]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100173c1
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100173f8
push ecx
push edx
call fcn.1002eba8
add esp, 8
mov al, byte [ebp - 0x59]
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.1002ef19
mov esp, ebp
pop ebp
ret
call fcn.1000ef70
call fcn.1005e18e
call fcn.1005e18e
call fcn.1005e18e
int3