Function at 0x412720
Capabilities:
Create directory
Delete directory
Delete file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov eax, str.test.txt
mov ebp, esp
push edi
push esi
lea ecx, [ebp - 0x41c]
lea edx, [ebp - 0x624]
push ebx
lea edi, [ebp - 0x72c]
sub esp, 0x744
call fcn.00407140
lea eax, [ebp - 0x41c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
mov ebx, eax
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x6aa
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 8], ebx
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.Unexpected_retval__d__error__ld._n
call fcn.004077c0
lea eax, [ebp - 0x624]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_SysAllocString]
mov ebx, eax
mov eax, dword [0x448004]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x78]
sub esp, 0x14
mov esi, eax
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x6af
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
call fcn.004077c0
mov eax, dword [ebp - 0x72c]
mov edx, dword [eax]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x3c]
sub esp, 8
mov esi, eax
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x6b2
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], esi
lea esi, [ebp - 0x728]
mov dword [esp], eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
call fcn.004077c0
mov eax, dword [ebp - 0x72c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x102
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [ebp - 0x730], eax
call fcn.00416600
mov edx, dword [ebp - 0x730]
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x6b6
xor eax, eax
test edx, edx
setne al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.got__ld
call fcn.004077c0
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov ecx, 0xa0d
lea edx, [esi + eax]
mov word [edx], cx
mov ecx, esi
mov byte [edx + 2], 0
lea edx, [eax + 2]
lea eax, [ebp - 0x624]
mov dword [esp], 0x6b8
call fcn.00411150
mov dword [esp], ebx
mov esi, dword [sym.imp.kernel32.dll_DeleteFileW]
call esi
mov eax, dword [0x448004]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x78]
sub esp, 0x14
mov edi, eax
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x6bd
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
call fcn.004077c0
mov eax, dword [ebp - 0x72c]
mov edx, dword [eax]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x3c]
sub esp, 8
mov edi, eax
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x6c0
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
call fcn.004077c0
mov eax, dword [ebp - 0x72c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
xor eax, eax
lea ecx, [ebp - 0x214]
sub esp, 4
lea esi, [esi]
lea esi, [esi]
movzx edx, word [eax + 0x41bfa4]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x4129d0
cmp word [ebp - 0x214], 0
mov edx, ecx
je 0x4129f9
nop
add edx, 2
cmp word [edx], 0
jne 0x4129f0
xor eax, eax
lea esi, [esi]
nop
movzx edi, word [ebx + eax]
mov word [edx + eax], di
add eax, 2
test di, di
jne 0x412a00
cmp word [ebp - 0x214], 0
mov edx, ecx
je 0x412a29
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x412a20
xor eax, eax
lea esi, [esi]
nop
movzx edi, word [eax + 0x41b95c]
mov word [edx + eax], di
add eax, 2
test di, di
jne 0x412a30
cmp word [ebp - 0x214], 0
je 0x412aa0
mov edx, ecx
nop
add edx, 2
cmp word [edx], 0
jne 0x412a50
sub edx, ecx
mov dword [esp], 0x6c6
lea eax, [ebp - 0x624]
call fcn.00411150
mov dword [esp], ebx
call esi
lea eax, [ebp - 0x41c]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.oleaut32.dll_SysFreeString]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor edx, edx
jmp 0x412a5b