Function at 0x40a2c0
Capabilities:
Check if file exists
Create directory
Delete directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x244
mov edi, dword [sym.imp.kernel32.dll_CreateDirectoryW]
mov dword [esp + 4], 0
mov dword [esp], str.filesystem3_test
call edi
sub esp, 8
test eax, eax
je 0x40ad90
lea ebx, [ebp - 0x214]
mov edx, str.src1
mov eax, str.filesystem3_test
mov ecx, ebx
call fcn.00406a80
mov esi, dword [sym.imp.oleaut32.dll_SysAllocString]
mov dword [esp], ebx
mov dword [ebp - 0x21c], esi
call esi
mov ecx, ebx
mov edx, 0x41c368
sub esp, 4
mov dword [ebp - 0x218], eax
mov eax, str.filesystem3_test
call fcn.00406a80
mov dword [esp], ebx
call esi
mov esi, eax
mov eax, dword [0x448004]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov ecx, dword [ebp - 0x218]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x6c]
sub esp, 0x10
mov dword [ebp - 0x220], eax
mov eax, 0x327
call fcn.00406da0
mov edx, dword [ebp - 0x220]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
cmp edx, 0x800a0035
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [0x448004]
mov edx, dword [eax]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov ecx, dword [ebp - 0x218]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x70]
sub esp, 0x10
mov dword [ebp - 0x220], eax
mov eax, 0x32a
call fcn.00406da0
mov edx, dword [ebp - 0x220]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
cmp edx, 0x800a004c
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.004077c0
mov eax, 0x32c
call fcn.00406da0
mov eax, dword [ebp - 0x218]
call fcn.00406fa0
mov dword [ebp - 0x224], eax
mov eax, dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov ecx, dword [ebp - 0x218]
mov dword [esp], ecx
mov dword [ebp - 0x230], eax
call eax
sub esp, 0x1c
mov dword [esp], eax
mov dword [ebp - 0x220], eax
mov eax, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [ebp - 0x22c], eax
call eax
mov ecx, dword [ebp - 0x224]
xor eax, eax
sub esp, 4
mov dword [esp + 8], ecx
mov dword [esp + 4], str.cant_create__s_file_n
mov edx, dword [ebp - 0x220]
cmp edx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [0x448004]
mov edx, dword [eax]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov ecx, dword [ebp - 0x218]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x6c]
sub esp, 0x10
mov dword [ebp - 0x220], eax
mov eax, 0x32e
call fcn.00406da0
mov edx, dword [ebp - 0x220]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
test edx, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [0x448004]
mov edx, dword [eax]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov ecx, dword [ebp - 0x218]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x70]
sub esp, 0x10
mov dword [ebp - 0x220], eax
mov eax, 0x331
call fcn.00406da0
mov edx, dword [ebp - 0x220]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
cmp edx, 0x800a004c
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [0x448004]
mov edx, dword [eax]
mov dword [esp + 8], 0
mov ecx, dword [ebp - 0x218]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x5c]
sub esp, 0xc
mov dword [ebp - 0x220], eax
mov eax, 0x334
call fcn.00406da0
mov edx, dword [ebp - 0x220]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
test edx, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.004077c0
mov eax, 0x336
call fcn.00406da0
mov eax, dword [ebp - 0x218]
call fcn.00406fa0
mov dword [ebp - 0x220], eax
mov dword [esp + 4], 0
mov ecx, dword [ebp - 0x218]
mov dword [esp], ecx
call edi
mov edx, dword [ebp - 0x220]
sub esp, 8
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.cant_create__s_n
call fcn.004077c0
mov eax, dword [0x448004]
mov edx, dword [eax]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov ecx, dword [ebp - 0x218]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x6c]
sub esp, 0x10
mov edi, eax
mov eax, 0x338
call fcn.00406da0
xor eax, eax
cmp edi, 0x800a0035
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [0x448004]
mov edx, dword [eax]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov ecx, dword [ebp - 0x218]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x70]
sub esp, 0x10
mov edi, eax
mov eax, 0x33b
call fcn.00406da0
xor eax, eax
cmp edi, 0x800a003a
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [0x448004]
mov edx, dword [eax]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x5c]
sub esp, 0xc
mov edi, eax
mov eax, 0x33e
call fcn.00406da0
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [0x448004]
mov edx, dword [eax]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov ecx, dword [ebp - 0x218]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x70]
sub esp, 0x10
mov edi, eax
mov eax, 0x341
call fcn.00406da0
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [0x448004]
mov edx, dword [eax]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov ecx, dword [ebp - 0x218]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x70]
sub esp, 0x10
mov edi, eax
mov eax, 0x344
call fcn.00406da0
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004077c0
mov ecx, ebx
mov edx, str.src1
mov eax, ebx
call fcn.00406a80
mov eax, 0x346
call fcn.00406da0
mov eax, ebx
shr eax, 0x10
mov dword [ebp - 0x220], eax
je 0x40ad70
mov dword [esp + 4], 0xffffffff
mov edi, str._invalid_
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x40a7b3
mov eax, ebx
call fcn.00406dc0
mov edi, eax
mov eax, dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov dword [esp], ebx
mov dword [ebp - 0x228], eax
call eax
sub esp, 4
cmp eax, 0xffffffff
sete al
mov dword [esp + 8], edi
movzx eax, al
mov dword [esp + 4], str._s_file_exists_n
mov dword [esp], eax
call fcn.004077c0
mov ecx, ebx
mov edx, 0x41c368
mov eax, str.filesystem3_test
call fcn.00406a80
mov ecx, ebx
mov edx, 0x41bb3e
mov eax, ebx
call fcn.00406a80
mov eax, dword [sym.imp.oleaut32.dll_SysFreeString]
mov dword [esp], esi
mov dword [ebp - 0x224], eax
call eax
sub esp, 4
mov dword [esp], ebx
mov eax, dword [ebp - 0x21c]
call eax
mov edi, eax
mov eax, dword [0x448004]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov ecx, dword [ebp - 0x218]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [edx + 0x70]
sub esp, 0x10
mov esi, eax
mov eax, 0x34e
call fcn.00406da0
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004077c0
mov ecx, ebx
mov edx, str.src1
mov eax, ebx
call fcn.00406a80
mov eax, 0x350
call fcn.00406da0
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x40adf0
mov dword [esp + 4], 0xffffffff
mov esi, dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [esp], ebx
call esi
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x40a8c0
mov eax, ebx
call fcn.00406dc0
mov edx, eax
mov dword [ebp - 0x234], edx
mov dword [esp], ebx
mov eax, dword [ebp - 0x228]
call eax
mov edx, dword [ebp - 0x234]
sub esp, 4
cmp eax, 0xffffffff
setne al
mov dword [esp + 8], edx
movzx eax, al
mov dword [esp + 4], str._s_directory_doesnt_exist_n
mov dword [esp], eax
call fcn.004077c0
mov eax, 0x352
call fcn.00406da0
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call esi
mov esi, str._invalid_
sub esp, 8
test eax, eax
jne 0x40a923
mov eax, ebx
call fcn.00406dc0
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
sub esp, 4
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.cant_remove__s_directory_n
call fcn.004077c0
mov ecx, ebx
mov edx, 0x41c368
mov eax, str.filesystem3_test
call fcn.00406a80
mov dword [esp], edi
mov edi, dword [ebp - 0x224]
call edi
sub esp, 4
mov dword [esp], ebx
mov eax, dword [ebp - 0x21c]
call eax
mov edx, str.src
mov ecx, ebx
sub esp, 4
mov esi, eax
mov eax, str.filesystem3_test
call fcn.00406a80
mov ecx, dword [ebp - 0x218]
mov dword [esp], ecx
call edi
sub esp, 4
mov dword [esp], ebx
mov eax, dword [ebp - 0x21c]
call eax
mov edi, eax
mov eax, dword [0x448004]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x70]
sub esp, 0x10
mov dword [ebp - 0x218], eax
mov eax, 0x35b
call fcn.00406da0
mov edx, dword [ebp - 0x218]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
test edx, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.004077c0
mov ecx, ebx
mov edx, 0x41c368
mov eax, str.filesystem3_test
call fcn.00406a80
mov edx, str.src1
mov ecx, ebx
mov eax, ebx
call fcn.00406a80
mov eax, 0x35e
call fcn.00406da0
mov edx, dword [ebp - 0x220]
test edx, edx
je 0x40add0
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x40aa4f
mov eax, ebx
call fcn.00406dc0
mov edx, eax
mov dword [ebp - 0x218], edx
mov dword [esp], ebx
mov eax, dword [ebp - 0x228]
call eax
mov edx, dword [ebp - 0x218]
sub esp, 4
cmp eax, 0xffffffff
setne al
mov dword [esp + 8], edx
movzx eax, al
mov dword [esp + 4], str._s_directory_doesnt_exist_n
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [0x448004]
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x60]
sub esp, 0xc
mov dword [ebp - 0x218], eax
mov eax, 0x362
call fcn.00406da0
mov edx, dword [ebp - 0x218]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
test edx, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [0x448004]
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp], eax
call dword [edx + 0x70]
sub esp, 0x10
mov dword [ebp - 0x218], eax
mov eax, 0x365
call fcn.00406da0
mov edx, dword [ebp - 0x218]
xor eax, eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
cmp edx, 0x800a004c
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.004077c0
mov ecx, ebx
mov edx, str.src1
mov eax, str.filesystem3_test
call fcn.00406a80
mov dword [esp], edi
mov eax, dword [ebp - 0x224]
call eax
sub esp, 4
mov dword [esp], ebx
mov eax, dword [ebp - 0x21c]
call eax
mov ecx, ebx
mov edx, str.src1
sub esp, 4
mov edi, eax
mov eax, ebx
call fcn.00406a80
mov eax, 0x36b
call fcn.00406da0
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x40adb0
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x40aba3
mov eax, ebx
call fcn.00406dc0
mov edx, eax
mov dword [ebp - 0x218], edx
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov eax, dword [ebp - 0x230]
call eax
sub esp, 0x1c
mov ebx, eax
mov dword [esp], eax
mov eax, dword [ebp - 0x22c]
call eax
mov edx, dword [ebp - 0x218]
xor eax, eax
sub esp, 4
cmp ebx, 0xffffffff
setne al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.cant_create__s_file_n
call fcn.004077c0
mov eax, dword [0x448004]
mov edx, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp + 0xc], 0
mov dword [esp], eax
call dword [edx + 0x70]
sub esp, 0x10
mov ebx, eax
mov eax, 0x36d
call fcn.00406da0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [0x448004]
mov edx, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp + 0xc], 0
mov dword [esp], eax
call dword [edx + 0x70]
sub esp, 0x10
mov ebx, eax
mov eax, 0x370
call fcn.00406da0
xor eax, eax
cmp ebx, 0x800a003a
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004077c0
mov eax, dword [0x448004]
mov edx, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp], eax
call dword [edx + 0x70]
sub esp, 0x10
mov ebx, eax
mov eax, 0x373
call fcn.00406da0
xor eax, eax
test ebx, ebx
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004077c0
mov dword [esp], edi
mov edi, dword [ebp - 0x224]
call edi
sub esp, 4
mov dword [esp], esi
call edi
sub esp, 4
mov dword [esp], str.filesystem3_test
mov eax, dword [ebp - 0x21c]
call eax
mov ebx, eax
mov eax, dword [0x448004]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [edx + 0x60]
sub esp, 0xc
mov esi, eax
mov eax, 0x379
call fcn.00406da0
xor eax, eax
test esi, esi
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.Unexpected_hr__lx._n
mov dword [esp], eax
call fcn.004077c0
mov dword [esp], ebx
call edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00406a40
mov edi, eax
jmp 0x40a7b3
mov eax, 0x31e
call fcn.00406da0
mov dword [esp], str.cant_create_temporary_directory_n
call fcn.004072e0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00406a40
mov edx, eax
jmp 0x40aba3
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00406a40
mov edx, eax
jmp 0x40aa4f
movzx edx, bx
mov dword [esp + 4], edx
mov dword [ebp - 0x234], edx
mov dword [esp], str._04x
call fcn.00406a40
mov dword [esp], ebx
mov esi, eax
mov eax, dword [ebp - 0x228]
call eax
sub esp, 4
cmp eax, 0xffffffff
setne al
mov dword [esp + 8], esi
movzx eax, al
mov dword [esp + 4], str._s_directory_doesnt_exist_n
mov dword [esp], eax
call fcn.004077c0
mov eax, 0x352
call fcn.00406da0
mov edx, dword [ebp - 0x234]
mov dword [esp], str._04x
mov dword [esp + 4], edx
call fcn.00406a40
mov esi, eax
jmp 0x40a923