Function at 0x4070a0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x48c8
call fcn.00408930
mov eax, dword [0x415060]
xor eax, esp
mov dword [esp + 0x48c4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x1fe
lea eax, [esp + 0x46d6]
push ebx
push eax
mov edi, ecx
mov esi, edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x44], ebx
mov word [esp + 0x46dc], bx
call fcn.00408150
push 0x1fe
lea ecx, [esp + 0x42e2]
push ebx
push ecx
mov word [esp + 0x42e8], bx
call fcn.00408150
push 0x1fe
lea edx, [esp + 0x44ee]
push ebx
push edx
mov word [esp + 0x44f4], bx
call fcn.00408150
push esi
lea eax, [esp + 0x42f8]
push 0x412544
push eax
mov edx, 0x100
call fcn.00406da0
push edi
push esi
lea ecx, [esp + 0x4508]
push str._s_s
push ecx
mov edx, 0x100
call fcn.00406da0
add esp, 0x40
mov esi, 0x100
lea edi, [esp + 0x46d0]
mov dword [esp + 0x24], fcn.00401000
mov dword [esp + 0x28], fcn.00401020
mov dword [esp + 0x44], fcn.00401000
mov dword [esp + 0x48], fcn.00401020
call fcn.00406de0
test eax, eax
je 0x4071b2
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str._nERROR:
call esi
push str.can_not_get_module_path_
call esi
pop edi
pop esi
lea eax, [ebx + 0xa]
pop ebx
mov ecx, dword [esp + 0x48c4]
xor ecx, esp
call fcn.004080b5
add esp, 0x48c8
ret
lea edx, [esp + 0x44d0]
push edx
lea eax, [esp + 0x64]
push eax
call fcn.00401c40
add esp, 8
test eax, eax
je 0x4071fc
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str._nERROR:
call esi
push str.can_not_open_input_file
call esi
pop edi
pop esi
mov eax, 8
pop ebx
mov ecx, dword [esp + 0x48c4]
xor ecx, esp
call fcn.004080b5
add esp, 0x48c8
ret
lea ecx, [esp + 0x58]
push ecx
call fcn.00401ed0
lea edx, [esp + 0xb8]
push ebx
push edx
call fcn.004048f0
lea ecx, [esp + 0xc0]
lea eax, [esp + 0x64]
push ecx
mov dword [esp + 0xd4], eax
call fcn.00404920
add esp, 0x10
call fcn.004010e0
lea edx, [esp + 0x64]
push edx
call fcn.00402090
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0xc0]
push edx
lea eax, [esp + 0x74]
push eax
call fcn.004044a0
mov esi, eax
add esp, 0x14
cmp esi, ebx
mov dword [esp + 0xc], esi
jne 0x4075d3
xor edi, edi
cmp dword [esp + 0x80], ebx
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x14], edi
jbe 0x4075c2
push ebp
mov dword [esp + 0x1c], ebx
jmp 0x4072a4
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x1c]
push ebx
lea eax, [esp + 0x6c]
lea ebp, [edx + ecx]
push edi
push eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x64], ebp
call fcn.004038b0
mov esi, eax
add esp, 0xc
cmp esi, dword [esp + 0x3c]
jbe 0x4072fa
mov ecx, dword [esp + 0x14]
push ecx
push ebx
call fcn.00401020
lea edx, [esi + esi]
push edx
push ebx
mov dword [esp + 0x4c], esi
call fcn.00401000
add esp, 0x10
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x407574
mov esi, dword [esp + 0x14]
push esi
lea eax, [esp + 0x6c]
push edi
push eax
call fcn.004038b0
add esp, 0xc
cmp byte [ebp + 0x19], bl
jne 0x40735a
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x6c]
push ecx
push edi
lea edx, [esp + 0xd8]
push edx
lea eax, [esp + 0x8c]
push eax
call fcn.004044e0
add esp, 0x28
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x4075bd
mov edi, dword [esp + 0x14]
push 0x1fe
lea ecx, [esp + 0x40da]
push ebx
mov ebp, esi
push ecx
mov esi, edi
mov dword [esp + 0x3c], edi
mov word [esp + 0x40e0], bx
call fcn.00408150
add esp, 0xc
xor eax, eax
jmp 0x407390
movzx ecx, word [esp + eax + 0x42d4]
mov word [esp + eax + 0x40d4], cx
add eax, 2
cmp cx, bx
jne 0x407390
cmp word [edi], bx
mov dword [esp + 0x34], ebx
je 0x407482
mov eax, edi
jmp 0x4073c0
cmp word [ebp], 0x2f
jne 0x407468
cmp dword [esp + 0x48dc], ebx
je 0x407461
mov eax, esi
mov word [ebp], bx
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4073e0
lea edi, [esp + 0x40d4]
sub eax, edx
add edi, 0xfffffffe
jmp 0x407400
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x407400
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
lea edx, [esp + 0x40d8]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407435
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [esp + 0x40d4]
mov word [ebp], 0x5c
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x407445
mov eax, dword [0x41250c]
mov dword [edi], eax
mov edi, dword [esp + 0x14]
lea esi, [ebp + 2]
jmp 0x407468
add eax, 2
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x34]
add eax, 1
mov dword [esp + 0x34], eax
lea eax, [edi + eax*2]
add ebp, 2
cmp word [eax], bx
jne 0x4073c0
mov eax, esi
mov edx, esi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407486
lea edi, [esp + 0x40d4]
sub eax, edx
add edi, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4074a0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x58]
cmp byte [esi + 0x19], bl
je 0x4074e0
push ebx
lea ecx, [esp + 0x40d8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407555
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x407555
lea edx, [esp + 0x40d4]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.00401c80
add esp, 8
test eax, eax
jne 0x40757e
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x40]
push edx
add ecx, eax
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00401d70
add esp, 0xc
test eax, eax
jne 0x4075a1
mov eax, dword [esp + 0x40]
cmp eax, dword [esp + 0x24]
jne 0x4075a1
lea ecx, [esp + 0x38]
push ecx
call fcn.00401cc0
add esp, 4
test eax, eax
jne 0x407592
cmp byte [esi + 0x1d], bl
je 0x407555
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x18]
add dword [esp + 0x1c], 0x20
add eax, 1
cmp eax, dword [esp + 0x84]
mov dword [esp + 0x18], eax
jb 0x4072a0
jmp 0x4075bd
mov dword [esp + 0x10], 2
jmp 0x4075bd
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str._nERROR:
call esi
push str.can_not_open_output_file
jmp 0x4075b3
push str.can_not_close_output_file
call fcn.00406dc0
add esp, 4
jmp 0x4075b5
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str._nERROR:
call esi
push str.can_not_write_output_file
call esi
mov dword [esp + 0x10], 0xb
mov esi, dword [esp + 0x10]
pop ebp
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call dword [esp + 0x30]
add esp, 8
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x68]
push ecx
call fcn.004020d0
mov edx, dword [esp + 0x18]
push edx
push ebx
call fcn.00401020
lea eax, [esp + 0x70]
push eax
call fcn.00401cc0
add esp, 0x14
cmp esi, ebx
jne 0x407625
push str.Everything_is_Ok_n
call fcn.00408861
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x48c4]
xor ecx, esp
call fcn.004080b5
add esp, 0x48c8
ret
cmp esi, 4
jne 0x407640
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str._nERROR:
call edi
push str.decoder_doesnt_support_this_archive
call edi
jmp 0x407684
cmp esi, 2
jne 0x40765b
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str._nERROR:
call edi
push str.can_not_allocate_memory
call edi
jmp 0x407684
cmp esi, 3
jne 0x407676
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str._nERROR:
call edi
push str.CRC_error
call edi
jmp 0x407684
push esi
push str._nERROR__d_n
call fcn.00408861
add esp, 8
mov ecx, dword [esp + 0x48d0]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004080b5
add esp, 0x48c8
ret