Function at 0x40f88d
Capabilities:
Delete file

Disassembly:
push 0x18
mov eax, 0x444051
call fcn.004420ed
mov ebx, ecx
mov eax, dword [ebx + 4]
mov edi, dword [ebp + 8]
add eax, 0x84
push eax
push str.ClientConfigPath
mov ecx, edi
call fcn.0041f8d2
push str..dat
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.0041f554
and dword [ebp - 4], 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.0042d126
lea eax, [ebp - 0x10]
push eax
lea ecx, [edi + 0x18]
call fcn.00403d39
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
push str.ServerConfigPath
call fcn.0041f8d2
mov eax, dword [ebx + 4]
mov esi, str.true
mov al, byte [eax + 0x80]
test al, al
je 0x40f938
push esi
lea ecx, [ebp + 0xc]
call fcn.00402a4c
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 1
push eax
push str.JustDownloadUpdates
mov ecx, edi
call fcn.0041f8d2
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00401759
mov eax, dword [ebx + 4]
mov al, byte [eax + 0x81]
test al, al
je 0x40f971
push esi
lea ecx, [ebp + 0xc]
call fcn.00402a4c
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 2
push eax
push str.StartMinimized
mov ecx, edi
call fcn.0041f8d2
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00401759
mov ecx, dword [ebx + 4]
push 0
add ecx, 4
call fcn.00402bb2
push eax
push 0x44ce54
mov ecx, edi
call fcn.0041f8d2
mov eax, dword [ebx + 4]
mov ecx, edi
add eax, 0x8c
push eax
push str.restartapp
call fcn.0041f8d2
mov eax, dword [ebx + 4]
mov ecx, edi
add eax, 0x90
push eax
push str.restartappcmd
call fcn.0041f8d2
mov eax, dword [ebx + 4]
mov al, byte [eax + 0x94]
test al, al
je 0x40f9ee
push esi
lea ecx, [ebp + 0xc]
call fcn.00402a4c
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 3
push eax
push str.startappfirst
mov ecx, edi
call fcn.0041f8d2
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00401759
mov eax, dword [ebx + 4]
mov al, byte [eax + 0x82]
test al, al
je 0x40fa27
push esi
lea ecx, [ebp + 0xc]
call fcn.00402a4c
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 4
push eax
push str.NoGUI
mov ecx, edi
call fcn.0041f8d2
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00401759
mov eax, dword [ebx + 4]
mov al, byte [eax + 0x83]
test al, al
je 0x40fa60
push esi
lea ecx, [ebp + 0xc]
call fcn.00402a4c
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 5
push eax
push str.ReducedGUI
mov ecx, edi
call fcn.0041f8d2
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00401759
push str.checknow
lea ecx, [ebp + 8]
call fcn.00402a4c
mov byte [ebp - 4], 6
cmp dword [ebx + 0x10], 1
jne 0x40fa7e
push str.silent
jmp 0x40fa96
cmp dword [ebx + 0x10], 2
jne 0x40fa8b
push str.silentall
jmp 0x40fa96
cmp dword [ebx + 0x10], 3
jne 0x40fa9e
push str.silentcritical
lea ecx, [ebp + 8]
call fcn.00402a22
push str._install
lea ecx, [ebp + 0xc]
call fcn.00402a4c
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 7
push eax
mov ecx, edi
call fcn.0041f8a5
mov byte [ebp - 4], 6
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00401759
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.0041f8a5
mov ecx, dword [edi + 0x10]
sub ecx, 0x10
call fcn.00401706
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 8
push eax
mov ecx, edi
call fcn.0041f866
mov eax, dword [ebx + 4]
lea ecx, [eax + 0x50]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0x4c]
cmp dword [ecx - 0xc], 0
je 0x40fb91
add ecx, 0xfffffff0
call fcn.00401706
add eax, 0x10
mov dword [ebp + 0xc], eax
push 0x44cf48
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 9
call fcn.0040145f
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
call fcn.0042971b
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x18]
call fcn.00404403
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 0xc]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004015d8
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401759
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0041f8a5
lea ecx, [ebp - 0x24]
call fcn.00401d52
mov byte [ebp - 4], 8
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00401759
mov ecx, dword [ebx + 4]
call fcn.0041166c
lea ecx, [esi - 0x10]
call fcn.00401759
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00401759
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401759
xor eax, eax
call fcn.004420b6
ret 8