Function at 0x42b395
Capabilities:
Create directory
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov dword [ebp - 0x20], eax
inc edi
mov dword [ebp - 0xc], eax
mov ecx, dword [esi + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
call fcn.0042b2cf
mov ecx, dword [esi + 0xc]
mov ebx, eax
call fcn.0042b2cf
mov esi, eax
test ebx, ebx
je 0x42b553
test esi, esi
je 0x42b553
push edi
xor dl, dl
mov ecx, ebx
call fcn.0042b784
test eax, eax
jne 0x42b3f5
push 0x4000272e
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
jmp 0x42b553
mov ecx, esi
call fcn.0042b6ce
test eax, eax
jne 0x42b407
push 0x40002749
jmp 0x42b3ea
xor eax, eax
push eax
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_CreateDirectoryW]
test eax, eax
je 0x42b553
xor eax, eax
mov dword [ebp - 0x14], edi
push eax
push 0x2000000
push 3
push eax
push edi
push 0x40000000
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x42b553
xor eax, eax
push eax
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xc]
jne 0x42b454
movzx eax, word [ebp - 0x20]
sub ecx, edx
sar ecx, 1
lea eax, [eax + ecx*2]
add eax, 0x14
mov ecx, eax
mov dword [ebp - 4], eax
call fcn.0040f4e0
mov dword [ebp - 8], eax
test eax, eax
je 0x42b549
push dword [ebp - 4]
xor ecx, ecx
push ecx
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [ebp - 8]
add esp, 0xc
mov eax, dword [ebp - 4]
add eax, 0xfffffff8
mov word [ecx + 4], ax
lea edx, [ecx + 0x10]
xor eax, eax
mov dword [ecx], 0xa0000003
mov word [ecx + 8], ax
mov ax, word [ebp - 0x20]
mov word [ecx + 0xa], ax
movzx eax, word [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push edx
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 8]
add esp, 0xc
mov ax, word [ecx + 0xa]
push 2
pop edx
add ax, dx
mov edx, esi
mov word [ecx + 0xc], ax
lea eax, [edx + 2]
mov dword [ebp - 0x18], eax
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 0xc]
jne 0x42b4e0
sub edx, dword [ebp - 0x18]
sar edx, 1
lea eax, [edx + edx]
mov word [ecx + 0xe], ax
movzx eax, ax
push eax
movzx eax, word [ecx + 0xa]
add ecx, 0x12
add eax, ecx
push esi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov esi, dword [ebp - 0x10]
xor ecx, ecx
lea eax, [ebp - 0x28]
push ecx
push ecx
push dword [ebp - 4]
push dword [ebp - 8]
push 0x900a4
push eax
push ecx
push ecx
push ecx
push esi
call dword [sym.imp.ntdll.dll_NtFsControlFile]
test eax, eax
jns 0x42b543
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
jmp 0x42b54c
xor eax, eax
mov edi, eax
jmp 0x42b54c
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x42b56e
push dword [ebp - 0x1c]
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test edi, edi
je 0x42b57f
cmp dword [ebp - 0x14], 0
je 0x42b57f
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_RemoveDirectoryW]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret