Function at 0x460890
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x4178
call fcn.00508210
mov eax, dword [0x710544]
xor eax, esp
mov dword [esp + 0x4174], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esp + 0x40], 0x463fd0
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], 0x463ff0
mov dword [esp + 0x70], 0x463fd0
mov dword [esp + 0x74], 0x463ff0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x64], eax
cmp eax, 0xffffffff
jne 0x460916
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x460916
push str.can_not_open_input_file
push str._nERROR:__s_n
jmp 0x46106f
push esi
call fcn.00525fe9
add esp, 4
push esi
call fcn.00526173
add esp, 4
mov dword [esp + 0x5c], 0x463ed0
lea eax, [esp + 0x5c]
mov dword [esp + 0x60], 0x463ef0
mov dword [esp + 0xe8], 0x464080
mov dword [esp + 0xec], 0x4640e0
mov dword [esp + 0xf0], 0x4640f0
mov dword [esp + 0xf4], 0x464140
mov dword [esp + 0xf8], eax
mov dword [esp + 0x100], edi
mov dword [esp + 0xfc], edi
call fcn.00464160
lea ecx, [esp + 0x68]
call fcn.004611d0
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x44]
push eax
lea edx, [esp + 0xf0]
call fcn.00463710
mov esi, eax
add esp, 8
mov dword [esp + 0x24], esi
test esi, esi
je 0x4609c3
lea edx, [esp + 0x40]
lea ecx, [esp + 0x68]
call fcn.004612a0
test esi, esi
jne 0x460fa0
mov dword [esp + 0x18], edi
mov ecx, 0x6ee7dc
mov dword [esp + 0x2c], edi
mov eax, 0x6b3020
mov dword [esp + 0x30], edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x460a00
test dl, dl
je 0x4609fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x460a00
add eax, 2
add ecx, 2
test dl, dl
jne 0x4609e0
xor eax, eax
jmp 0x460a05
sbb eax, eax
or eax, 1
test eax, eax
jne 0x460b1d
mov dword [esp + 0x18], 1
xor eax, eax
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x3c], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x10], eax
cmp dword [esp + 0xa8], eax
jbe 0x460f90
mov esi, dword [esp + 0x18]
nop dword [eax]
mov ecx, eax
mov dword [esp + 0x28], 0
and ecx, 7
mov dword [esp + 0x20], 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 0x460a8c
test eax, eax
je 0x460a8c
cmp dword [esp + 0x30], esi
je 0x460f76
mov eax, dword [esp + 0xdc]
mov ecx, dword [esp + 0x10]
mov esi, dword [eax + ecx*4 + 4]
sub esi, dword [eax + ecx*4]
cmp esi, dword [esp + 0x48]
jbe 0x460ad0
push edi
call fcn.00518583
add esp, 4
mov dword [esp + 0x48], esi
add esi, esi
je 0x460fd2
push esi
call fcn.0051a7b4
mov edi, eax
add esp, 4
mov dword [esp + 0xc], edi
test edi, edi
je 0x460fd4
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x68]
push edi
mov edx, esi
call fcn.00463d70
add esp, 4
cmp dword [esp + 0x18], 0
je 0x460d7d
mov edx, dword [esp + 0xbc]
test edx, edx
je 0x460bef
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
test byte [ecx + edx], al
je 0x460bef
mov eax, dword [esp + 0xc0]
mov ecx, dword [eax + esi*4]
jmp 0x460bf1
mov ecx, 0x6ee7e0
mov eax, 0x6b3020
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x460b47
test dl, dl
je 0x460b43
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x460b47
add eax, 2
add ecx, 2
test dl, dl
jne 0x460b27
xor eax, eax
jmp 0x460b4c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x460b5d
mov dword [esp + 0x2c], 1
jmp 0x460a15
mov ecx, str.exlt__n
mov eax, 0x6b3020
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x460b87
test dl, dl
je 0x460b83
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x460b87
add eax, 2
add ecx, 2
test dl, dl
jne 0x460b67
xor eax, eax
jmp 0x460b8c
sbb eax, eax
or eax, 1
test eax, eax
je 0x460a15
mov ecx, 0x6ee7d8
mov eax, 0x6b3020
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x460bc0
test dl, dl
je 0x460bbc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x460bc0
add eax, 2
add ecx, 2
test dl, dl
jne 0x460ba0
xor eax, eax
jmp 0x460bc5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x460bd6
mov dword [esp + 0x30], 1
jmp 0x460a15
push 0x6ee7ec
push str._nERROR:__s_n
call fcn.0045387c
mov esi, 0xb
jmp 0x460f9d
xor ecx, ecx
test cl, 0x10
jne 0x460bff
cmp dword [esp + 0x14], 0
mov al, 0x2e
je 0x460c01
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
push 0
push 0xa
push edx
push ecx
call fcn.005f7a00
mov cl, al
mov dword [esp + 0x28], 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 + 0x28]
or eax, edx
jne 0x460c80
nop dword [eax]
mov al, byte [esp + esi + 0x413b]
lea edi, [edi + 1]
mov byte [edi - 1], al
sub esi, 1
jne 0x460cc0
mov edx, dword [esp + 0xc4]
mov byte [edi], 0
test edx, edx
je 0x460d09
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
test byte [ecx + edx], al
je 0x460d09
mov eax, dword [esp + 0xc8]
lea edx, [esp + 0x4110]
mov ecx, dword [esp + 0x10]
lea ecx, [eax + ecx*8]
call fcn.004605d0
jmp 0x460d23
movaps xmm0, xmmword [0x6f3e20]
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.0045387c
mov edi, dword [esp + 0x1c]
add esp, 0x10
mov ecx, edi
call fcn.004604f0
mov esi, eax
mov dword [esp + 0x24], esi
test esi, esi
jne 0x460f90
cmp dword [esp + 0x14], eax
je 0x460f65
push 0x6ee7e4
call fcn.0045387c
add esp, 4
jmp 0x460f65
push 1
call fcn.0051a4ec
add esp, 4
mov ecx, str.Extracting
cmp dword [esp + 0x2c], 0
push eax
mov eax, str.Testing
cmove eax, ecx
push eax
call fcn.005222e2
add esp, 8
mov ecx, edi
call fcn.004604f0
mov esi, eax
mov dword [esp + 0x24], esi
test esi, esi
jne 0x460f90
cmp dword [esp + 0x14], eax
je 0x460dcd
push 0x6ee7e4
call fcn.0045387c
add esp, 4
jmp 0x460e19
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x68]
push eax
push ecx
lea edx, [esp + 0x108]
lea ecx, [esp + 0x88]
call fcn.00463bb0
mov esi, eax
mov dword [esp + 0x44], eax
add esp, 0x20
test esi, esi
jne 0x460f90
cmp dword [esp + 0x2c], 0
jne 0x460f65
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 0x460e8f
mov eax, dword [esp + 0xc]
mov esi, eax
cmp cx, 0x2f
jne 0x460e7d
cmp dword [esp + 0x30], 0
je 0x460e76
xor ecx, ecx
push ecx
push eax
mov word [esi], cx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x460e64
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 0x460e7d
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 0x460e40
cmp dword [esp + 0x14], 0
push 0
je 0x460ebc
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x460ea9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x6ee7e8
call fcn.0045387c
mov edi, dword [esp + 0x10]
jmp 0x460f6f
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 0x460eea
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x460fdb
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
push eax
mov dword [esp + 0x24], esi
lea edx, [edx + ecx]
lea ecx, [esp + 0x18]
call fcn.00463e60
add esp, 4
test eax, eax
jne 0x460fff
cmp dword [esp + 0x20], esi
jne 0x460fff
lea ecx, [esp + 0x14]
call fcn.00463dc0
test eax, eax
jne 0x460ff8
mov edx, dword [esp + 0xbc]
test edx, edx
je 0x460f61
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
test byte [ecx + edx], al
je 0x460f61
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]
mov edi, dword [esp + 0xc]
push 0x6ee7e8
call fcn.0045387c
mov esi, dword [esp + 0x1c]
add esp, 4
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0xa8]
jb 0x460a40
mov esi, dword [esp + 0x24]
push dword [esp + 0x3c]
lea eax, [esp + 0x44]
push eax
call dword [esp + 0x4c]
add esp, 8
lea edx, [esp + 0x40]
lea ecx, [esp + 0x68]
call fcn.004612a0
push edi
call fcn.00518583
mov eax, dword [esp + 0x68]
add esp, 4
cmp eax, 0xffffffff
je 0x46100e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x461006
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x46100e
xor edi, edi
mov esi, 2
jmp 0x460f90
push str.can_not_open_output_file
push str._nERROR:__s_n
call fcn.0045387c
mov edi, dword [esp + 0x14]
add esp, 8
mov esi, 0xb
jmp 0x460f90
push str.can_not_close_output_file
jmp 0x460fe0
push str.can_not_write_output_file
jmp 0x460fe0
mov dword [esp + 0x64], 0xffffffff
test esi, esi
jne 0x461035
push str._nEverything_is_Ok_n
call fcn.0045387c
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x4174]
xor ecx, esp
call fcn.00507778
mov esp, ebp
pop ebp
ret
cmp esi, 4
jne 0x461046
mov eax, str._nERROR:__s_n
mov esi, str.decoder_doesnt_support_this_archive
jmp 0x46106d
cmp esi, 2
jne 0x461057
mov eax, str._nERROR:__s_n
mov esi, str.can_not_allocate_memory
jmp 0x46106d
cmp esi, 3
jne 0x461068
mov eax, str._nERROR:__s_n
mov esi, str.CRC_error
jmp 0x46106d
mov eax, str._nERROR__d_n
push esi
push eax
call fcn.0045387c
mov ecx, dword [esp + 0x4184]
add esp, 8
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.00507778
mov esp, ebp
pop ebp
ret