Function at 0x402080
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442093
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4587e8]
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 esi, ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], 0
call fcn.00401af0
mov dword [ebp - 4], 1
cmp dword [ebp - 0x30], 0
jne 0x4020fc
xor eax, eax
push eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push 0x44fdac
mov ecx, esi
mov word [esi], ax
call fcn.00403620
mov dword [ebp - 0x74], 1
mov byte [ebp - 4], 0
jmp 0x402307
push str.uninst.exe
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00403ce0
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x402161
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
cmp eax, 1
sete al
test al, al
je 0x402161
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.00402d10
mov dword [ebp - 0x74], 1
jmp 0x4022df
push str.TCUninst.exe
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.00403ce0
add esp, 4
mov edi, eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x4021af
cmp dword [ebp - 0x14], 8
jb 0x402192
push dword [ebp - 0x28]
call fcn.00423c7d
add esp, 4
xor eax, eax
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00402d10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x44], 8
jb 0x4021c4
push dword [ebp - 0x58]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp dword [ebp - 0x18], eax
je 0x402234
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
cmp eax, 1
sete al
test al, al
je 0x402234
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
call fcn.00402ff0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
mov ebx, 2
jmp 0x40224d
push 0x44fdac
lea ecx, [ebp - 0x70]
call fcn.004026b0
mov dword [ebp - 4], 5
mov ebx, 4
mov dword [ebp - 0x74], ebx
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
push eax
mov ecx, esi
call fcn.00402d10
or ebx, 1
mov dword [ebp - 0x74], ebx
mov dword [ebp - 4], 4
test bl, 4
je 0x4022a8
and ebx, 0xfffffffb
mov dword [ebp - 0x74], ebx
cmp dword [ebp - 0x5c], 8
jb 0x402294
push dword [ebp - 0x70]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov dword [ebp - 4], 2
test bl, 2
je 0x4022df
and ebx, 0xfffffffd
mov dword [ebp - 0x74], ebx
cmp dword [ebp - 0x44], 8
jb 0x4022cb
push dword [ebp - 0x58]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
jb 0x4022f4
push dword [ebp - 0x28]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
mov byte [ebp - 4], al
cmp dword [ebp - 0x2c], 8
jb 0x402318
push dword [ebp - 0x40]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
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.00423c82
mov esp, ebp
pop ebp
ret