Function at 0x418110
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515f30
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x56f790]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00408a30
mov ecx, eax
test ecx, ecx
je 0x418340
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call fcn.0040ed70
mov ecx, eax
call fcn.0040cb60
test eax, eax
je 0x41817b
lea eax, [ebp - 0x18]
push eax
call fcn.00463be0
add esp, 4
mov byte [ebp - 4], 1
jmp 0x4181ce
call fcn.0040ed70
mov ecx, eax
call fcn.0040cb10
test eax, eax
je 0x41819d
lea eax, [ebp - 0x18]
push eax
call fcn.00463a40
add esp, 4
mov byte [ebp - 4], 2
jmp 0x4181ce
call fcn.0040ed70
mov ecx, eax
call fcn.0040cbb0
test eax, eax
lea eax, [ebp - 0x18]
je 0x4181bf
push eax
call fcn.00463d80
add esp, 4
mov byte [ebp - 4], 3
jmp 0x4181ce
push 0
push eax
call fcn.00465430
add esp, 8
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x10]
call fcn.00408360
mov edx, dword [ebp - 0x18]
or edi, 0xffffffff
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4181f8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
je 0x4182d6
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call ebx
test eax, eax
je 0x4182d6
push str.uninst.exe
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00410610
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0043c260
add esp, 0x14
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00408360
mov edx, dword [ebp - 0x18]
mov eax, edi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418267
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x41829f
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0x52bd6c
call fcn.004093d0
mov edx, dword [ebp - 0x14]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418310
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x418310
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.004088a0
mov ebx, dword [ebp + 8]
add eax, 0x10
mov edx, dword [ebp - 0x14]
add esp, 4
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov dword [ebx], eax
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418310
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x418310
call fcn.00408a30
mov ecx, eax
test ecx, ecx
je 0x41834a
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
push 0x52bd6c
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.00408690
test al, al
jne 0x418310
push 0
push 0x52bd6c
mov ecx, ebx
call fcn.00407f80
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x41832c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404400
push 0x80004005
call fcn.00404400
int3