Function at 0x1000a030
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100cc8d8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x101025ec]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x101025ec]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, edx
mov eax, ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], esi
mov byte [esp + 0x40], 0
mov dword [esp + 0x68], esi
test eax, eax
je 0x1000a2cc
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a0a5
sub ecx, edx
je 0x1000a2cc
test ebx, ebx
je 0x1000a2cc
cmp byte [ebx], al
jne 0x1000a0c4
xor ecx, ecx
jmp 0x1000a0d9
mov ecx, ebx
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a0d0
sub ecx, edx
push ecx
push ebx
lea ecx, [esp + 0x48]
call fcn.10007fb0
push 1
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x4c]
call fcn.1000a440
push eax
push 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x4c]
call fcn.10007550
mov edi, eax
lea eax, [esp + 0x40]
cmp eax, edi
je 0x1000a13f
cmp dword [esp + 0x54], 0x10
jb 0x1000a120
push dword [esp + 0x40]
call fcn.1002f7b8
add esp, 4
push edi
lea ecx, [esp + 0x44]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
call fcn.10007950
cmp dword [esp + 0x38], 0x10
jb 0x1000a152
push dword [esp + 0x24]
call fcn.1002f7b8
add esp, 4
cmp dword [esp + 0x54], 0x10
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootA]
test eax, eax
jne 0x1000a19d
cmp dword [esp + 0x54], 0x10
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x1000a19d
cmp dword [esp + 0x54], 0x10
lea eax, [esp + 0x40]
push 0
cmovae eax, dword [esp + 0x44]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
call fcn.100991d0
mov edi, eax
test edi, edi
je 0x1000a2b9
push 0x100f1894
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.100316a4
add esp, 0xc
cmp dword [esp + 0x3c], 0
je 0x1000a2b9
push dword [esp + 0x1c]
push 0x2712
push edi
call fcn.10099230
push dword [esp + 0x48]
push 0x2711
push edi
call fcn.10099230
push dword [ebp + 0x18]
push 0xd
push edi
call fcn.10099230
mov ecx, dword [ebp + 0x10]
add esp, 0x24
mov edx, dword [ebp + 0x14]
mov eax, ecx
or eax, edx
je 0x1000a219
shld edx, ecx, 0xa
push edx
shl ecx, 0xa
push ecx
push 0x75c2
push edi
call fcn.10099230
add esp, 0x10
push 0
push 0x4e2b
push edi
call fcn.10099230
push 1
push 0x34
push edi
call fcn.10099230
add esp, 0x18
cmp dword [esp + 0x14], 0
je 0x1000a265
push 0
push 0x2b
push edi
call fcn.10099230
push dword [esp + 0x20]
push 0x4e58
push edi
call fcn.10099230
push dword [esp + 0x30]
push 0x2749
push edi
call fcn.10099230
add esp, 0x24
push edi
call fcn.10099210
test eax, eax
mov ecx, 1
push edi
cmove esi, ecx
call fcn.100991b0
add esp, 8
cmp esi, 1
jne 0x1000a2a2
push 2
push 0
push dword [esp + 0x44]
call fcn.100313b8
push dword [esp + 0x48]
call fcn.10031251
add esp, 0x10
neg eax
sbb eax, eax
and esi, eax
push dword [esp + 0x3c]
call fcn.10031503
add esp, 4
test esi, esi
jne 0x1000a2b9
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x54], 0x10
jb 0x1000a2cc
push dword [esp + 0x40]
call fcn.1002f7b8
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.1002f7bd
mov esp, ebp
pop ebp
ret