Function at 0x40b330
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.0043c680
push 0xffffffffffffffff
push 0x456aa6
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 [0x46fb44]
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.00414f10
mov dword [ebp - 0x48], fcn.00414f30
mov dword [ebp - 0x64], fcn.00414f10
mov dword [ebp - 0x60], fcn.00414f30
jne 0x40b3b1
xor eax, eax
jmp 0x40b3fb
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x40b3f7
lea edi, [eax + eax]
mov eax, edi
call fcn.004411d0
mov esi, esp
test esi, esi
je 0x40b3f7
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 0x40b3f9
xor eax, eax
xor edi, edi
push eax
lea edx, [ebp - 0x80]
push edx
call fcn.00414f80
add esp, 8
test eax, eax
je 0x40b42d
mov dword [ebp - 0x3c], str.Can_not_open_input_file
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x38]
call fcn.0043a782
push 0x468880
lea ecx, [ebp - 0x38]
push ecx
call fcn.0043e4e2
lea edx, [ebp - 0x88]
push edx
call fcn.00415210
lea eax, [ebp]
push edi
push eax
call fcn.00415420
lea edx, [ebp]
lea ecx, [ebp - 0x88]
push edx
mov dword [ebp + 0x10], ecx
call fcn.00415450
add esp, 0x10
call fcn.00415480
lea eax, [ebp - 0xd8]
push eax
call fcn.004157f0
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.00417850
mov esi, eax
add esp, 0x14
cmp esi, edi
mov dword [ebp - 0x1c], esi
jne 0x40b8df
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 0x40b8ce
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], ebx
jmp 0x40b4c0
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.00416c60
mov esi, eax
add esp, 0xc
cmp esi, dword [ebp - 0x24]
jbe 0x40b514
push ebx
push 0
call fcn.00414f30
lea eax, [esi + esi]
push eax
push 0
mov dword [ebp - 0x24], esi
call fcn.00414f10
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x40b992
push ebx
lea ecx, [ebp - 0xd8]
push edi
push ecx
call fcn.00416c60
add esp, 0xc
cmp dword [ebp - 0x1c], 0
jne 0x40b8ce
mov edx, dword [ebp - 0x18]
cmp byte [edx + 0x19], 0
jne 0x40b576
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.00417890
add esp, 0x28
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x40b8ce
xor edi, edi
cmp word [ebx], di
je 0x40b5a6
mov esi, ebx
nop
cmp word [esi], 0x2f
jne 0x40b599
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 0x40b580
mov ecx, dword [ebp - 0x18]
cmp byte [ecx + 0x19], 0
jne 0x40b84a
lea edx, [ebp - 0x50]
push ebx
push edx
call fcn.00414fe0
add esp, 8
test eax, eax
je 0x40b855
call fcn.00421a7e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b9fa
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 [0x472c94]
push ebx
push ecx
lea edx, [ebp - 0x18]
push 0x460af0
push edx
call fcn.00401700
add esp, 0x10
push ebx
lea ecx, [ebp - 0x14]
call fcn.00402500
push str..old
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x78]
push ecx
mov byte [ebp - 4], 3
call fcn.004021d0
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 0x40b652
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.004021d0
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 0x40b695
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40b7c9
lea ecx, [ebp - 0x10]
push str.Try_rename_file:
push ecx
lea ecx, [ebp - 0x14]
call fcn.004022b0
push str._to:
push eax
lea edx, [ebp - 0x6c]
push edx
mov byte [ebp - 4], 4
call fcn.004021d0
lea ecx, [ebp - 0x14]
push ecx
push eax
lea edx, [ebp - 0x68]
push edx
mov byte [ebp - 4], 5
call fcn.004147b0
push str..old_successful__n
push eax
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 6
call fcn.004021d0
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 0x40b711
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 0x40b734
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 0x40b757
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 0x40b77a
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 0x40b79d
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 0x40b4c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40b4c0
cmp dword [0x472cc8], 0
mov esi, dword [ebp - 0x18]
jne 0x40b7f2
mov ecx, dword [0x472b4c]
push 0x216
push 0x460bc4
push esi
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 0xb
jne 0x40b812
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0xbc]
jae 0x40b99e
add dword [ebp - 0x28], 0x20
mov eax, 1
add dword [ebp - 0x20], eax
add dword [ebp - 0x2c], eax
jmp 0x40b81b
cmp eax, 0xa
jne 0x40b9ea
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 0x40b83e
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 0x40b7a7
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40b8b1
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.004150b0
add esp, 0xc
test eax, eax
jne 0x40baaa
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x40]
jne 0x40baaa
lea ecx, [ebp - 0x50]
push ecx
call fcn.00415000
add esp, 4
test eax, eax
jne 0x40ba89
mov edx, dword [ebp - 0x18]
cmp byte [edx + 0x1d], al
je 0x40b8b1
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 0x40b4c0
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.00415820
push ebx
push 0
call fcn.00414f30
lea eax, [ebp - 0x80]
push eax
call fcn.00415000
add esp, 0x14
test esi, esi
jne 0x40bab9
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 0x40b93c
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 0x40b965
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.00439e3e
add ebp, 0x4020
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x1c], 2
jmp 0x40b8ce
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 0x40b9c1
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 0x40b8ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40b8ce
call fcn.00421a7e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ba04
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 [0x472c94]
push ebx
push ecx
lea edx, [ebp - 0x24]
push str.Can_not_open_output_file_:__s_s__Decode7z
push edx
call fcn.00401700
mov edi, dword [ebp - 0x24]
xor esi, esi
add esp, 0x10
cmp edi, esi
jne 0x40ba3e
mov dword [ebp - 0x1c], esi
jmp 0x40ba6f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x40ba54
mov dword [ebp - 0x1c], esi
jmp 0x40ba6f
lea esi, [eax + eax]
mov eax, esi
call fcn.004411d0
mov ecx, dword [ebp - 0x3c]
mov eax, esp
push ecx
push esi
push edi
push eax
call fcn.00408520
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x38]
call fcn.0043a782
push 0x468880
lea eax, [ebp - 0x38]
push eax
call fcn.0043e4e2
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], str.Can_not_close_output_file__Decode7z
call fcn.0043a782
push 0x468880
lea edx, [ebp - 0x38]
push edx
call fcn.0043e4e2
mov dword [ebp - 0x10], str.Can_not_write_output_file__Decode7z
lea eax, [ebp - 0x10]
jmp 0x40b416
cmp esi, 4
jne 0x40badf
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], str.Decoder_doesnt_support_this_archive__Decode7z
call fcn.0043a782
push 0x468880
lea edx, [ebp - 0x38]
push edx
jmp 0x40b428
cmp esi, 2
jne 0x40baf3
mov dword [ebp - 0x10], str.Can_not_allocate_memory__Decode7z
lea eax, [ebp - 0x10]
jmp 0x40b416
cmp esi, 3
jne 0x40bb19
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], str.CRC_error__Decode7z
call fcn.0043a782
push 0x468880
lea eax, [ebp - 0x38]
push eax
jmp 0x40b428
push esi
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], str._nERROR__Decode7z_d_n
call fcn.0043a7d0
push 0x468880
lea edx, [ebp - 0x38]
push edx
jmp 0x40b428