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

Disassembly:
push ebp
mov eax, str.test.txt
mov ebp, esp
push edi
push esi
lea ecx, [ebp - 0x214]
lea edx, [ebp - 0x41c]
push ebx
lea esi, [ebp - 0x424]
sub esp, 0x434
call fcn.00407140
lea eax, [ebp - 0x41c]
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], esi
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
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], 0x626
xor eax, eax
cmp edi, 0x800a004c
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
call fcn.004077c0
lea eax, [ebp - 0x214]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
mov edi, eax
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x629
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 8], edi
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.Unexpected_retval__d__error__ld._n
call fcn.004077c0
mov eax, dword [0x448004]
mov edx, dword [eax]
mov dword [esp + 0x10], esi
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
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], 0x62c
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 ecx, 0x62e
mov edx, 0x41c958
call fcn.004077e0
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 0x420]
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], 0x631
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 - 0x424]
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], 0x634
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]
lea edx, [ebp - 0x420]
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], 0x637
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 - 0x424]
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], 0x63a
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 - 0x424]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
lea eax, [ebp - 0x41c]
sub esp, 4
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
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov edi, eax
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x640
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 [0x448004]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 0x10], esi
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
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], 0x645
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 [0x448004]
mov edx, dword [eax]
mov dword [esp + 0x10], esi
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffffffff
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], 0x649
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 edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [0x448004]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 0x10], esi
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0xffffffff
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], 0x64e
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 - 0x424]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov ecx, 0x41bfa4
mov edx, 2
lea eax, [ebp - 0x41c]
sub esp, 4
mov dword [esp], 0x651
call fcn.00411150
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_DeleteFileW]
lea eax, [ebp - 0x214]
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