Function at 0x424af1
Capabilities:
Create directory
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
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.00424a23
mov ecx, dword [esi + 0xc]
mov ebx, eax
call fcn.00424a23
mov esi, eax
test ebx, ebx
je 0x424cac
test esi, esi
je 0x424cac
push edi
xor dl, dl
mov ecx, ebx
call fcn.00424e93
test eax, eax
jne 0x424b51
push 0x4000272e
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
jmp 0x424cac
mov ecx, esi
call fcn.00424e37
test eax, eax
jne 0x424b63
push 0x40002749
jmp 0x424b46
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 0x424cac
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 0x424cac
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 0x424bb0
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.00401e20
mov dword [ebp - 8], eax
test eax, eax
je 0x424ca2
push dword [ebp - 4]
xor ecx, ecx
push ecx
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [ebp - 8]
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, 0x18
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 0x424c39
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 eax, 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 0x424c9c
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 0x424ca5
xor eax, eax
mov edi, eax
jmp 0x424ca5
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 0x424cc7
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 0x424cd8
cmp dword [ebp - 0x14], 0
je 0x424cd8
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