Function at 0x4e2e29
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf4]
sub esp, 0xf4
push 0xffffffffffffffff
push 0x65b92c
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x758f44]
xor eax, ebp
mov dword [ebp + 0xf0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54], edx
mov edi, ecx
mov eax, dword [ebp + 0xfc]
mov ecx, 0x794970
mov esi, dword [ebp + 0x100]
mov ebx, dword [ebp + 0x104]
push eax
call fcn.004591e6
push esi
call fcn.0047cb66
mov edx, edi
lea ecx, [ebp + 0x78]
call fcn.0048a63e
push dword [ebp - 0x54]
xor eax, eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], eax
mov dword [ebp - 0x50], vtable.FileUtils.0
call fcn.0048344b
test al, al
jne 0x4e2f40
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
test esi, esi
je 0x4e2f13
push str.Unknown_error_in_7zip_before_extraction
lea ecx, [ebp + 0xc0]
call fcn.0044ea89
mov byte [ebp - 4], 1
xor eax, eax
mov edi, dword [ebx + 0x24]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x20], eax
test edi, edi
je 0x4e39c7
mov esi, dword [edi]
lea eax, [ebp + 0xc0]
push eax
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x20]
push eax
call dword [0x670300]
mov ecx, edi
call dword [esi + 8]
lea ecx, [ebp + 0xc0]
call fcn.004511a7
lea ecx, [ebp + 0x78]
call fcn.004510b9
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xf0]
xor ecx, ebp
call fcn.005f9dd5
add ebp, 0xf4
leave
ret
mov ecx, dword [fcn.00542cbf]
lea edx, [ebp + 0x78]
mov eax, dword [0x6f30f4]
xor ebx, ebx
cmp dword [ebp + 0x8c], 8
mov dword [ebp - 0x34], ecx
cmovae edx, dword [ebp + 0x78]
mov dword [ebp - 0x68], ecx
lea ecx, [ebp - 0x74]
push ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x64], eax
call fcn.00542b47
pop ecx
test eax, eax
je 0x4e3018
push 4
pop ebx
mov ecx, ebx
call fcn.00488e9b
test al, al
je 0x4e2f13
push ecx
lea ecx, [ebp - 0x140]
call fcn.004506fd
mov edx, str.Failed_to_open_7z_input_file:
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x140]
call fcn.00451714
mov edx, edi
mov ecx, eax
call fcn.0045195f
sub esp, 0x18
mov ecx, 0x7026d4
mov eax, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.0046e52c
sub esp, 0x18
mov byte [ebp - 4], 3
mov eax, esp
mov dword [ebp - 0x24], esp
mov ecx, 0x7026ac
push eax
call fcn.0047ca02
sub esp, 0x18
mov byte [ebp - 4], bl
mov eax, esp
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x10], eax
push eax
call fcn.00450fef
push 0x54
pop edx
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00488e21
add esp, 0x48
lea ecx, [ebp - 0x140]
call fcn.0044ec83
jmp 0x4e2f13
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x34]
mov edi, 0x40000
mov dword [ebp - 0x7c], 0x542c8c
push edi
push eax
mov ecx, esi
mov dword [ebp - 0x78], 0x542ca9
mov dword [ebp - 0xa8], 0x542d4c
mov dword [ebp - 0xa4], 0x542daa
mov dword [ebp - 0xa0], 0x542db8
mov dword [ebp - 0x9c], 0x542e0d
mov dword [ebp - 0x8c], ebx
call dword [0x670300]
call esi
mov esi, eax
mov dword [ebp - 0x8c], esi
pop ecx
pop ecx
test esi, esi
je 0x4e3094
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x94], ebx
call fcn.00542e5c
lea ecx, [ebp - 0x1c0]
call fcn.005403ec
xor eax, eax
test esi, esi
push 2
pop edi
cmovne edi, eax
mov dword [ebp - 0x38], edi
je 0x4e30e5
push 0x4e2e05
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0xa8]
call fcn.00542592
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x38], edi
test edi, edi
je 0x4e30ed
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x1c0]
call fcn.00540427
test edi, edi
jne 0x4e38e1
or dword [ebp - 0x6c], 0xffffffff
mov esi, ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x2c], ebx
cmp dword [ebp - 0x180], ebx
jbe 0x4e38c6
push 4
pop ebx
mov dword [ebp - 0x10], 0x400000
mov eax, dword [0x79496c]
test eax, eax
sete cl
test eax, eax
je 0x4e3148
test cl, cl
jne 0x4e39c7
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x670300]
mov ecx, dword [0x79496c]
call esi
test eax, eax
jne 0x4e36a5
mov esi, dword [ebp - 0x2c]
xor ecx, ecx
mov edx, 0x80
mov eax, ecx
mov ecx, esi
and ecx, 7
mov dword [ebp - 0x20], eax
sar edx, cl
mov ecx, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x178]
shr ecx, 3
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], edx
movzx eax, byte [ecx + eax]
and eax, edx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax + esi*4 + 4]
sub ecx, dword [eax + esi*4]
mov dword [ebp - 0x3c], ecx
cmp ecx, dword [ebp - 0x60]
jbe 0x4e325c
push dword [ebp - 0x28]
lfence
call fcn.00618553
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x60], eax
add eax, eax
push eax
xor eax, eax
push eax
call fcn.00542cbf
add esp, 0xc
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x4e325f
mov ecx, ebx
call fcn.00488e9b
test al, al
je 0x4e3255
push ecx
lea ecx, [ebp - 0x140]
call fcn.004506fd
mov edx, str.SZ_ERROR_MEM_happened.
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x140]
call fcn.00451714
sub esp, 0x18
mov ecx, 0x7026d4
mov eax, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.0046e52c
sub esp, 0x18
mov byte [ebp - 4], 6
mov eax, esp
mov dword [ebp - 0x24], esp
mov ecx, 0x7026ac
push eax
call fcn.0047ca02
sub esp, 0x18
mov byte [ebp - 4], 7
mov eax, esp
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x10], eax
push eax
call fcn.00450fef
mov edx, 0x91
mov byte [ebp - 4], 5
mov ecx, ebx
call fcn.00488e21
add esp, 0x48
lea ecx, [ebp - 0x140]
xor eax, eax
mov byte [ebp - 4], al
call fcn.0044ec83
push 2
jmp 0x4e36a7
mov eax, dword [ebp - 0x28]
push eax
mov edx, esi
lea ecx, [ebp - 0x1c0]
call fcn.00542b0f
cmp dword [ebp - 0x44], 0
pop ecx
jne 0x4e32d3
push ecx
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
lea edx, [ebp - 0xa8]
lea ecx, [ebp - 0x1c0]
call fcn.00542964
mov edi, eax
add esp, 0x24
cmp dword [0x794994], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x4c], eax
je 0x4e32c5
push eax
mov ecx, 0x794970
call fcn.0045926d
test edi, edi
jne 0x4e36ad
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x28]
lea ecx, [ebp + 0xa8]
call fcn.0044eb76
push 0x6fa4f4
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 0xb
call fcn.0044ea89
mov edx, dword [ebp - 0x54]
lea eax, [ebp + 0x30]
push eax
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0xc
call fcn.004516c9
pop ecx
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp]
call fcn.0048a63e
mov byte [ebp - 4], 0xe
lea ecx, [ebp + 0xa8]
cmp dword [ebp + 0xbc], 8
push dword [ebp + 0xb8]
cmovae ecx, dword [ebp + 0xa8]
push ecx
mov ecx, eax
call fcn.004510e7
push eax
lea ecx, [ebp + 0xd8]
call fcn.00450b08
lea ecx, [ebp]
call fcn.004510b9
lea ecx, [ebp + 0x18]
call fcn.004511a7
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 0x12
call fcn.004511a7
mov ecx, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x1c], eax
movzx eax, word [ecx]
mov edx, eax
mov dword [ebp - 0x3c], edx
test ax, ax
je 0x4e3480
mov ebx, dword [ebp - 0x1c]
mov edx, ecx
mov edi, dword [ebp - 0x54]
mov dword [ebp - 0x14], edx
movzx esi, ax
cmp si, 0x2f
jne 0x4e3462
xor eax, eax
mov dword [ebp - 0x84], ecx
mov word [edx], ax
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4e33a3
sub ecx, edx
lea edx, [ebp - 0x84]
sar ecx, 1
mov dword [ebp - 0x80], ecx
lea ecx, [ebp + 0xc0]
call fcn.0048a47c
push 0x6fa4f4
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 0x13
call fcn.0044ea89
lea eax, [ebp + 0x48]
mov byte [ebp - 4], 0x14
push eax
mov edx, edi
lea ecx, [ebp + 0x90]
call fcn.004516c9
pop ecx
mov byte [ebp - 4], 0x15
lea ecx, [ebp + 0xc0]
cmp dword [ebp + 0xd4], 0x10
push dword [ebp + 0xd0]
cmovae ecx, dword [ebp + 0xc0]
push ecx
mov ecx, eax
call fcn.00451215
push eax
lea ecx, [ebp + 0x60]
call fcn.00450be4
lea ecx, [ebp + 0x90]
call fcn.004511a7
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 0x18
call fcn.004511a7
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp - 0x50]
call fcn.0048344b
mov eax, dword [ebp - 0x14]
push 0x5c
pop ecx
mov word [eax], cx
lea ecx, [ebp + 0x60]
call fcn.004511a7
lea ecx, [ebp + 0xc0]
mov byte [ebp - 4], 0x12
call fcn.004511a7
mov ecx, dword [ebp - 0x28]
inc ebx
lea edx, [ecx + ebx*2]
movzx eax, word [edx]
mov dword [ebp - 0x14], edx
mov esi, eax
test ax, ax
jne 0x4e3389
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp - 0x2c]
push 4
pop ebx
cmp dword [ebp - 0x44], 0
lea eax, [ebp + 0xd8]
je 0x4e34d1
cmp dword [ebp + 0xec], 8
lea edx, [ebp - 0x5c]
lea ecx, [ebp + 0x90]
cmovae eax, dword [ebp + 0xd8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0xe8]
mov dword [ebp - 0x58], eax
call fcn.0048a47c
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x19
call fcn.0048344b
lea ecx, [ebp + 0x90]
call fcn.004511a7
jmp 0x4e3675
cmp dword [ebp + 0xec], 8
lea ecx, [ebp + 0xc0]
cmovae eax, dword [ebp + 0xd8]
push eax
call fcn.0044eb76
cmp dword [ebp + 0xd4], 8
lea edx, [ebp + 0xc0]
push 1
cmovae edx, dword [ebp + 0xc0]
lea ecx, [ebp - 0x40]
call fcn.00542b47
pop ecx
lea ecx, [ebp + 0xc0]
mov esi, eax
call fcn.004510b9
test esi, esi
jne 0x4e37cd
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], ecx
test esi, esi
je 0x4e3629
xor edx, edx
mov dword [ebp - 0x14], edx
push edx
mov dword [ebp - 0x20], edx
cmp esi, 0x400000
lea edx, [ebp - 0x20]
mov eax, esi
cmova eax, dword [ebp - 0x10]
push edx
push eax
push ecx
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [ebp - 0x20]
sub esi, ecx
mov edx, dword [ebp - 0x14]
add dword [ebp - 0x1c], ecx
add edx, ecx
mov dword [ebp - 0x14], edx
test eax, eax
je 0x4e357a
test ecx, ecx
je 0x4e3587
test esi, esi
je 0x4e3587
mov ecx, dword [ebp - 0x1c]
xor edx, edx
jmp 0x4e3538
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x4e3590
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x4c]
je 0x4e3629
mov ecx, ebx
call fcn.00488e9b
test al, al
je 0x4e3623
push ecx
lea ecx, [ebp - 0x140]
call fcn.004506fd
mov edx, str.SZ_ERROR_FAIL_happened_during_File_Write
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x140]
call fcn.00451714
sub esp, 0x18
mov ecx, 0x7026d4
mov eax, esp
mov dword [ebp - 0x3c], esp
push eax
call fcn.0046e52c
sub esp, 0x18
mov byte [ebp - 4], 0x1f
mov eax, esp
mov dword [ebp - 0x20], esp
mov ecx, 0x7026ac
push eax
call fcn.0047ca02
sub esp, 0x18
mov byte [ebp - 4], 0x20
mov eax, esp
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x44], eax
push eax
call fcn.00450fef
mov edx, 0x11f
mov byte [ebp - 4], 0x1e
mov ecx, ebx
call fcn.00488e21
add esp, 0x48
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x140]
call fcn.0044ec83
push 0xb
pop edi
mov dword [ebp - 0x38], edi
lea ecx, [ebp - 0x40]
call fcn.00542b8f
test eax, eax
jne 0x4e374e
mov eax, dword [ebp - 0x16c]
mov esi, dword [ebp - 0x2c]
test eax, eax
je 0x4e3675
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
test byte [edx + eax], cl
je 0x4e3675
mov eax, dword [ebp - 0x168]
lea ecx, [ebp + 0xa8]
cmp dword [ebp + 0xbc], 8
cmovae ecx, dword [ebp + 0xa8]
push dword [eax + esi*4]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea ecx, [ebp + 0xd8]
call fcn.004510b9
xor eax, eax
lea ecx, [ebp + 0xa8]
mov byte [ebp - 4], al
call fcn.004510b9
inc esi
mov dword [ebp - 0x2c], esi
cmp esi, dword [ebp - 0x180]
jb 0x4e3112
jmp 0x4e38c6
push 0x12
pop edi
jmp 0x4e38c6
mov ecx, ebx
call fcn.00488e9b
test al, al
je 0x4e38c6
push ecx
lea ecx, [ebp - 0x140]
call fcn.004506fd
mov edx, str.Error_happened_during_SzArEx_Extract:
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x140]
call fcn.00451714
push edi
mov ecx, eax
call fcn.0047401d
sub esp, 0x18
mov ecx, 0x7026d4
mov eax, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.0046e52c
sub esp, 0x18
mov byte [ebp - 4], 9
mov eax, esp
mov dword [ebp - 0x24], esp
mov ecx, 0x7026ac
push eax
call fcn.0047ca02
sub esp, 0x18
mov byte [ebp - 4], 0xa
mov eax, esp
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x10], eax
push eax
call fcn.00450fef
mov edx, 0xa7
mov byte [ebp - 4], 8
mov ecx, ebx
call fcn.00488e21
add esp, 0x48
lea ecx, [ebp - 0x140]
xor eax, eax
mov byte [ebp - 4], al
call fcn.0044ec83
jmp 0x4e38c6
mov ecx, ebx
call fcn.00488e9b
test al, al
je 0x4e38a8
push ecx
lea ecx, [ebp - 0x140]
call fcn.004506fd
mov edx, str.SZ_ERROR_FAIL_happened_during_File_Close
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x140]
call fcn.00451714
sub esp, 0x18
mov ecx, 0x7026d4
mov eax, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.0046e52c
sub esp, 0x18
mov byte [ebp - 4], 0x22
mov eax, esp
mov dword [ebp - 0x24], esp
mov ecx, 0x7026ac
push eax
call fcn.0047ca02
sub esp, 0x18
mov byte [ebp - 4], 0x23
mov eax, esp
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x10], eax
push eax
call fcn.00450fef
mov byte [ebp - 4], 0x21
mov edx, 0x125
jmp 0x4e3893
mov ecx, ebx
call fcn.00488e9b
test al, al
je 0x4e38a8
push ecx
lea ecx, [ebp - 0x140]
call fcn.004506fd
mov edx, str.SZ_ERROR_FAIL_happened_when_trying_to_open_output_file:
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x140]
call fcn.00451714
cmp dword [ebp + 0xec], 8
lea ecx, [ebp + 0xd8]
lea edx, [ebp - 0x5c]
mov esi, eax
cmovae ecx, dword [ebp + 0xd8]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp + 0xe8]
mov dword [ebp - 0x58], ecx
lea ecx, [ebp + 0x90]
call fcn.0048a47c
mov edx, eax
mov byte [ebp - 4], 0x1b
mov ecx, esi
call fcn.0045195f
lea ecx, [ebp + 0x90]
mov byte [ebp - 4], 0x1a
call fcn.004511a7
sub esp, 0x18
mov ecx, 0x7026d4
mov eax, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.0046e52c
sub esp, 0x18
mov byte [ebp - 4], 0x1c
mov eax, esp
mov dword [ebp - 0x24], esp
mov ecx, 0x7026ac
push eax
call fcn.0047ca02
sub esp, 0x18
mov byte [ebp - 4], 0x1d
mov eax, esp
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x10], eax
push eax
call fcn.00450fef
mov byte [ebp - 4], 0x1a
mov edx, 0x105
mov ecx, ebx
call fcn.00488e21
add esp, 0x48
lea ecx, [ebp - 0x140]
call fcn.0044ec83
push 0xb
pop edi
lea ecx, [ebp + 0xd8]
call fcn.004510b9
xor eax, eax
lea ecx, [ebp + 0xa8]
mov byte [ebp - 4], al
call fcn.004510b9
push dword [ebp - 0x48]
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call dword [0x670300]
call esi
pop ecx
pop ecx
jmp 0x4e3978
push 4
pop ebx
mov ecx, ebx
call fcn.00488e9b
test al, al
je 0x4e3978
push ecx
lea ecx, [ebp - 0x140]
call fcn.004506fd
mov edx, str.SzArEx_Open_failed.
mov byte [ebp - 4], 0x24
lea ecx, [ebp - 0x140]
call fcn.00451714
sub esp, 0x18
mov ecx, 0x7026d4
mov eax, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.0046e52c
sub esp, 0x18
mov byte [ebp - 4], 0x25
mov eax, esp
mov dword [ebp - 0x24], esp
mov ecx, 0x7026ac
push eax
call fcn.0047ca02
sub esp, 0x18
mov byte [ebp - 4], 0x26
mov eax, esp
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x10], eax
push eax
call fcn.00450fef
mov edx, 0x137
mov byte [ebp - 4], 0x24
mov ecx, ebx
call fcn.00488e21
add esp, 0x48
lea ecx, [ebp - 0x140]
xor eax, eax
mov byte [ebp - 4], al
call fcn.0044ec83
push dword [ebp - 0x28]
call fcn.00618553
pop ecx
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x1c0]
call fcn.00540427
push dword [ebp - 0x8c]
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call dword [0x670300]
call esi
pop ecx
pop ecx
lea ecx, [ebp - 0x74]
call fcn.00542b8f
test edi, edi
jne 0x4e2f13
lea ecx, [ebp + 0x78]
call fcn.004510b9
mov al, 1
jmp 0x4e2f1d
call fcn.005fb70f
int3