Function at 0x40af60
Capabilities:
Create directory
Delete file
Move file
Print debug messages
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x4020]
mov eax, 0x4020
call fcn.0043b5f0
push 0xffffffffffffffff
push 0x455806
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x46d750]
xor eax, ebp
mov dword [ebp + 0x401c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
call dword [0x46eaf4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x4028]
xor edi, edi
xor ebx, ebx
cmp eax, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x4c], fcn.004147a0
mov dword [ebp - 0x48], fcn.004147c0
mov dword [ebp - 0x64], fcn.004147a0
mov dword [ebp - 0x60], fcn.004147c0
jne 0x40afe1
xor eax, eax
jmp 0x40b02b
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x40b027
lea edi, [eax + eax]
mov eax, edi
call fcn.00440090
mov esi, esp
test esi, esi
je 0x40b027
mov eax, dword [ebp + 0x4028]
mov ecx, dword [ebp - 0x3c]
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push ecx
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40b029
xor eax, eax
xor edi, edi
push eax
lea edx, [ebp - 0x80]
push edx
call fcn.00414810
add esp, 8
test eax, eax
je 0x40b05d
mov dword [ebp - 0x3c], str.Can_not_open_input_file
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x38]
call fcn.0043920e
push 0x467390
lea ecx, [ebp - 0x38]
push ecx
call fcn.0043b69a
lea edx, [ebp - 0x88]
push edx
call fcn.00414aa0
lea eax, [ebp]
push edi
push eax
call fcn.00414cb0
lea edx, [ebp]
lea ecx, [ebp - 0x88]
push edx
mov dword [ebp + 0x10], ecx
call fcn.00414ce0
add esp, 0x10
call fcn.00414d10
lea eax, [ebp - 0xd8]
push eax
call fcn.00415080
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp]
push eax
lea ecx, [ebp - 0xd8]
push ecx
call fcn.004170e0
mov esi, eax
add esp, 0x14
cmp esi, edi
mov dword [ebp - 0x1c], esi
jne 0x40b50f
cmp dword [ebp - 0xbc], edi
mov dword [ebp - 0x74], 0xffffffff
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x20], edi
jbe 0x40b4fe
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], ebx
jmp 0x40b0f0
mov edx, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x20]
xor eax, eax
push eax
add ecx, edx
lea edx, [ebp - 0xd8]
push edi
push edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x18], ecx
call fcn.004164f0
mov esi, eax
add esp, 0xc
cmp esi, dword [ebp - 0x24]
jbe 0x40b144
push ebx
push 0
call fcn.004147c0
lea eax, [esi + esi]
push eax
push 0
mov dword [ebp - 0x24], esi
call fcn.004147a0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x40b5c2
push ebx
lea ecx, [ebp - 0xd8]
push edi
push ecx
call fcn.004164f0
add esp, 0xc
cmp dword [ebp - 0x1c], 0
jne 0x40b4fe
mov edx, dword [ebp - 0x18]
cmp byte [edx + 0x19], 0
jne 0x40b1a6
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x74]
push eax
push ecx
lea edx, [ebp]
push edx
lea eax, [ebp - 0xd8]
push eax
call fcn.00417120
add esp, 0x28
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x40b4fe
xor edi, edi
cmp word [ebx], di
je 0x40b1d6
mov esi, ebx
nop
cmp word [esi], 0x2f
jne 0x40b1c9
push 0
push ebx
mov word [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [esi], 0x5c
add edi, 1
cmp word [ebx + edi*2], 0
lea esi, [ebx + edi*2]
jne 0x40b1b0
mov ecx, dword [ebp - 0x18]
cmp byte [ecx + 0x19], 0
jne 0x40b47a
lea edx, [ebp - 0x50]
push ebx
push edx
call fcn.00414870
add esp, 8
test eax, eax
je 0x40b485
call fcn.00423381
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b62a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
mov ecx, dword [0x471c0c]
push ebx
push ecx
lea edx, [ebp - 0x18]
push 0x45f820
push edx
call fcn.00404fb0
add esp, 0x10
push ebx
lea ecx, [ebp - 0x14]
call fcn.00402310
push str..old
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x78]
push ecx
mov byte [ebp - 4], 3
call fcn.00401dd0
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b282
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str..old
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x7c]
push edx
call fcn.00401dd0
mov eax, dword [eax]
add esp, 0xc
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov esi, eax
mov eax, dword [ebp - 0x7c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b2c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40b3f9
lea ecx, [ebp - 0x10]
push str.Try_rename_file:
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401eb0
push str._to:
push eax
lea edx, [ebp - 0x6c]
push edx
mov byte [ebp - 4], 4
call fcn.00401dd0
lea ecx, [ebp - 0x14]
push ecx
push eax
lea edx, [ebp - 0x68]
push edx
mov byte [ebp - 4], 5
call fcn.00413f20
push str..old_successful__n
push eax
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 6
call fcn.00401dd0
mov eax, dword [eax]
add esp, 0x2c
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b341
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x68]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b364
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x6c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b387
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b3aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b3cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40b0f0
cmp dword [0x471c40], 0
mov esi, dword [ebp - 0x18]
jne 0x40b422
mov ecx, dword [0x471ac4]
push 0x216
push 0x45f8f4
push esi
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 0xb
jne 0x40b442
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0xbc]
jae 0x40b5ce
add dword [ebp - 0x28], 0x20
mov eax, 1
add dword [ebp - 0x20], eax
add dword [ebp - 0x2c], eax
jmp 0x40b44b
cmp eax, 0xa
jne 0x40b61a
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b46e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
lea eax, [esi - 0x10]
jmp 0x40b3d7
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40b4e1
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x54]
lea edx, [ebp - 0x58]
push edx
add ecx, eax
push ecx
lea edx, [ebp - 0x50]
push edx
call fcn.00414940
add esp, 0xc
test eax, eax
jne 0x40b6da
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x40]
jne 0x40b6da
lea ecx, [ebp - 0x50]
push ecx
call fcn.00414890
add esp, 4
test eax, eax
jne 0x40b6b9
mov edx, dword [ebp - 0x18]
cmp byte [edx + 0x1d], al
je 0x40b4e1
mov eax, edx
mov ecx, dword [eax + 0x14]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x28], 0x20
add dword [ebp - 0x2c], 1
add eax, 1
cmp eax, dword [ebp - 0xbc]
mov dword [ebp - 0x20], eax
jb 0x40b0f0
mov edx, dword [ebp - 0x44]
push edx
lea eax, [ebp - 0x4c]
push eax
call dword [ebp - 0x48]
mov esi, dword [ebp - 0x1c]
add esp, 8
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0xd8]
push edx
call fcn.004150b0
push ebx
push 0
call fcn.004147c0
lea eax, [ebp - 0x80]
push eax
call fcn.00414890
add esp, 0x14
test esi, esi
jne 0x40b6e9
push str._nEverything_is_Ok__Decode7z_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x4028]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b56c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x402c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b595
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
lea esp, [ebp - 0xe8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x401c]
xor ecx, ebp
call fcn.00438dc7
add ebp, 0x4020
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x1c], 2
jmp 0x40b4fe
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b5f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b4fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40b4fe
call fcn.00423381
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b634
push 0x80004005
call fcn.00402160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 7
mov ecx, dword [0x471c0c]
push ebx
push ecx
lea edx, [ebp - 0x24]
push str.Can_not_open_output_file_:__s_s__Decode7z
push edx
call fcn.00404fb0
mov edi, dword [ebp - 0x24]
xor esi, esi
add esp, 0x10
cmp edi, esi
jne 0x40b66e
mov dword [ebp - 0x1c], esi
jmp 0x40b69f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x40b684
mov dword [ebp - 0x1c], esi
jmp 0x40b69f
lea esi, [eax + eax]
mov eax, esi
call fcn.00440090
mov ecx, dword [ebp - 0x3c]
mov eax, esp
push ecx
push esi
push edi
push eax
call fcn.00408150
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x38]
call fcn.0043920e
push 0x467390
lea eax, [ebp - 0x38]
push eax
call fcn.0043b69a
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], str.Can_not_close_output_file__Decode7z
call fcn.0043920e
push 0x467390
lea edx, [ebp - 0x38]
push edx
call fcn.0043b69a
mov dword [ebp - 0x10], str.Can_not_write_output_file__Decode7z
lea eax, [ebp - 0x10]
jmp 0x40b046
cmp esi, 4
jne 0x40b70f
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], str.Decoder_doesnt_support_this_archive__Decode7z
call fcn.0043920e
push 0x467390
lea edx, [ebp - 0x38]
push edx
jmp 0x40b058
cmp esi, 2
jne 0x40b723
mov dword [ebp - 0x10], str.Can_not_allocate_memory__Decode7z
lea eax, [ebp - 0x10]
jmp 0x40b046
cmp esi, 3
jne 0x40b749
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], str.CRC_error__Decode7z
call fcn.0043920e
push 0x467390
lea eax, [ebp - 0x38]
push eax
jmp 0x40b058
push esi
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], str._nERROR__Decode7z_d_n
call fcn.0043925c
push 0x467390
lea edx, [ebp - 0x38]
push edx
jmp 0x40b058