Function at 0x42f87a
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.0042f7ad
mov ecx, dword [esi + 0xc]
mov ebx, eax
call fcn.0042f7ad
mov esi, eax
test ebx, ebx
je 0x42fa3b
test esi, esi
je 0x42fa3b
xor dl, dl
mov ecx, ebx
call fcn.0041bd1d
test eax, eax
jne 0x42f8d9
push 0x4000272e
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
jmp 0x42fa3b
mov ecx, esi
call fcn.0042fbc6
test eax, eax
jne 0x42f8eb
push 0x40002749
jmp 0x42f8ce
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 0x42fa3b
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 0x42fa3b
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 0x42f938
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.0040cbc0
mov dword [ebp - 8], eax
test eax, eax
je 0x42fa31
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 0x42f9c6
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 0x42fa2b
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 0x42fa34
xor eax, eax
mov edi, eax
jmp 0x42fa34
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 0x42fa56
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 0x42fa67
cmp dword [ebp - 0x14], 0
je 0x42fa67
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
leave
ret