Function at 0x4089ff
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4e58
call fcn.0041f310
mov eax, dword [0x448504]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4e3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4e30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4e54], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x4e4c], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x4e38], eax
mov eax, dword [ebp + 0x20]
xor esi, esi
cmp ebx, esi
push edi
mov dword [ebp - 0x4e40], eax
je 0x408a7c
cmp dword [ebx], esi
je 0x408a7c
xor edi, edi
cmp dword [ebx + 0xc], esi
jle 0x408a79
mov eax, dword [ebx]
push dword [eax + edi*4]
call fcn.00418dca
mov eax, dword [ebx]
mov dword [eax + edi*4], esi
inc edi
cmp edi, dword [ebx + 0xc]
pop ecx
jl 0x408a63
mov dword [ebx + 0xc], esi
mov ecx, dword [ebp - 0x4e54]
or eax, 0xffffffff
cmp dword [ecx], eax
jne 0x408f8b
mov edi, 0x400
push edi
push dword [ebp - 0x4e3c]
mov eax, ebx
mov dword [ebp - 0x4e34], esi
call fcn.004088bf
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x408f7d
push esi
call fcn.00419030
test eax, eax
pop ecx
je 0x408f7d
push esi
call fcn.0041a2a0
pop ecx
push edi
push dword [ebp - 0x4e3c]
mov dword [ebp - 0x4e48], eax
mov eax, ebx
call fcn.004088bf
mov edi, eax
call fcn.00408984
push edi
mov dword [ebp - 0x4e58], eax
call fcn.0040a0ee
add esp, 0xc
push esi
push dword [ebp - 0x4e48]
mov edi, eax
push edi
push str._Unarchiver__Extracting__s__::_ld_from__s__n
call fcn.0040a1bf
push edi
push dword [ebp - 0x4e30]
lea eax, [ebp - 0x1394]
call fcn.0040a138
lea eax, [ebp - 0x4e2c]
push edi
push eax
mov byte [ebp - 0x4e2c], 0
call fcn.004190d0
add esp, 0x20
cmp dword [ebp - 0x4e48], 2
jne 0x408b5a
mov esi, 0x444e6c
lea eax, [ebp - 0x1394]
push esi
push eax
call fcn.004190d0
lea eax, [ebp - 0x4e2c]
push esi
push eax
call fcn.004190d0
add esp, 0x10
push edi
push dword [ebp - 0x4e30]
lea eax, [ebp - 0x271c]
call fcn.0040a138
push 0x444e70
push dword [ebp - 0x4e30]
lea eax, [ebp - 0x3aa4]
call fcn.0040a138
lea eax, [ebp - 0x3aa4]
push eax
call fcn.00419030
add esp, 0x14
push edi
mov dword [ebp - 0x4e50], eax
call fcn.00419030
xor esi, esi
test eax, eax
pop ecx
mov dword [ebp - 0x4e44], eax
jle 0x408bea
mov eax, dword [ebp - 0x4e50]
lea eax, [ebp + eax - 0x3aa4]
cmp byte [esi + edi], 0x5c
jne 0x408bce
mov byte [eax + esi], 0
lea eax, [ebp - 0x3aa4]
push eax
call fcn.0040a09a
pop ecx
mov eax, dword [ebp - 0x4e50]
mov cl, byte [esi + edi]
lea eax, [ebp + eax - 0x3aa4]
mov byte [eax + esi], cl
inc esi
cmp esi, dword [ebp - 0x4e44]
jl 0x408bb7
mov eax, dword [ebp - 0x4e50]
mov ecx, dword [ebp - 0x4e44]
add ecx, eax
push edi
mov byte [ebp + ecx - 0x3aa4], 0
call fcn.00418dca
cmp dword [ebp - 0x4e48], 1
pop ecx
jne 0x408c45
lea eax, [ebp - 0x1394]
push eax
call fcn.0040a09a
pop ecx
lea eax, [ebp - 0x4e2c]
push eax
push str._t_Unarchiver__Created_folder__s_n
call fcn.0040a1bf
push dword [ebp - 0x4e38]
mov esi, ebx
call fcn.00408939
add esp, 0xc
xor eax, eax
jmp 0x408f8b
push dword [ebp - 0x4e3c]
mov eax, ebx
call fcn.0040891c
mov edi, eax
test edi, edi
pop ecx
mov dword [ebp - 0x4e44], edi
jne 0x408c6d
lea eax, [ebp - 0x4e2c]
push eax
push str._t_Unarchiver__Skipping_empty_file__s_n
jmp 0x408c29
cmp dword [ebp - 0x4e58], 0
je 0x408cae
push dword [ebp - 0x4e3c]
xor eax, eax
call fcn.0040891c
mov ecx, dword [ebp - 0x4e54]
mov dword [ecx], eax
mov dword [esp], 0x1000
push dword [ebp - 0x4e3c]
xor eax, eax
call fcn.004088bf
pop ecx
pop ecx
mov ecx, dword [ebp - 0x4e4c]
mov dword [ecx], eax
jmp 0x408f88
push dword [ebp - 0x4e38]
mov esi, ebx
call fcn.00408939
pop ecx
lea eax, [ebp - 0x1394]
push eax
call fcn.00419030
cmp eax, 4
pop ecx
jl 0x408dcb
lea eax, [ebp + eax - 0x1394]
cmp byte [eax - 5], 0x70
jne 0x408dcb
cmp byte [eax - 4], 0x32
jne 0x408dcb
cmp byte [eax - 3], 0x2e
jne 0x408dcb
cmp byte [eax - 2], 0x6c
jne 0x408dcb
cmp byte [eax - 1], 0x32
jne 0x408dcb
push str._t_Unarchiver__.p2.l2_detected._Performing_in_sync_unarchive._n
call fcn.0040a1bf
mov dword [esp], 0x100000
push 5
call fcn.00406b1d
push dword [ebp - 0x4e30]
mov esi, eax
push esi
call fcn.0040860f
add esp, 0x10
test edi, edi
mov dword [ebp - 0x4e4c], eax
jle 0x408daa
jmp 0x408d46
mov edi, dword [ebp - 0x4e44]
sub edi, dword [ebp - 0x4e34]
mov eax, dword [ebp - 0x4e3c]
push edi
push dword [ebp - 0x4e40]
call fcn.00406f6b
mov edi, eax
cmp edi, 0xffffffff
pop ecx
pop ecx
je 0x408daa
push edi
push dword [ebp - 0x4e40]
call fcn.00406bea
cmp dword [ebp - 0x4e38], 0
pop ecx
pop ecx
je 0x408d96
add dword [ebx + 0x10], edi
push edi
push dword [ebp - 0x4e40]
push dword [ebp - 0x4e38]
call fcn.00401000
add esp, 0xc
add dword [ebp - 0x4e34], edi
mov eax, dword [ebp - 0x4e34]
cmp eax, dword [ebp - 0x4e44]
jl 0x408d40
mov eax, dword [ebp - 0x4e4c]
push 0xffffffffffffffff
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str._t_Unarchiver__.p2.l2_in_sync_unarchive_complete._n
call fcn.0040a1bf
pop ecx
jmp 0x408ea5
lea eax, [ebp - 0x1394]
push 0x4400c8
push eax
call fcn.0041a3a4
mov dword [ebp - 0x4e30], eax
push edi
lea eax, [ebp - 0x4e2c]
push eax
push str._t_Unarchiver__Extracting_to_file__s__length:_ld__n
call fcn.0040a1bf
add esp, 0x14
cmp dword [ebp - 0x4e30], 0
jne 0x408e12
push str._t_Unarchiver___Unable_to_extract_archive_file._Unable_to_open_file_for_writing._n
call fcn.0040a1bf
pop ecx
push 1
call fcn.00419ee8
test edi, edi
jle 0x408e78
mov eax, edi
sub eax, dword [ebp - 0x4e34]
push eax
push dword [ebp - 0x4e40]
mov eax, dword [ebp - 0x4e3c]
call fcn.00406f6b
push dword [ebp - 0x4e30]
mov esi, eax
push esi
push 1
push dword [ebp - 0x4e40]
call fcn.0041b55a
add esp, 0x18
cmp dword [ebp - 0x4e38], 0
je 0x408e6a
add dword [ebx + 0x10], esi
push esi
push dword [ebp - 0x4e40]
push dword [ebp - 0x4e38]
call fcn.00401000
add esp, 0xc
add dword [ebp - 0x4e34], esi
cmp dword [ebp - 0x4e34], edi
jl 0x408e16
push dword [ebp - 0x4e30]
call fcn.0041a244
pop ecx
push dword [ebp - 0x4e30]
call fcn.0041bd31
pop ecx
push edi
lea eax, [ebp - 0x4e2c]
push eax
push str._Unarchiver__Extracted__s_length:_d_n
call fcn.0040a1bf
add esp, 0xc
cmp dword [ebp - 0x4e48], 2
jne 0x408c3e
push str._t_Unarchiver__Requires_unpacking200..._n
call fcn.0040a1bf
cmp dword [0x457e4c], 0
pop ecx
jne 0x408ed5
call fcn.0040a3e2
mov dword [0x457e4c], 1
mov esi, dword [0x457db4]
call fcn.00409a64
test eax, eax
jne 0x408ef6
push dword [0x457db4]
push str._t_Unarchiver__ERROR:_unpack200_executable___s__does_not_exist__n
call fcn.0040a1bf
pop ecx
pop ecx
call fcn.0040744c
push dword [0x457db4]
mov edi, eax
push edi
call fcn.004074a5
lea edx, [ebp - 0x1394]
mov ecx, edi
call fcn.0040747a
lea edx, [ebp - 0x271c]
mov ecx, edi
call fcn.0040747a
call fcn.004074d4
push edi
call fcn.00418dca
add esp, 0xc
lea esi, [ebp - 0x271c]
call fcn.00409a64
test eax, eax
jne 0x408f4f
mov eax, esi
push eax
push str._t_Unarchiver__ERROR:_Unpacked_target___s__does_not_exist__n
call fcn.0040a1bf
pop ecx
pop ecx
lea eax, [ebp - 0x1394]
push eax
call fcn.0041a2b6
pop ecx
lea eax, [ebp - 0x271c]
push eax
lea eax, [ebp - 0x1394]
push eax
mov byte [ebp - 0x1394], 0
call fcn.004190d0
pop ecx
pop ecx
jmp 0x408c3e
push str._Unarchiver__WARNING._EOF_encountered._n
call fcn.0040a1bf
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418dbb
leave
ret