Function at 0x4089d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ed32d
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x673f64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x264], eax
xor ecx, ecx
mov dword [ebp - 0x254], 0
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov dword [ebp - 0x21c], 0x104
mov word [eax], cx
mov dword [ebp - 4], ecx
cmp dword [edx + 0x14], 8
mov dword [ebp - 0x254], 1
jb 0x408a54
mov edx, dword [edx]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push str.InstallLocation
push edx
call dword [sym.imp.msi.dll_MsiGetPropertyW]
test eax, eax
jne 0x408b89
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, 0x641130
mov dword [ebp - 0x260], str.winzip.exe
mov dword [ebp - 0x25c], str.winzip32.exe
mov dword [ebp - 0x258], str.winzip64.exe
nop
xor eax, eax
mov dword [ebp - 0x24c], 0
mov word [ebp - 0x24c], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x23c], 0
lea edx, [eax + 2]
mov dword [ebp - 0x238], 7
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408ad0
sub eax, edx
lea ecx, [ebp - 0x24c]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004059d0
mov ecx, esi
mov dword [ebp - 4], 1
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408b00
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x24c]
call fcn.00405ae0
cmp dword [ebp - 0x238], 8
lea eax, [ebp - 0x24c]
cmovae eax, dword [ebp - 0x24c]
push eax
call ebx
test eax, eax
jne 0x408bad
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x238]
cmp edx, 8
jb 0x408b7a
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408b70
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408d33
push edx
push ecx
call fcn.0058a7f7
add esp, 8
add esi, 0xc
cmp esi, 0x6412b0
jl 0x408aa0
mov esi, dword [ebp - 0x250]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058a7e9
mov esp, ebp
pop ebp
ret
xor esi, esi
nop
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x234]
call fcn.0040bd00
push 1
push 0x642460
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 2
call fcn.00405ae0
mov edx, dword [ebp + esi*4 - 0x260]
mov edi, eax
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408be6
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00405ae0
push 4
push 0x642464
mov ecx, eax
call fcn.00405ae0
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408c81
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x408c6f
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408c65
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408d2e
push edx
push ecx
call fcn.0058a7f7
add esp, 8
inc esi
cmp esi, 3
jl 0x408bb0
mov esi, dword [ebp - 0x250]
jmp 0x408ce9
mov esi, dword [ebp - 0x250]
lea eax, [ebp - 0x234]
cmp esi, eax
je 0x408cad
cmp dword [ebp - 0x220], 8
mov ecx, esi
push dword [ebp - 0x224]
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.004059d0
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x408ce9
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408cdf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408d2e
push edx
push ecx
call fcn.0058a7f7
add esp, 8
mov edx, dword [ebp - 0x238]
cmp edx, 8
jb 0x408b8f
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408d1f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408d33
push edx
push ecx
call fcn.0058a7f7
add esp, 8
jmp 0x408b8f
call fcn.005b1b1f
call fcn.005b1b1f
int3