Function at 0x427f44
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x104
mov eax, 0x52b444
call fcn.004e49d2
mov ebx, ecx
mov dword [ebp - 0xf4], ebx
push 6
lea ecx, [ebp - 0x110]
call fcn.004112f7
and dword [ebp - 4], 0
mov ecx, dword [ebx + 0x320]
test ecx, ecx
je 0x427fe8
mov eax, dword [ecx]
lea edx, [ebp - 0xf0]
push edx
call dword [eax]
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0xf0]
mov edi, dword [ebp - 0xec]
cmp esi, edi
je 0x427fdd
lea eax, [ebx + 0x350]
mov ebx, eax
lea eax, [esi + 0x38]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041140f
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x110]
call fcn.0041272d
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0041159b
push esi
mov ecx, ebx
call fcn.00414552
add esi, 0x50
cmp esi, edi
jne 0x427f9d
mov ebx, dword [ebp - 0xf4]
lea ecx, [ebp - 0xf0]
call fcn.00424804
lea ecx, [ebp - 0x88]
call fcn.00428302
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 3
call fcn.00428369
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.00427f31
mov byte [ebp - 0xe0], al
lea ecx, [ebp - 0x28]
mov edx, str.url_proxy.config
test al, al
jne 0x428024
mov edx, str.psiphon.config
call fcn.00426481
push eax
lea ecx, [ebp - 0xdc]
call fcn.00414765
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00416ab1
lea ecx, [ebp - 0x28]
call fcn.0044578a
push eax
lea ecx, [ebp - 0xc4]
call fcn.00414765
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00416ab1
sub esp, 0x18
lea eax, [ebp - 0x110]
mov ecx, esp
push eax
call fcn.00411451
lea ecx, [ebp - 0xa8]
call fcn.0041163b
mov eax, dword [ebx + 0x2f0]
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0x90], eax
call fcn.00445863
test al, al
jne 0x4280d8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0xfc
push str.CoreTransport::TransportConnectHelper
push str._s:_d___WriteParameterFiles_failed:__d
push 1
push 0
call fcn.0043a0a0
add esp, 0x18
mov byte [ebp - 0xe1], 0
push 0x5dbeac
lea eax, [ebp - 0xe1]
push eax
call fcn.004fda0a
cmp dword [ebp - 0x48], 0
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
je 0x428114
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call edi
test eax, eax
jne 0x428114
call esi
cmp eax, 2
je 0x428114
push str.Failed_to_delete_previously_applied_upgrade_package__Please_report_this_error.
push 0
push 0
call fcn.0043a0a0
add esp, 0xc
cmp dword [ebp - 0x30], 0
je 0x428149
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call edi
test eax, eax
jne 0x428149
call esi
cmp eax, 2
je 0x428149
cmp eax, 3
je 0x428149
push str.Failed_to_delete_previously_applied_upgrade_package__Please_report_this_error.
push 0
push 0
call fcn.0043a0a0
add esp, 0xc
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004283da
test al, al
jne 0x42819a
call esi
push eax
push 0x116
push str.CoreTransport::TransportConnectHelper
push str._s:_d___SpawnCoreProcess_failed:__d
jmp 0x4280b4
mov ecx, dword [ebx + 0x14]
push 0
push dword [ebx + 0x18]
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jne 0x4282f8
cmp byte [ebx + 0x335], al
jne 0x4281b1
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
test al, al
jne 0x428176
mov byte [ebp - 0xe1], 1
jmp 0x4280c7
mov eax, dword [ebx + 0x2ec]
mov ecx, dword [ebx + 0x32c]
mov dword [eax + 0x10], ecx
mov eax, dword [ebx + 0x2ec]
mov ecx, dword [ebx + 0x330]
mov dword [eax + 8], ecx
mov eax, dword [ebx + 0x2ec]
mov ecx, dword [ebx + 0x330]
mov dword [eax + 0xc], ecx
xor eax, eax
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], eax
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 5
call fcn.0045cbf0
call fcn.004587ac
test al, al
je 0x428226
mov eax, dword [ebp - 0xec]
mov esi, dword [ebp - 0xf0]
sub eax, esi
push 0x18
cdq
pop edi
idiv edi
test eax, eax
jne 0x4282eb
push dword [ebx + 0x32c]
push str.SOCKS_proxy_is_running_on_localhost_port__d.
push 0
push 0
call fcn.0043a0a0
push dword [ebx + 0x330]
push str.HTTP_proxy_is_running_on_localhost_port__d.
push 0
push 0
call fcn.0043a0a0
add esp, 0x20
lea ecx, [ebp - 0xf0]
call fcn.00424933
lea ecx, [ebp - 0xa8]
call fcn.0041159b
push 0
push 1
lea ecx, [ebp - 0xc4]
call fcn.00416ab1
push 0
push 1
lea ecx, [ebp - 0xdc]
call fcn.00416ab1
lea ecx, [ebp - 0x88]
call fcn.00428335
lea ecx, [ebp - 0x110]
call fcn.0041159b
call fcn.004e497c
ret
cmp dword [esi + 0x14], 8
jb 0x4282ab
mov eax, dword [esi]
jmp 0x4282ad
mov eax, esi
push dword [ebx + 0x32c]
push eax
push str.SOCKS_proxy_is_running_on__s_port__d.
push 0
push 2
call fcn.0043a0a0
add esp, 0x14
cmp dword [esi + 0x14], 8
jb 0x4282cf
mov eax, dword [esi]
jmp 0x4282d1
mov eax, esi
push dword [ebx + 0x330]
push eax
push str.HTTP_proxy_is_running_on__s_port__d.
push 0
push 2
call fcn.0043a0a0
add esp, 0x14
add esi, edi
cmp esi, dword [ebp - 0xec]
jne 0x4282a1
jmp 0x428251
push 0x5dbe9c
jmp 0x4280cc