Function at 0x40808b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459706
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
mov dword [ebp - 0x14c], ecx
push 1
mov ecx, dword [ebp - 0x14c]
call fcn.00407112
and eax, 0xff
test eax, eax
je 0x408102
mov eax, 1
test eax, eax
je 0x4080da
mov dword [ebp - 0x150], 0
jmp 0x4080ed
push 0x470afc
call fcn.0040ae50
add esp, 4
mov dword [ebp - 0x150], eax
push 0
push 0
push 0x470b14
call fcn.0044acf8
xor al, al
jmp 0x40857c
mov ecx, dword [ebp - 0x14c]
movsx edx, byte [ecx + 0xe4]
test edx, edx
je 0x408150
mov eax, 1
test eax, eax
je 0x408128
mov dword [ebp - 0x154], 0
jmp 0x40813b
push 0x470b2c
call fcn.0040ae50
add esp, 4
mov dword [ebp - 0x154], eax
push 0
push 0
push str.A_file_already_opened._n
call fcn.0044acf8
xor al, al
jmp 0x40857c
mov ecx, dword [ebp - 0x14c]
add ecx, 0x78
call fcn.0040f4cf
cmp eax, 0xffffffff
jne 0x4081a0
mov ecx, 1
test ecx, ecx
je 0x408178
mov dword [ebp - 0x158], 0
jmp 0x40818b
push 0x470b5c
call fcn.0040ae50
add esp, 4
mov dword [ebp - 0x158], eax
push 0
push 0
push str.You_cannot_add_the_files_to_the_existing_disk_spannig_archive._n
call fcn.0044acf8
xor al, al
jmp 0x40857c
mov ecx, dword [ebp - 0x14c]
call fcn.0040734a
cmp eax, 0xffff
jne 0x4081ef
mov edx, 1
test edx, edx
je 0x4081c7
mov dword [ebp - 0x15c], 0
jmp 0x4081da
push 0x470bdc
call fcn.0040ae50
add esp, 4
mov dword [ebp - 0x15c], eax
push 0
push 0
push str.Maximum_file_count_inside_archive_reached._n
call fcn.0044acf8
xor al, al
jmp 0x40857c
cmp dword [ebp + 0x10], 0
je 0x40825d
mov byte [ebp - 0x1c], 1
lea ecx, [ebp - 0x134]
call fcn.0040b040
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00446d8f
test eax, eax
jne 0x40821e
mov byte [ebp - 0x1c], 0
jmp 0x40824a
lea edx, [ebp - 0x130]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040e771
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x24], 0xffffffff
jne 0x40824a
mov byte [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
and eax, 0xff
test eax, eax
jne 0x40825d
xor al, al
jmp 0x40857c
mov ecx, dword [ebp - 0x14c]
add ecx, 0x20
call fcn.0040f0db
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x14c]
add ecx, 0xe8
call fcn.0040c447
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x14c]
call fcn.00407933
mov ecx, eax
call fcn.0040ee18
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00404770
test eax, eax
je 0x4082e1
mov ecx, dword [ebp - 0x14c]
call fcn.0040734a
push eax
push str.file_i
lea eax, [ebp - 0x10]
push eax
call fcn.0043c5ee
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00401e00
push eax
mov ecx, dword [ebp - 0x14c]
call fcn.00407933
mov ecx, eax
call fcn.0040edee
push 0
mov ecx, dword [ebp - 0x14c]
mov dl, byte [ecx + 0x15c]
push edx
push 0
mov ecx, dword [ebp - 0x14c]
add ecx, 0xe8
call fcn.0040ae60
mov ecx, dword [ebp - 0x14c]
call fcn.00407933
mov eax, dword [eax + 0x24]
push eax
mov ecx, dword [ebp - 0x14c]
call fcn.0040a30f
mov byte [ebp - 0x14], al
mov ecx, dword [ebp - 0x14c]
add ecx, 8
call fcn.0040afe0
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x18], al
mov cl, byte [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x14c]
add ecx, 0x78
call fcn.0040f4cf
sub eax, 1
neg eax
sbb eax, eax
inc eax
push eax
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x14c]
call fcn.00407933
mov ecx, eax
call fcn.0040ead3
and eax, 0xff
test eax, eax
jne 0x40837e
push 0xffffffffffffff95
mov ecx, dword [ebp - 0x14c]
call fcn.00407179
mov eax, dword [ebp - 0x14c]
add eax, 0x78
push eax
mov ecx, dword [ebp - 0x14c]
call fcn.00407933
mov ecx, eax
call fcn.0040e87e
mov ecx, dword [ebp - 0x14c]
xor edx, edx
mov dl, byte [ecx + 0x15c]
test edx, edx
je 0x4083c7
lea ecx, [ebp - 0x10]
call fcn.00401e00
push eax
mov ecx, dword [ebp - 0x14c]
call fcn.00407933
mov ecx, eax
call fcn.0040edee
mov eax, dword [ebp - 0x18]
and eax, 0xff
test eax, eax
je 0x408432
push 0
push 0xc
lea ecx, [ebp - 0x140]
call fcn.0040b6eb
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x140]
push ecx
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 0x10]
shl eax, 0x10
push eax
mov ecx, dword [ebp - 0x14c]
call fcn.0040a8a2
push 0
push 0xc
lea ecx, [ebp - 0x140]
call fcn.0040b000
push eax
mov ecx, dword [ebp - 0x14c]
add ecx, 0x78
call fcn.00410121
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x140]
call fcn.0040b728
mov ecx, dword [ebp - 0x14c]
mov dword [ecx + 0x64], 0
mov edx, dword [ebp - 0x14c]
mov dword [edx + 0x2c], 0
mov ecx, dword [ebp - 0x14c]
add ecx, 0x6c
call fcn.0040afe0
mov ecx, dword [ebp - 0x14c]
mov dword [ecx + 0x38], eax
mov ecx, dword [ebp - 0x14c]
add ecx, 0x6c
call fcn.0040b000
mov edx, dword [ebp - 0x14c]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x14c]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0x14c]
mov dword [ecx + 0x3c], 0
mov edx, dword [ebp - 0x14]
and edx, 0xff
test edx, edx
je 0x4084c7
mov ecx, dword [ebp - 0x14c]
call fcn.00407933
xor ecx, ecx
mov cx, word [eax + 0xe]
test ecx, ecx
je 0x4084c7
mov ecx, dword [ebp - 0x14c]
call fcn.00407933
mov word [eax + 0xe], 0
mov ecx, dword [ebp - 0x14c]
call fcn.00407933
xor edx, edx
mov dx, word [eax + 0xe]
cmp edx, 8
jne 0x408553
mov eax, dword [ebp - 0x14c]
xor ecx, ecx
mov cl, byte [eax + 4]
test ecx, ecx
je 0x408500
mov edx, dword [ebp - 0x14c]
add edx, 0xc8
mov dword [ebp - 0x160], edx
jmp 0x40850a
mov dword [ebp - 0x160], 0
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x160]
mov dword [eax + 0x50], ecx
push 0x38
push 0x470c3c
push 0
push 8
push 0xfffffffffffffff1
push 8
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14c]
add eax, 0x28
push eax
call fcn.004114c0
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
push ecx
mov ecx, dword [ebp - 0x14c]
call fcn.0040790c
mov edx, dword [ebp - 0x14c]
mov byte [edx + 0xe4], 1
mov byte [ebp - 0x148], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043fa22
mov al, byte [ebp - 0x148]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc