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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x639300
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ebx
call fcn.00417b30
cmp dword [ebp - 0x14], ebx
jne 0x418f6a
xor edx, edx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x24], bx
mov eax, dword [0x6fca20]
mov byte [ebp - 4], 1
cmp eax, ebx
mov esi, eax
jne 0x418d8b
mov esi, 0x6fca24
mov ecx, 0x6c900c
test ecx, ecx
je 0x418ea3
cmp esi, ebx
je 0x418ea3
mov eax, str.Uninstall.exe
test eax, eax
je 0x418ea3
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x3c], bx
push ebx
push ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004027e0
push esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x30], bx
call fcn.00401f20
push str.Uninstall.exe
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.00401ee0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00401070
mov esi, dword [ebp - 0x38]
lea ecx, [ebp - 0x4c]
call fcn.00401f10
push eax
call fcn.00609a4e
add esp, 4
lea ecx, [ebp - 0x34]
mov edi, eax
call fcn.00401f10
push eax
call fcn.00609a4e
add esi, edi
lea esi, [eax + esi + 3]
lea edi, [esi + esi]
push edi
call fcn.00622acb
mov edx, eax
add esp, 8
cmp edx, ebx
mov dword [ebp - 0x28], edx
je 0x418e7c
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x4c]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x34]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x40]
call fcn.00401f10
push eax
mov eax, dword [ebp - 0x28]
push esi
push eax
call fcn.006099de
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00609a4e
add esp, 0x18
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.00401070
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00401070
mov edx, dword [ebp - 0x28]
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x88]
cmp edx, ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x88], 0x3c
mov dword [ebp - 0x84], 0x40
mov dword [ebp - 0x7c], str.open
jne 0x418ed4
lea edx, [ebp - 0x24]
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], 3
mov dword [ebp - 0x68], ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov dword [ebp - 0x74], str._instdriv
jne 0x418efe
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x418f5f
mov eax, dword [ebp - 0x28]
cmp eax, ebx
jne 0x418f14
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
push ebx
push eax
call fcn.00414110
cmp al, bl
je 0x418f5f
lea eax, [ebp - 0x88]
push eax
call dword [0x6fc2d0]
test eax, eax
je 0x418f59
mov ecx, dword [ebp - 0x50]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [0x6fc458], 1
jmp 0x418f5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00401070
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret