Function at 0x1000a720
Capabilities:
Create directory

Disassembly:
sub esp, 0x38
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
push ebx
push ebp
mov dword [eax], 0
mov ebp, edx
mov dword [esp + 0xc], ebp
push esi
push edi
test ecx, ecx
je 0x1000ab54
cmp word [ecx], 0
je 0x1000ab54
mov eax, dword [0x101c5980]
lea edx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
call fcn.10021040
mov ebx, dword [esp + 0x34]
add esp, 4
test al, al
je 0x1000ab28
mov edi, dword [esp + 0x38]
test edi, edi
jns 0x1000a7ba
xor ecx, ecx
mov eax, ebx
cmp ebx, dword [0x101c5980]
push 2
cmove eax, ecx
push eax
call fcn.1015fb7c
add esp, 8
test eax, eax
je 0x1000a7dd
mov ebx, eax
xor edi, edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], edi
mov edx, ebx
mov esi, dword [esp + 0x34]
lea eax, [edx + esi*2]
cmp eax, edx
je 0x1000a7e6
movzx ecx, word [eax]
cmp ecx, 0x2f
je 0x1000a7e1
cmp ecx, 0x5c
je 0x1000a7e1
sub eax, 2
cmp eax, edx
jne 0x1000a7c7
jmp 0x1000a7e6
xor edx, edx
jmp 0x1000a7bc
xor ecx, ecx
mov word [eax], cx
test ebx, ebx
je 0x1000a801
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000a7f0
sub ecx, edx
sar ecx, 1
jmp 0x1000a803
xor ecx, ecx
cmp ecx, edi
cmovle esi, ecx
mov dword [esp + 0x34], esi
test ebp, ebp
je 0x1000a86b
mov eax, dword [0x101c5980]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], eax
lea eax, [esp + 0x3c]
push eax
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
call fcn.1000bdd0
lea ecx, [esp + 0x2c]
call fcn.100097d0
add esp, 0xc
lea ecx, [esp + 0x30]
push eax
call fcn.1000bdd0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1000a863
cmp eax, dword [0x101c5980]
je 0x1000a863
push eax
call fcn.10154f5a
add esp, 4
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
push ebx
call fcn.101565d5
mov ecx, dword [0x101c6ac8]
mov ebp, eax
add esp, 4
mov dword [esp + 0x3c], ecx
mov cx, word [0x101c6acc]
mov eax, 0x104
cmp esi, eax
mov dword [esp + 0x10], ebp
mov word [esp + 0x40], cx
cmovg eax, esi
mov dword [esp + 0x2c], 0
inc eax
push eax
push 2
call fcn.1015c282
mov esi, eax
add esp, 8
test esi, esi
je 0x1000ab28
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x40]
push eax
push ebp
call fcn.1015fb3a
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1000aacc
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x1000a9be
movzx eax, word [ebx]
cmp eax, 0x5c
jne 0x1000a9ab
cmp word [ebx + 2], ax
jne 0x1000a99d
cmp word [ebx + 4], 0x3f
push 0x101c6a90
push esi
jne 0x1000a98e
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
push esi
call ebp
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x40]
push eax
push 0
call fcn.1015fb3a
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1000aac6
push 0x101c6ac4
push esi
call ebp
push edi
push esi
call ebp
push 3
push 0x101c6ad0
push edi
call fcn.1015c248
add esp, 0xc
test eax, eax
jne 0x1000aaa8
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x40]
push eax
push 0
call fcn.1015fb3a
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1000aaa8
push 0x101c6ac4
push esi
call ebp
push edi
push esi
call ebp
jmp 0x1000aaa8
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
push esi
call ebp
jmp 0x1000aaa8
push 0x101c6ac4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x1000a9c6
cmp eax, 0x2f
jne 0x1000a9c6
push 0x101c6ac0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x1000a9c6
push 0x101c6ac4
push esi
call ebp
push edi
push esi
call ebp
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1000aaa8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1000aaa8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x1000a9ff
cmp eax, 0xce
jne 0x1000aa96
cmp dword [esp + 0x14], 0
je 0x1000aa96
mov eax, dword [0x101c5980]
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x44], 0
xorps xmm0, xmm0
movq qword [esp + 0x3c], xmm0
push esi
mov dword [ecx], eax
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
call fcn.1000bc60
lea ecx, [esp + 0x3c]
call fcn.10009b90
mov edi, dword [esp + 0x3c]
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1000aa66
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1000aaed
test edi, edi
je 0x1000aa7b
cmp edi, dword [0x101c5980]
je 0x1000aa7b
push edi
call fcn.10154f5a
add esp, 4
mov eax, dword [0x101c5980]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
jmp 0x1000aaa8
cmp eax, 0xb7
jne 0x1000aac6
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1000aac6
lea ecx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x40]
push eax
push 0
call fcn.1015fb3a
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1000a8e1
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1000ab0c
call ebp
xor ebp, ebp
mov ecx, 0xa0000034
test eax, eax
cmove eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
jmp 0x1000ab11
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
test edi, edi
je 0x1000aacc
cmp edi, dword [0x101c5980]
je 0x1000aacc
push edi
call fcn.10154f5a
add esp, 4
jmp 0x1000aacc
mov ebp, 1
push dword [esp + 0x10]
call fcn.10154f5a
add esp, 4
push esi
call fcn.10154f5a
add esp, 4
jmp 0x1000ab2a
xor ebp, ebp
test ebx, ebx
je 0x1000ab3f
cmp ebx, dword [0x101c5980]
je 0x1000ab3f
push ebx
call fcn.10154f5a
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.10151433
add esp, 0x38
ret
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10151433
add esp, 0x38
ret