Function at 0x40b090
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.0043c4e0
push 0xffffffffffffffff
push 0x456926
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x46e780]
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 [0x46fb34]
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.00414d80
mov dword [ebp - 0x48], fcn.00414da0
mov dword [ebp - 0x64], fcn.00414d80
mov dword [ebp - 0x60], fcn.00414da0
jne 0x40b111
xor eax, eax
jmp 0x40b15b
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x40b157
lea edi, [eax + eax]
mov eax, edi
call fcn.00441030
mov esi, esp
test esi, esi
je 0x40b157
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 0x40b159
xor eax, eax
xor edi, edi
push eax
lea edx, [ebp - 0x80]
push edx
call fcn.00414df0
add esp, 8
test eax, eax
je 0x40b18d
mov dword [ebp - 0x3c], str.Can_not_open_input_file
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x38]
call fcn.0043b4a4
push 0x4686c8
lea ecx, [ebp - 0x38]
push ecx
call fcn.0043e342
lea edx, [ebp - 0x88]
push edx
call fcn.00415080
lea eax, [ebp]
push edi
push eax
call fcn.00415290
lea edx, [ebp]
lea ecx, [ebp - 0x88]
push edx
mov dword [ebp + 0x10], ecx
call fcn.004152c0
add esp, 0x10
call fcn.004152f0
lea eax, [ebp - 0xd8]
push eax
call fcn.00415660
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.004176c0
mov esi, eax
add esp, 0x14
cmp esi, edi
mov dword [ebp - 0x1c], esi
jne 0x40b63f
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 0x40b62e
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], ebx
jmp 0x40b220
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.00416ad0
mov esi, eax
add esp, 0xc
cmp esi, dword [ebp - 0x24]
jbe 0x40b274
push ebx
push 0
call fcn.00414da0
lea eax, [esi + esi]
push eax
push 0
mov dword [ebp - 0x24], esi
call fcn.00414d80
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x40b6f2
push ebx
lea ecx, [ebp - 0xd8]
push edi
push ecx
call fcn.00416ad0
add esp, 0xc
cmp dword [ebp - 0x1c], 0
jne 0x40b62e
mov edx, dword [ebp - 0x18]
cmp byte [edx + 0x19], 0
jne 0x40b2d6
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.00417700
add esp, 0x28
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x40b62e
xor edi, edi
cmp word [ebx], di
je 0x40b306
mov esi, ebx
nop
cmp word [esi], 0x2f
jne 0x40b2f9
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 0x40b2e0
mov ecx, dword [ebp - 0x18]
cmp byte [ecx + 0x19], 0
jne 0x40b5aa
lea edx, [ebp - 0x50]
push ebx
push edx
call fcn.00414e50
add esp, 8
test eax, eax
je 0x40b5b5
call fcn.0042190e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b75a
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 [0x472c6c]
push ebx
push ecx
lea edx, [ebp - 0x18]
push 0x460930
push edx
call fcn.004016e0
add esp, 0x10
push ebx
lea ecx, [ebp - 0x14]
call fcn.004024e0
push str..old
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x78]
push ecx
mov byte [ebp - 4], 3
call fcn.004021b0
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 0x40b3b2
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.004021b0
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 0x40b3f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40b529
lea ecx, [ebp - 0x10]
push str.Try_rename_file:
push ecx
lea ecx, [ebp - 0x14]
call fcn.00402290
push str._to:
push eax
lea edx, [ebp - 0x6c]
push edx
mov byte [ebp - 4], 4
call fcn.004021b0
lea ecx, [ebp - 0x14]
push ecx
push eax
lea edx, [ebp - 0x68]
push edx
mov byte [ebp - 4], 5
call fcn.00414500
push str..old_successful__n
push eax
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 6
call fcn.004021b0
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 0x40b471
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 0x40b494
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 0x40b4b7
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 0x40b4da
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 0x40b4fd
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 0x40b220
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40b220
cmp dword [0x472ca0], 0
mov esi, dword [ebp - 0x18]
jne 0x40b552
mov ecx, dword [0x472b24]
push 0x216
push 0x460a04
push esi
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 0xb
jne 0x40b572
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0xbc]
jae 0x40b6fe
add dword [ebp - 0x28], 0x20
mov eax, 1
add dword [ebp - 0x20], eax
add dword [ebp - 0x2c], eax
jmp 0x40b57b
cmp eax, 0xa
jne 0x40b74a
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 0x40b59e
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 0x40b507
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40b611
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.00414f20
add esp, 0xc
test eax, eax
jne 0x40b80a
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x40]
jne 0x40b80a
lea ecx, [ebp - 0x50]
push ecx
call fcn.00414e70
add esp, 4
test eax, eax
jne 0x40b7e9
mov edx, dword [ebp - 0x18]
cmp byte [edx + 0x1d], al
je 0x40b611
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 0x40b220
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.00415690
push ebx
push 0
call fcn.00414da0
lea eax, [ebp - 0x80]
push eax
call fcn.00414e70
add esp, 0x14
test esi, esi
jne 0x40b819
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 0x40b69c
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 0x40b6c5
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.00439c98
add ebp, 0x4020
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x1c], 2
jmp 0x40b62e
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 0x40b721
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 0x40b62e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40b62e
call fcn.0042190e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b764
push 0x80004005
call fcn.00401350
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 [0x472c6c]
push ebx
push ecx
lea edx, [ebp - 0x24]
push str.Can_not_open_output_file_:__s_s__Decode7z
push edx
call fcn.004016e0
mov edi, dword [ebp - 0x24]
xor esi, esi
add esp, 0x10
cmp edi, esi
jne 0x40b79e
mov dword [ebp - 0x1c], esi
jmp 0x40b7cf
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x40b7b4
mov dword [ebp - 0x1c], esi
jmp 0x40b7cf
lea esi, [eax + eax]
mov eax, esi
call fcn.00441030
mov ecx, dword [ebp - 0x3c]
mov eax, esp
push ecx
push esi
push edi
push eax
call fcn.00408280
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x38]
call fcn.0043b4a4
push 0x4686c8
lea eax, [ebp - 0x38]
push eax
call fcn.0043e342
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], str.Can_not_close_output_file__Decode7z
call fcn.0043b4a4
push 0x4686c8
lea edx, [ebp - 0x38]
push edx
call fcn.0043e342
mov dword [ebp - 0x10], str.Can_not_write_output_file__Decode7z
lea eax, [ebp - 0x10]
jmp 0x40b176
cmp esi, 4
jne 0x40b83f
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], str.Decoder_doesnt_support_this_archive__Decode7z
call fcn.0043b4a4
push 0x4686c8
lea edx, [ebp - 0x38]
push edx
jmp 0x40b188
cmp esi, 2
jne 0x40b853
mov dword [ebp - 0x10], str.Can_not_allocate_memory__Decode7z
lea eax, [ebp - 0x10]
jmp 0x40b176
cmp esi, 3
jne 0x40b879
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], str.CRC_error__Decode7z
call fcn.0043b4a4
push 0x4686c8
lea eax, [ebp - 0x38]
push eax
jmp 0x40b188
push esi
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], str._nERROR__Decode7z_d_n
call fcn.0043b4f2
push 0x4686c8
lea edx, [ebp - 0x38]
push edx
jmp 0x40b188