Function at 0x418082
Capabilities:
Check if file exists
Create process on windows

Disassembly:
mov eax, 0x483467
call fcn.00482d18
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov bh, cl
mov bl, 1
mov byte [ebp - 0x11], bl
lea ecx, [ebp - 0x24]
call fcn.00402286
lea ecx, [ebp - 0x1c]
call fcn.00402286
lea ecx, [ebp - 0x18]
call fcn.00402286
lea ecx, [ebp - 0x20]
call fcn.00402286
and dword [ebp - 4], 0
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x1c
pop edx
lea ecx, [ebp - 0x2c]
call fcn.00416df6
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.0040222d
lea ecx, [ebp - 0x2c]
call fcn.0040223f
lea eax, [ebp - 0x2c]
push eax
call fcn.0040b41d
push dword [eax]
push dword [ebp - 0x24]
push 0x49a36c
lea eax, [ebp - 0x1c]
push eax
call fcn.0040289a
add esp, 0x10
lea ecx, [ebp - 0x2c]
call fcn.0040223f
push 0x4a2bc8
mov esi, 0x49a000
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00405731
add esp, 0xc
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00405731
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.0040222d
lea ecx, [ebp - 0x2c]
call fcn.0040223f
lea ecx, [ebp - 0x28]
call fcn.0040223f
lea eax, [ebp - 0x30]
push eax
call fcn.0040b5ac
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00405731
add esp, 0xc
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00405774
add esp, 0xc
push eax
lea ecx, [ebp - 0x20]
call fcn.0040222d
lea ecx, [ebp - 0x2c]
call fcn.0040223f
lea ecx, [ebp - 0x28]
call fcn.0040223f
lea ecx, [ebp - 0x30]
call fcn.0040223f
lea ecx, [ebp - 0x18]
call fcn.00402642
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41826f
push ecx
mov ecx, esp
lea eax, [ebp - 0x18]
push eax
call fcn.00402274
push ecx
mov ecx, esp
lea eax, [ebp - 0x20]
push eax
call fcn.00402274
lea ecx, [ebp - 0x30]
call fcn.00416db5
pop ecx
pop ecx
test eax, eax
jne 0x4181ec
push dword [ebp - 0x30]
push str.RelaunchConnectforLocalappdataUpdate___CopyFileTo_failed___Er_d
call fcn.0041c68c
pop ecx
pop ecx
xor bl, bl
mov byte [ebp - 0x11], bl
lea ecx, [ebp + 8]
test bh, bh
je 0x418210
push 0
push str._LaunchAppArgs
call fcn.0040580b
cmp eax, 0xffffffff
je 0x41821a
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.004188c8
jmp 0x41821a
push str.__Relaunched_instance_true
call fcn.004021f7
push 1
lea ecx, [ebp - 0x1c]
call fcn.00402642
push eax
lea ecx, [ebp + 8]
call fcn.00402642
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040b5ac
mov ecx, eax
call fcn.00402642
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
lea ecx, [ebp - 0x30]
call fcn.0040223f
cmp esi, 0x20
jle 0x418267
push str.RelaunchConnectforLocalappdataUpdate___ShellExecute_Success
call fcn.0041c68c
jmp 0x418282
push esi
push str.RelaunchConnectforLocalappdataUpdate___ShellExecute_Failed___Er_d
jmp 0x418277
push dword [ebp - 0x18]
push str.RelaunchConnectforLocalappdataUpdate____s_File_Not_Found
call fcn.0041c68c
xor bl, bl
mov byte [ebp - 0x11], bl
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
jmp 0x4182a1
lea ecx, [ebp - 0x20]
call fcn.0040223f
lea ecx, [ebp - 0x18]
call fcn.0040223f
lea ecx, [ebp - 0x1c]
call fcn.0040223f
lea ecx, [ebp - 0x24]
call fcn.0040223f
lea ecx, [ebp + 8]
call fcn.0040223f
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret