Function at 0x465490
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x4178
call fcn.0049bfd0
mov eax, dword [0x79b544]
xor eax, esp
mov dword [esp + 0x4174], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esp + 0x40], 0x468c00
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], 0x468c20
mov dword [esp + 0x70], 0x468c00
mov dword [esp + 0x74], 0x468c20
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x64], eax
cmp eax, 0xffffffff
jne 0x465516
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x465516
push str.can_not_open_input_file
push str._nERROR:__s_n
jmp 0x465cab
push esi
call fcn.00520fc6
add esp, 4
push esi
call fcn.00520c63
add esp, 4
mov dword [esp + 0x5c], 0x468b00
lea eax, [esp + 0x5c]
mov dword [esp + 0x60], 0x468b20
mov dword [esp + 0xe8], 0x468c60
mov dword [esp + 0xec], 0x468cc0
mov dword [esp + 0xf0], 0x468cd0
mov dword [esp + 0xf4], 0x468d20
mov dword [esp + 0xf8], eax
mov dword [esp + 0x100], edi
mov dword [esp + 0xfc], edi
call fcn.00468d40
lea ecx, [esp + 0x68]
call fcn.00465e10
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x44]
push eax
lea edx, [esp + 0xf0]
call fcn.00468370
mov esi, eax
add esp, 8
mov dword [esp + 0x28], esi
test esi, esi
je 0x4655c3
lea edx, [esp + 0x40]
lea ecx, [esp + 0x68]
call fcn.00465ee0
test esi, esi
jne 0x465bda
mov dword [esp + 0x18], edi
mov ecx, 0x774684
mov dword [esp + 0x30], edi
mov eax, 0x77106c
mov dword [esp + 0x20], edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x465600
test dl, dl
je 0x4655fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x465600
add eax, 2
add ecx, 2
test dl, dl
jne 0x4655e0
xor eax, eax
jmp 0x465605
sbb eax, eax
or eax, 1
test eax, eax
jne 0x465750
mov dword [esp + 0x18], 1
xor edi, edi
xor eax, eax
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x3c], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x10], eax
cmp dword [esp + 0xa8], eax
jbe 0x465bc6
mov esi, dword [esp + 0x18]
nop word [eax + eax]
mov ecx, eax
mov dword [esp + 0x2c], 0
and ecx, 7
mov dword [esp + 0x24], 0
mov edx, 0x80
sar edx, cl
mov ecx, eax
mov eax, dword [esp + 0xb0]
shr ecx, 3
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ecx
movzx eax, byte [ecx + eax]
and eax, edx
mov dword [esp + 0x14], eax
test esi, esi
jne 0x46569a
test eax, eax
je 0x46569a
test edi, edi
je 0x465bac
mov eax, dword [esp + 0xdc]
mov ecx, dword [esp + 0x10]
mov esi, dword [eax + ecx*4 + 4]
lea edi, [eax + ecx*4]
sub esi, dword [edi]
cmp esi, dword [esp + 0x48]
jbe 0x4656e1
push dword [esp + 0xc]
call fcn.00512434
add esp, 4
mov dword [esp + 0x48], esi
add esi, esi
je 0x465c0c
push esi
call fcn.00512439
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x465c14
mov edx, dword [edi + 4]
mov ecx, dword [edi]
sub edx, ecx
mov edi, dword [esp + 0xc]
test edi, edi
je 0x465712
mov eax, dword [esp + 0xe0]
lea esi, [eax + ecx*2]
test edx, edx
je 0x465712
mov ecx, edi
sub esi, edi
mov ax, word [esi + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub edx, 1
jne 0x465702
cmp dword [esp + 0x18], 0
je 0x4659bb
mov edx, dword [esp + 0xbc]
test edx, edx
je 0x465824
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
test byte [ecx + edx], al
je 0x465824
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xc0]
mov ecx, dword [eax + esi*4]
jmp 0x46582a
mov ecx, 0x774688
mov eax, 0x77106c
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x465780
test dl, dl
je 0x46577c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x465780
add eax, 2
add ecx, 2
test dl, dl
jne 0x465760
xor eax, eax
jmp 0x465785
sbb eax, eax
or eax, 1
test eax, eax
jne 0x465796
mov dword [esp + 0x30], 1
jmp 0x465615
mov ecx, 0x7746c4
mov eax, 0x77106c
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4657c0
test dl, dl
je 0x4657bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4657c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4657a0
xor eax, eax
jmp 0x4657c5
sbb eax, eax
or eax, 1
test eax, eax
je 0x465615
mov ecx, 0x77106c
mov eax, ecx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4657f4
test dl, dl
je 0x4657f0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4657f4
add eax, 2
add ecx, 2
test dl, dl
jne 0x4657d4
xor eax, eax
jmp 0x4657f9
sbb eax, eax
or eax, 1
test eax, eax
jne 0x46580b
mov edi, 1
mov dword [esp + 0x20], edi
jmp 0x465617
push str.incorrect_command
push str._nERROR:__s_n
call fcn.00455d7e
mov esi, 0xb
jmp 0x465bd7
mov esi, dword [esp + 0x10]
xor ecx, ecx
test cl, 0x10
jne 0x465838
cmp dword [esp + 0x14], 0
mov al, 0x2e
je 0x46583a
mov al, 0x44
mov byte [esp + 0x4108], al
lea edi, [esp + 0x415c]
mov eax, ecx
mov byte [esp + 0x410d], 0
and al, 1
neg al
sbb al, al
and al, 0x24
add al, 0x2e
mov byte [esp + 0x4109], al
mov eax, ecx
and al, 2
neg al
sbb al, al
and al, 0x1a
add al, 0x2e
mov byte [esp + 0x410a], al
mov eax, ecx
and al, 4
neg al
sbb al, al
and cl, 0x20
and al, 0x25
add al, 0x2e
neg cl
mov byte [esp + 0x410b], al
mov eax, dword [esp + 0xac]
sbb cl, cl
and cl, 0x13
add cl, 0x2e
mov byte [esp + 0x410c], cl
mov ecx, dword [eax + esi*8 + 8]
sub ecx, dword [eax + esi*8]
mov edx, dword [eax + esi*8 + 0xc]
sbb edx, dword [eax + esi*8 + 4]
xor esi, esi
mov dword [esp + 0x1c], ecx
nop dword [eax]
push 0
push 0xa
push edx
push ecx
call fcn.0062f4f0
mov cl, al
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x1c]
mov ch, al
shl cl, 2
add ch, cl
add ch, ch
sub dl, ch
mov ecx, eax
add dl, 0x30
mov dword [esp + 0x1c], ecx
mov byte [esp + esi + 0x413c], dl
inc esi
mov edx, dword [esp + 0x2c]
or eax, edx
jne 0x4658c0
nop dword [eax]
mov al, byte [esp + esi + 0x413b]
lea edi, [edi + 1]
mov byte [edi - 1], al
sub esi, 1
jne 0x465900
mov edx, dword [esp + 0xc4]
mov byte [edi], 0
test edx, edx
je 0x465949
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
test byte [ecx + edx], al
je 0x465949
mov eax, dword [esp + 0xc8]
lea edx, [esp + 0x4110]
mov ecx, dword [esp + 0x10]
lea ecx, [eax + ecx*8]
call fcn.004651d0
jmp 0x465963
movaps xmm0, xmmword [0x774820]
movaps xmmword [esp + 0x4110], xmm0
mov dword [esp + 0x4120], 0x202020
lea eax, [esp + 0x415c]
push eax
lea eax, [esp + 0x410c]
push eax
lea eax, [esp + 0x4118]
push eax
push str._s__s__10s
call fcn.00455d7e
mov ecx, dword [esp + 0x1c]
add esp, 0x10
call fcn.004650f0
mov esi, eax
mov dword [esp + 0x28], esi
test esi, esi
jne 0x465bc6
cmp dword [esp + 0x14], eax
je 0x465b97
push 0x7746c0
call fcn.00455d7e
add esp, 4
jmp 0x465b97
push 1
call fcn.00514a7e
add esp, 4
mov ecx, str.Extracting
cmp dword [esp + 0x30], 0
push eax
mov eax, str.Testing
cmove eax, ecx
push eax
call fcn.005181c2
add esp, 8
mov ecx, edi
call fcn.004650f0
mov esi, eax
mov dword [esp + 0x28], esi
test esi, esi
jne 0x465bc6
cmp dword [esp + 0x14], eax
je 0x465a0b
push 0x7746c0
call fcn.00455d7e
add esp, 4
jmp 0x465a56
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x2c]
lea edx, [esp + 0x108]
lea ecx, [esp + 0x88]
call fcn.00468830
mov esi, eax
mov dword [esp + 0x48], eax
add esp, 0x20
test esi, esi
jne 0x465bc6
cmp dword [esp + 0x30], 0
jne 0x465b97
mov eax, dword [esp + 0xc]
mov edx, edi
xor edi, edi
mov dword [esp + 0x1c], edx
movzx eax, word [eax]
mov ecx, eax
test ax, ax
je 0x465acf
mov eax, dword [esp + 0xc]
mov esi, eax
nop dword [eax]
cmp cx, 0x2f
jne 0x465abd
cmp dword [esp + 0x20], 0
je 0x465ab6
xor ecx, ecx
push ecx
push eax
mov word [esi], cx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x465aa4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x1c]
mov eax, 0x5c
mov word [esi], ax
mov eax, dword [esp + 0xc]
jmp 0x465abd
lea edx, [esi + 2]
mov dword [esp + 0x1c], edx
inc edi
lea esi, [eax + edi*2]
movzx eax, word [esi]
mov ecx, eax
test ax, ax
mov eax, dword [esp + 0xc]
jne 0x465a80
cmp dword [esp + 0x14], 0
push 0
je 0x465af2
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x465b97
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x465b97
push 0x80
push 2
push 0
push 1
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x465b20
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x465c1b
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
push eax
mov dword [esp + 0x28], esi
lea edx, [edx + ecx]
lea ecx, [esp + 0x18]
call fcn.00468a90
add esp, 4
test eax, eax
jne 0x465c3b
cmp dword [esp + 0x24], esi
jne 0x465c3b
lea ecx, [esp + 0x14]
call fcn.004689f0
test eax, eax
jne 0x465c34
mov edx, dword [esp + 0xbc]
test edx, edx
je 0x465b97
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
test byte [ecx + edx], al
je 0x465b97
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc0]
push dword [ecx + eax*4]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x774704
call fcn.00455d7e
mov edi, dword [esp + 0x24]
add esp, 4
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0xa8]
jb 0x465650
mov esi, dword [esp + 0x28]
push dword [esp + 0x3c]
lea eax, [esp + 0x44]
push eax
call dword [esp + 0x4c]
mov edi, dword [esp + 0x14]
add esp, 8
lea edx, [esp + 0x40]
lea ecx, [esp + 0x68]
call fcn.00465ee0
push edi
call fcn.00512434
mov eax, dword [esp + 0x68]
add esp, 4
cmp eax, 0xffffffff
je 0x465c4a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x465c42
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x465c4a
mov dword [esp + 0xc], 0
mov esi, 2
jmp 0x465bc6
push str.can_not_open_output_file
push str._nERROR:__s_n
call fcn.00455d7e
add esp, 8
mov esi, 0xb
jmp 0x465bc6
push str.can_not_close_output_file
jmp 0x465c20
push str.can_not_write_output_file
jmp 0x465c20
mov dword [esp + 0x64], 0xffffffff
test esi, esi
jne 0x465c71
push str._nEverything_is_Ok_n
call fcn.00455d7e
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x4174]
xor ecx, esp
call fcn.0049b511
mov esp, ebp
pop ebp
ret
cmp esi, 4
jne 0x465c82
mov eax, str._nERROR:__s_n
mov esi, str.decoder_doesnt_support_this_archive
jmp 0x465ca9
cmp esi, 2
jne 0x465c93
mov eax, str._nERROR:__s_n
mov esi, str.can_not_allocate_memory
jmp 0x465ca9
cmp esi, 3
jne 0x465ca4
mov eax, str._nERROR:__s_n
mov esi, str.CRC_error
jmp 0x465ca9
mov eax, str._nERROR__d_n
push esi
push eax
call fcn.00455d7e
mov ecx, dword [esp + 0x4184]
add esp, 8
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.0049b511
mov esp, ebp
pop ebp
ret