Function at 0x10f1065
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov edi, 0x10124c0
cmp dword [ebp + 8], ebx
jne 0x10f1097
push 0x1012564
push 0x234
push edi
call fcn.0107b4be
push esi
mov esi, dword [ebp + 0xc]
cmp esi, ebx
jne 0x10f10af
push 0x1012548
push 0x235
push edi
call fcn.0107b4be
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [esi], ebx
call fcn.010d806c
mov edi, eax
cmp edi, ebx
jl 0x10f13a3
lea eax, [ebp - 0x24]
push eax
call fcn.01083f73
mov edi, eax
cmp edi, ebx
jl 0x10f13a3
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
lea eax, [ebp - 0x24]
push eax
call fcn.01084341
cmp esi, ebx
jne 0x10f1145
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10f110a
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, 0x800700b7
jne 0x10f11d8
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10f1145
test byte [eax + 0x1c], 1
je 0x10f1145
cmp byte [eax + 0x19], 3
jb 0x10f1145
push dword [ebp - 8]
push 0x10124b0
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.010d4141
mov edi, eax
cmp edi, ebx
jl 0x10f13a3
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10f1161
push 0xffffffffffffffff
push 0x2200080
push 3
push ebx
sub eax, edx
push 3
sar eax, 1
push 0xc0000000
push dword [ebp - 8]
add eax, eax
movzx edi, ax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x10f1223
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10f11c7
test byte [eax + 0x1c], 1
je 0x10f11c7
cmp byte [eax + 0x19], 2
jb 0x10f11c7
push dword [ebp - 8]
push 0x10124b0
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jg 0x10f1217
mov edi, eax
jmp 0x10f13a3
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10f13a8
test byte [eax + 0x1c], 1
je 0x10f13a8
cmp byte [eax + 0x19], 2
jb 0x10f13a8
push edi
push dword [ebp - 8]
push 0x10124b0
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x10f13a3
and eax, 0xffff
or eax, 0x80070000
jmp 0x10f11d1
mov ebx, dword [sym.imp.ole32.dll_CoTaskMemAlloc]
push 0x4000
call ebx
mov esi, eax
test esi, esi
je 0x10f130e
lea eax, [edi + 0xc]
mov word [esi + 4], ax
xor eax, eax
mov word [esi + 6], ax
mov word [esi + 8], ax
mov word [esi + 0xa], di
lea eax, [edi + 2]
mov word [esi + 0xc], ax
movzx edi, di
xor eax, eax
mov word [esi + 0xe], ax
push edi
mov dword [esi], 0xa0000003
push dword [ebp - 0xc]
lea eax, [esi + 0x10]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 0x3f
pop eax
mov word [esi + 0x12], ax
mov eax, edi
shr eax, 1
xor ecx, ecx
mov word [esi + eax*2 + 0x10], cx
mov word [esi + eax*2 + 0x12], cx
xor edi, edi
push edi
lea eax, [ebp - 0x18]
push eax
movzx eax, word [esi + 4]
push edi
push edi
add eax, 8
push eax
push esi
push 0x900a4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10f12ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x10f12c4
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10f137e
test byte [eax + 0x1c], 1
je 0x10f137e
cmp byte [eax + 0x19], 2
jb 0x10f137e
push edi
push 0x10124b0
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x10f137e
mov edi, 0x208
push edi
call ebx
mov dword [ebp - 4], eax
test eax, eax
jne 0x10f1315
mov edi, 0x8007000e
jmp 0x10f137e
push edi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x100413c
mov ebx, 0x104
push ebx
push dword [ebp - 4]
call fcn.01025872
mov edi, eax
test edi, edi
jl 0x10f137e
push 0x10019e4
push ebx
push dword [ebp - 4]
call fcn.01040bdd
mov edi, eax
test edi, edi
jl 0x10f137e
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.010d7e8d
mov edi, eax
test edi, edi
jl 0x10f137e
push dword [ebp - 0x10]
push ebx
push dword [ebp - 4]
call fcn.01040bdd
mov edi, eax
test edi, edi
jl 0x10f137e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
and dword [ebp - 4], 0
mov dword [ecx], eax
test esi, esi
je 0x10f1389
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x10f13a1
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor ebx, ebx
mov eax, dword [0x111124c]
pop esi
cmp dword [ebp - 0xc], ebx
je 0x10f13bc
push dword [ebp - 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111124c]
cmp dword [ebp - 8], ebx
je 0x10f13cf
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111124c]
cmp dword [ebp - 0x10], ebx
je 0x10f13e2
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111124c]
cmp edi, ebx
jge 0x10f140f
cmp eax, 0x111124c
je 0x10f140f
test byte [eax + 0x1c], 1
je 0x10f140f
cmp byte [eax + 0x19], 2
jb 0x10f140f
push edi
push dword [ebp + 8]
push 0x10124b0
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov eax, edi
pop edi
pop ebx
leave
ret 8