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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10032298
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10046270]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], vtable.CFileHandler.0
mov dword [ebp - 4], 1
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x30]
push dword [ebx + 4]
mov dword [ebp - 0x30], vtable.CStringBufferW.0
push dword [ebx + 0xc]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
call fcn.1000a470
mov byte [ebp - 4], 2
mov esi, dword [ebp + 0x10]
mov esi, dword [esi + 0xc]
test esi, esi
je 0x10016ad6
mov eax, dword [ebp - 0x2c]
test eax, eax
jle 0x10016acd
lea ecx, [eax - 1]
cmp ecx, eax
sbb eax, eax
inc eax
jne 0x10016ac3
mov eax, dword [ebp - 0x24]
movzx eax, word [eax + ecx*2]
cmp eax, 0x5c
je 0x10016acd
cmp eax, 0x2f
je 0x10016acd
push 0x5c
lea ecx, [ebp - 0x30]
call fcn.1000a6b0
push esi
lea ecx, [ebp - 0x30]
call fcn.1000a740
mov eax, dword [ebp - 0x24]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10016af4
cmp dword [ebp - 0x2c], 0
je 0x10016af4
push eax
call edi
test eax, eax
jne 0x10016c5e
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push dword [eax + 4]
mov dword [ebp - 0x20], vtable.CStringBufferW.0
push dword [eax + 0xc]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call fcn.1000a470
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + 0xc]
test esi, esi
je 0x10016b68
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x10016b5f
lea ecx, [eax - 1]
cmp ecx, eax
sbb eax, eax
inc eax
jne 0x10016b55
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + ecx*2]
cmp eax, 0x5c
je 0x10016b5f
cmp eax, 0x2f
je 0x10016b5f
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.1000a6b0
push esi
lea ecx, [ebp - 0x20]
call fcn.1000a740
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10016c68
cmp dword [ebp - 0x1c], 0
je 0x10016c68
push eax
call edi
test eax, eax
je 0x10016c65
mov dword [ebp + 0x10], 0
cmp dword [0x10048cf0], 0
mov esi, dword [ebx + 0xc]
jne 0x10016c65
test esi, esi
je 0x10016c65
push esi
call edi
test eax, eax
jne 0x10016bbf
push eax
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x10016c65
push 1
sub esp, 0x10
mov ecx, esp
mov dword [ebp + 8], esp
mov dword [ebp + 0xc], ecx
mov dword [ecx], vtable.CSeed.0
mov byte [ebp - 4], 6
mov dword [ecx], vtable.CStringBufferW.0
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
mov dword [ecx + 4], 0
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
call fcn.1000a470
sub esp, 0x10
mov ecx, esp
mov dword [ebp + 0xc], ecx
mov dword [ecx], vtable.CSeed.0
mov byte [ebp - 4], 8
mov dword [ecx], vtable.CStringBufferW.0
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
mov dword [ecx + 4], 0
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.1000a470
mov byte [ebp - 4], 7
mov byte [ebp - 4], 5
call fcn.10015df0
test eax, eax
je 0x10016c65
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10016c52
mov dword [eax], 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.1000a240
mov esi, 1
jmp 0x10016c82
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], vtable.CStringBufferW.0
mov byte [ebp - 4], 9
test eax, eax
je 0x10016c80
push eax
call fcn.1001df51
add esp, 4
xor esi, esi
mov dword [ebp - 0x30], vtable.CStringBufferW.0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10016c9d
push eax
call fcn.1001df51
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10