Function at 0x303e350
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0303e1d0
test eax, eax
jne 0x303e375
push 0x57
call fcn.030226d0
jmp 0x303e542
cmp dword [ebp - 0x10], 0
jne 0x303e387
push 0x57
call fcn.030226d0
jmp 0x303e542
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.0302b6a0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x303e3a9
xor eax, eax
jmp 0x303e542
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0303e2a0
test eax, eax
jne 0x303e3ce
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0302b6f0
xor eax, eax
jmp 0x303e542
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x303e473
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 1]
cmp eax, 0x5c
jne 0x303e473
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
test ecx, ecx
je 0x303e428
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x5c
je 0x303e428
mov ecx, dword [ebp - 4]
push ecx
call fcn.0302b750
mov dword [ebp - 4], eax
jmp 0x303e405
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
je 0x303e43b
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
je 0x303e45e
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x5c
je 0x303e45e
mov eax, dword [ebp - 4]
push eax
call fcn.0302b750
mov dword [ebp - 4], eax
jmp 0x303e43b
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x303e471
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x303e4af
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + 1]
cmp edx, 0x3a
jne 0x303e4af
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
je 0x303e4af
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x303e4af
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x303e534
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x303e523
mov edx, dword [ebp - 4]
mov byte [edx], 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.0304ce60
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x303e508
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x303e506
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x303e506
mov edx, dword [ebp - 0xc]
push edx
call fcn.0302b6f0
xor eax, eax
jmp 0x303e542
jmp 0x303e51d
mov eax, dword [ebp - 8]
and eax, 0x10
jne 0x303e51d
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0302b6f0
xor eax, eax
jmp 0x303e542
mov edx, dword [ebp - 4]
mov byte [edx], 0x5c
mov eax, dword [ebp - 4]
push eax
call fcn.0302b750
mov dword [ebp - 4], eax
jmp 0x303e4af
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0302b6f0
mov eax, 1
mov esp, ebp
pop ebp
ret 4