Function at 0x413de0
Capabilities:
Create directory
Delete directory
Delete file

Disassembly:
push ebp
mov eax, str.test.txt
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x41c]
lea ecx, [ebp - 0x214]
push ebx
mov edx, esi
sub esp, 0x43c
call fcn.00407140
mov dword [esp], str.foo.txt
mov edi, dword [sym.imp.oleaut32.dll_SysAllocString]
call edi
mov ebx, eax
sub esp, 4
xor eax, eax
lea esi, [esi]
movzx edx, word [ebp + eax - 0x214]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x413e20
cmp word [ebp - 0x41c], 0
mov edx, esi
je 0x413e49
add edx, 2
cmp word [edx], 0
jne 0x413e40
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [ebx + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x413e50
lea eax, [ebp - 0x214]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
mov dword [ebp - 0x42c], eax
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x668
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0x42c]
mov dword [esp + 4], str.Unexpected_retval__d__error__ld._n
mov dword [esp + 8], edx
mov dword [esp], edx
call fcn.004077c0
lea eax, [ebp - 0x214]
mov dword [esp], eax
call edi
mov edx, dword [0x448004]
lea edi, [ebp - 0x420]
mov dword [ebp - 0x424], eax
sub esp, 4
mov ecx, dword [edx]
mov dword [esp], edx
mov dword [esp + 8], edi
mov dword [esp + 4], eax
call dword [ecx + 0x54]
sub esp, 0xc
mov edi, eax
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x66c
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 - 0x424]
mov dword [esp], eax
mov eax, dword [sym.imp.oleaut32.dll_SysFreeString]
mov dword [ebp - 0x42c], eax
call eax
mov eax, dword [ebp - 0x420]
lea ecx, [ebp - 0x428]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [edx + 0x6c]
sub esp, 0x14
mov edi, eax
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x670
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 - 0x428]
mov ecx, 0x672
mov edx, 0x41c958
call fcn.004077e0
mov eax, dword [ebp - 0x428]
lea edx, [ebp - 0x424]
mov ecx, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [ecx + 0x2c]
sub esp, 0xc
mov edi, eax
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x675
xor eax, eax
cmp edi, 0x800a0036
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 - 0x428]
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 0x4c]
sub esp, 4
mov edi, eax
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x678
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 - 0x428]
lea edx, [ebp - 0x424]
mov ecx, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [ecx + 0x2c]
sub esp, 0xc
mov edi, eax
call fcn.00416600
cmp edi, 0x800a0036
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x67b
sete al
cmp edi, 0x800a005b
sete dl
mov dword [esp + 8], edi
or eax, edx
mov dword [esp + 4], str.Unexpected_hr__lx._n
movzx eax, al
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [ebp - 0x428]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x4c]
sub esp, 4
mov edi, eax
call fcn.00416600
cmp edi, 1
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x67e
sete al
cmp edi, 0x800a005b
sete dl
mov dword [esp + 8], edi
or eax, edx
mov dword [esp + 4], str.Unexpected_hr__lx._n
movzx eax, al
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [ebp - 0x428]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov edi, eax
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x684
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp + 8], edi
mov dword [esp + 4], str.got__p_n
mov dword [esp], eax
call fcn.004077c0
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x420]
lea ecx, [ebp - 0x428]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [edx + 0x6c]
sub esp, 0x14
mov edi, eax
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x689
xor eax, eax
cmp edi, 0x800a003a
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 - 0x420]
lea ecx, [ebp - 0x428]
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffffffff
mov dword [esp], eax
call dword [edx + 0x6c]
sub esp, 0x14
mov edi, eax
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x68d
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 - 0x428]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x420]
lea ecx, [ebp - 0x428]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0xffffffff
mov dword [esp], eax
call dword [edx + 0x6c]
sub esp, 0x14
mov edi, eax
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x692
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 - 0x428]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov ecx, 0x41bfa4
mov edx, 2
mov eax, esi
sub esp, 4
mov dword [esp], 0x695
call fcn.00411150
mov dword [esp], esi
lea esi, [ebp - 0x214]
call dword [sym.imp.kernel32.dll_DeleteFileW]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
sub esp, 4
mov dword [esp], ebx
mov eax, dword [ebp - 0x42c]
call eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret