Function at 0x29a96230
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
push esi
mov esi, dword [ebp + 8]
xor eax, eax
cmp word [esi], ax
push edi
jne 0x29a9624e
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
inc eax
cmp eax, 0x105
jbe 0x29a96285
mov eax, 0x105
lea ecx, [eax + eax - 2]
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x20]
mov word [esp + eax*2 + 0x1e], 0
call fcn.29a96450
mov edi, dword [sym.imp.MSVCRT.dll_wcschr]
lea eax, [esp + 0x22]
push 0x5c
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x29a96376
lea ecx, [esp + 0x20]
cmp esi, ecx
jbe 0x29a962de
cmp word [esi - 2], 0x3a
jne 0x29a962de
push 0x5c
add esi, 2
push esi
jmp 0x29a96307
lea edx, [esp + 0x22]
cmp esi, edx
jne 0x29a9630e
cmp word [esp + 0x20], 0x5c
jne 0x29a9630e
push 0x5c
add esi, 2
push esi
call edi
add esp, 8
test eax, eax
je 0x29a963af
push 0x5c
add eax, 2
push eax
call edi
add esp, 8
mov esi, eax
test esi, esi
je 0x29a96376
lea eax, [esp + 0x20]
push eax
xor eax, eax
lea edi, [esp + 0x14]
mov word [esi], 0
call fcn.29a965e0
mov ecx, dword [esp + 0x14]
add esp, 4
cmp ecx, 0xffffffff
je 0x29a96337
test eax, eax
jne 0x29a9635c
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x29a9635c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x29a96439
mov word [esi], 0x5c
push 0x5c
add esi, 2
push esi
call dword [sym.imp.MSVCRT.dll_wcschr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x29a96312
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x29a963a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x29a963af
mov eax, dword [ebp + 8]
push 0
call fcn.29a965b0
add esp, 4
test eax, eax
je 0x29a963af
mov dword [esp + 8], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 8]
push ecx
mov eax, ebx
call fcn.29a95c90
add esp, 4
test eax, eax
je 0x29a9642f
mov edx, dword [ebx]
lea esi, [ebx + 0x1c]
push esi
mov ecx, ebx
call dword [edx + 0x18]
mov eax, dword [ebx]
lea edi, [ebx + 0x20]
push edi
mov ecx, ebx
call dword [eax + 0x18]
mov eax, dword [0x29b42294]
mov edx, dword [ebx]
push eax
push esi
mov ecx, ebx
call dword [edx + 8]
mov eax, dword [0x29b42298]
mov edx, dword [ebx]
push eax
push edi
mov ecx, ebx
call dword [edx + 8]
mov esi, dword [ebp + 8]
push esi
push 0x6dde
push 0x29b42288
push ebx
call fcn.29a9fa70
add esp, 0x10
push esi
push 1
mov ecx, ebx
call fcn.29a9ff10
mov eax, dword [esp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
mov dword [ebp + 8], eax
jmp 0x29a963af