Function at 0x10f1019
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, 0x10124d0
cmp dword [ebp + 8], ebx
jne 0x10f104b
push 0x1012574
push 0x234
push edi
call fcn.0107b644
push esi
mov esi, dword [ebp + 0xc]
cmp esi, ebx
jne 0x10f1063
push 0x1012558
push 0x235
push edi
call fcn.0107b644
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [esi], ebx
call fcn.010d7fb9
mov edi, eax
cmp edi, ebx
jl 0x10f1357
lea eax, [ebp - 0x24]
push eax
call fcn.01083f36
mov edi, eax
cmp edi, ebx
jl 0x10f1357
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.01084304
cmp esi, ebx
jne 0x10f10f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10f10be
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, 0x800700b7
jne 0x10f118c
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10f10f9
test byte [eax + 0x1c], 1
je 0x10f10f9
cmp byte [eax + 0x19], 3
jb 0x10f10f9
push dword [ebp - 8]
push 0x10124c0
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.010d40a7
mov edi, eax
cmp edi, ebx
jl 0x10f1357
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10f1115
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 0x10f11d7
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10f117b
test byte [eax + 0x1c], 1
je 0x10f117b
cmp byte [eax + 0x19], 2
jb 0x10f117b
push dword [ebp - 8]
push 0x10124c0
push 0x20
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jg 0x10f11cb
mov edi, eax
jmp 0x10f1357
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10f135c
test byte [eax + 0x1c], 1
je 0x10f135c
cmp byte [eax + 0x19], 2
jb 0x10f135c
push edi
push dword [ebp - 8]
push 0x10124c0
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x10f1357
and eax, 0xffff
or eax, 0x80070000
jmp 0x10f1185
mov ebx, dword [sym.imp.ole32.dll_CoTaskMemAlloc]
push 0x4000
call ebx
mov esi, eax
test esi, esi
je 0x10f12c2
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 0x10f12b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x10f1278
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10f1332
test byte [eax + 0x1c], 1
je 0x10f1332
cmp byte [eax + 0x19], 2
jb 0x10f1332
push edi
push 0x10124c0
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x10f1332
mov edi, 0x208
push edi
call ebx
mov dword [ebp - 4], eax
test eax, eax
jne 0x10f12c9
mov edi, 0x8007000e
jmp 0x10f1332
push edi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x1004144
mov ebx, 0x104
push ebx
push dword [ebp - 4]
call fcn.010257dc
mov edi, eax
test edi, edi
jl 0x10f1332
push 0x10019e4
push ebx
push dword [ebp - 4]
call fcn.01040cf0
mov edi, eax
test edi, edi
jl 0x10f1332
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.010d7dda
mov edi, eax
test edi, edi
jl 0x10f1332
push dword [ebp - 0x10]
push ebx
push dword [ebp - 4]
call fcn.01040cf0
mov edi, eax
test edi, edi
jl 0x10f1332
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
and dword [ebp - 4], 0
mov dword [ecx], eax
test esi, esi
je 0x10f133d
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 0x10f1355
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor ebx, ebx
mov eax, dword [0x111024c]
pop esi
cmp dword [ebp - 0xc], ebx
je 0x10f1370
push dword [ebp - 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111024c]
cmp dword [ebp - 8], ebx
je 0x10f1383
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111024c]
cmp dword [ebp - 0x10], ebx
je 0x10f1396
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111024c]
cmp edi, ebx
jge 0x10f13c3
cmp eax, 0x111024c
je 0x10f13c3
test byte [eax + 0x1c], 1
je 0x10f13c3
cmp byte [eax + 0x19], 2
jb 0x10f13c3
push edi
push dword [ebp + 8]
push 0x10124c0
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
mov eax, edi
pop edi
pop ebx
leave
ret 8