Function at 0x4013d0
Capabilities:
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x44d4
call fcn.005658d0
mov eax, dword [0x5e5c10]
xor eax, esp
mov dword [esp + 0x44d0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
xor ebx, ebx
push eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x58], esi
mov dword [esp + 0x2c], 0x401ef0
mov dword [esp + 0x30], 0x401f10
mov dword [esp + 0x78], 0x401ef0
mov dword [esp + 0x7c], 0x401f10
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x58], eax
cmp eax, 0xffffffff
jne 0x40145d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x40145d
push str.can_not_open_input_file
push str._nERROR:__s_n
jmp 0x401963
lea edx, [esp + 0x50]
mov dword [esp + 0x50], 0x402de0
mov dword [esp + 0x54], 0x402e10
mov dword [esp + 0xb8], 0x405560
mov dword [esp + 0xbc], 0x4055c0
mov dword [esp + 0xc0], 0x4055d0
mov dword [esp + 0xc4], 0x405630
mov dword [esp + 0xc8], edx
mov dword [esp + 0xd0], esi
mov dword [esp + 0xcc], esi
call fcn.00401f80
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x64]
lea ecx, [esp + 0x18]
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb8], esi
call fcn.00404ef0
add esp, 8
mov dword [esp + 0x2c], eax
cmp eax, esi
je 0x40154a
lea edi, [esp + 0x10]
lea eax, [esp + 0x68]
call fcn.00403000
mov eax, dword [esp + 0x2c]
mov edi, eax
mov dword [esp + 0x18], edi
cmp eax, esi
jne 0x40184e
xor edx, edx
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x30], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x28], edx
cmp dword [esp + 0x84], esi
jbe 0x401839
mov dword [esp + 0x38], esi
nop
mov eax, dword [esp + 0xa8]
mov edi, dword [eax + edx*4 + 4]
mov ecx, dword [esp + 0x38]
add ecx, dword [esp + 0x78]
sub edi, dword [eax + edx*4]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], esi
lea esi, [eax + edx*4 + 4]
mov dword [esp + 0x20], ecx
cmp edi, dword [esp + 0x3c]
jbe 0x4015e3
push ebx
call fcn.00560270
add esp, 4
mov dword [esp + 0x3c], edi
add edi, edi
je 0x4017f9
push edi
call fcn.005602aa
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x401801
mov edx, dword [esp + 0x28]
mov ebx, eax
mov eax, dword [esp + 0xa8]
mov eax, dword [eax + edx*4]
mov ecx, dword [esi]
sub ecx, eax
test ebx, ebx
je 0x40160d
mov esi, dword [esp + 0xac]
lea esi, [esi + eax*2]
test ecx, ecx
je 0x40160d
mov eax, ebx
sub esi, ebx
mov di, word [esi + eax]
mov word [eax], di
add eax, 2
dec ecx
jne 0x401600
cmp dword [esp + 0x18], 0
jne 0x401837
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x19], 0
jne 0x401669
lea ecx, [esp + 0x5c]
push ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x7c]
push ecx
push edx
lea edx, [esp + 0xd8]
push edx
lea eax, [esp + 0x8c]
call fcn.004052c0
add esp, 0x24
mov dword [esp + 0x18], eax
test eax, eax
jne 0x401837
cmp word [ebx], 0
mov dword [esp + 0x40], 0
je 0x4016b1
mov esi, ebx
lea esp, [esp]
cmp word [esi], 0x2f
jne 0x40169e
mov edi, dword [esp + 0x24]
xor eax, eax
mov ecx, ebx
mov word [esi], ax
call fcn.00401250
mov ecx, 0x5c
mov word [esi], cx
mov eax, dword [esp + 0x40]
inc eax
cmp word [ebx + eax*2], 0
lea esi, [ebx + eax*2]
mov dword [esp + 0x40], eax
jne 0x401680
mov edx, dword [esp + 0x20]
cmp byte [edx + 0x19], 0
je 0x4016cb
mov edi, dword [esp + 0x24]
mov ecx, ebx
call fcn.00401250
jmp 0x4017cc
mov edx, ebx
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x34]
call fcn.00401300
test eax, eax
jne 0x40180b
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
add eax, dword [esp + 0x30]
lea edx, [esp + 0x34]
push edx
lea edi, [esp + 0x20]
mov dword [esp + 0x20], esi
call fcn.00402cd0
add esp, 4
test eax, eax
jne 0x401819
cmp dword [esp + 0x1c], esi
jne 0x401819
mov eax, dword [esp + 0x34]
cmp eax, 0xffffffff
je 0x40173b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4017ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401812
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x1d], 0
je 0x4017c8
xor ebx, ebx
push 0x3ff
lea ecx, [esp + 0x40dd]
push ebx
push ecx
mov byte [esp + 0x40e4], bl
call fcn.005632e0
mov edx, dword [esp + 0x18]
add esp, 0xc
push edx
lea esi, [esp + 0x48]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.00401190
add esp, 4
cmp eax, ebx
jne 0x401970
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x40e0]
push str._s___s
push edx
call fcn.0055fdf6
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x14]
add esp, 0x10
push ecx
lea edx, [esp + 0x40dc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 0x5e7144
call fcn.00401f60
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x28]
add dword [esp + 0x38], 0x20
inc eax
xor esi, esi
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x84]
jae 0x401839
mov edx, eax
jmp 0x401580
mov dword [esp + 0x34], 0xffffffff
jmp 0x40173b
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], 2
jmp 0x401833
push str.can_not_open_output_file
jmp 0x40181e
push str.can_not_close_output_file
jmp 0x40181e
push str.can_not_write_output_file
push str._nERROR:__s_n
call fcn.005600ed
add esp, 8
mov dword [esp + 0x18], 0xb
mov ebx, dword [esp + 0xc]
xor esi, esi
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0x98]
push edx
lea eax, [esp + 0x14]
push eax
call dword [esp + 0x1c]
mov ecx, dword [esp + 0xa4]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [esp + 0x24]
mov eax, dword [esp + 0xb0]
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [esp + 0x2c]
mov edx, dword [esp + 0xbc]
push edx
lea eax, [esp + 0x2c]
push eax
call dword [esp + 0x34]
mov ecx, dword [esp + 0xc8]
push ecx
lea edx, [esp + 0x34]
push edx
call dword [esp + 0x3c]
mov eax, dword [esp + 0xd4]
push eax
lea ecx, [esp + 0x3c]
push ecx
call dword [esp + 0x44]
mov dword [esp + 0xdc], esi
mov dword [esp + 0xe0], esi
lea eax, [esp + 0x40]
lea esi, [esp + 0x98]
call fcn.00402f70
push ebx
call fcn.00560270
mov eax, dword [esp + 0x8c]
add esp, 0x34
cmp eax, 0xffffffff
je 0x401902
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4018fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401902
mov dword [esp + 0x58], 0xffffffff
test edi, edi
jne 0x40192a
push str._nEverything_is_Ok_n
call fcn.005600ed
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x44d0]
xor ecx, esp
call fcn.0055fd94
mov esp, ebp
pop ebp
ret
cmp edi, 4
jne 0x40193b
push str.decoder_doesnt_support_this_archive
push str._nERROR:__s_n
jmp 0x401963
cmp edi, 2
jne 0x40194c
push str.can_not_allocate_memory
push str._nERROR:__s_n
jmp 0x401963
cmp edi, 3
jne 0x40195d
push str.CRC_error
push str._nERROR:__s_n
jmp 0x401963
push edi
push str._nERROR__d_n
call fcn.005600ed
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0x44dc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055fd94
mov esp, ebp
pop ebp
ret