Function at 0x42b5e0
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 - 0x24], eax
inc edi
mov dword [ebp - 0xc], eax
mov ecx, dword [esi + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
call fcn.0042b51a
mov ecx, dword [esi + 0xc]
mov ebx, eax
call fcn.0042b51a
mov esi, eax
test ebx, ebx
je 0x42b7a2
test esi, esi
je 0x42b7a2
push edi
xor dl, dl
mov ecx, ebx
call fcn.0042b9d3
test eax, eax
jne 0x42b640
push 0x4000272e
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
jmp 0x42b7a2
mov ecx, esi
call fcn.0042b91d
test eax, eax
jne 0x42b652
push 0x40002749
jmp 0x42b635
xor eax, eax
push eax
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
je 0x42b7a2
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_1_0.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x42b7a2
xor eax, eax
push eax
push eax
lea eax, [ebp - 0x24]
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 0x42b69f
movzx eax, word [ebp - 0x24]
sub ecx, edx
sar ecx, 1
lea eax, [eax + ecx*2]
add eax, 0x14
mov ecx, eax
mov dword [ebp - 4], eax
call fcn.004100b0
mov dword [ebp - 8], eax
test eax, eax
je 0x42b798
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 - 0x24]
mov word [ecx + 0xa], ax
movzx eax, word [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push edx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 8]
add esp, 0xc
movzx eax, word [edx + 0xa]
mov ecx, eax
add eax, 2
mov dword [ebp - 0x1c], ecx
mov ecx, esi
mov word [edx + 0xc], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x18], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xc]
jne 0x42b72d
sub ecx, dword [ebp - 0x18]
sar ecx, 1
lea eax, [ecx + ecx]
mov word [edx + 0xe], ax
add edx, 0x12
movzx eax, ax
push eax
mov eax, dword [ebp - 0x1c]
movzx eax, ax
add eax, edx
push esi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov esi, dword [ebp - 0x10]
xor ecx, ecx
lea eax, [ebp - 0x2c]
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 0x42b792
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
jmp 0x42b79b
xor eax, eax
mov edi, eax
jmp 0x42b79b
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
cmp dword [ebp - 0x20], 0
je 0x42b7bd
push dword [ebp - 0x20]
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 0x42b7ce
cmp dword [ebp - 0x14], 0
je 0x42b7ce
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret