Function at 0x408df0
Capabilities:
Create pipe
Delete file
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539d04
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x58d214]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1dc], ecx
push 0x104
push 0
lea eax, [ebp - 0x178]
push eax
call fcn.0050d990
add esp, 0xc
lea ecx, [ebp - 0x178]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x178]
push edx
lea ecx, [ebp - 0x190]
call fcn.004076e0
mov dword [ebp - 4], 0
push str.ChannelIstaller.exe
lea ecx, [ebp - 0x190]
call fcn.00408690
lea ecx, [ebp - 0x190]
call fcn.0040b5b0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x1dc]
mov ecx, dword [eax + 4]
mov dword [ecx], 0x408cb0
mov edx, dword [ebp - 0x1dc]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x1dc]
mov dword [eax + 4], ecx
push str.https:__static.lagofast.com_official_pc_client_channel_LGInstaller.exe
lea ecx, [ebp - 0x1a8]
call fcn.004076e0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1dc]
movzx eax, byte [edx + 0x60]
test eax, eax
je 0x408ed7
push str.https:__envteststatic.lagofast.com_official_pc_client_channel_LGInstaller.exe
lea ecx, [ebp - 0x1a8]
call fcn.004080a0
lea ecx, [ebp - 0x190]
push ecx
lea edx, [ebp - 0x1a8]
push edx
mov ecx, dword [ebp - 0x1dc]
call fcn.004089e0
mov dword [ebp - 0x1ec], eax
cmp dword [ebp - 0x1ec], 0xc8
je 0x408f4c
push 0
push 0
push 0x466
mov eax, dword [ebp - 0x1dc]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
push str.down_load_up_grade_file_failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1a8]
call fcn.00407ce0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x190]
call fcn.00407ce0
jmp 0x4093d4
lea ecx, [ebp - 0x1c0]
call fcn.00407750
mov byte [ebp - 4], 2
push 0x64
push 0
lea edx, [ebp - 0x74]
push edx
call fcn.0050d990
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str..pipe_autoupdate_pipe_lagofast__d
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
push 0x200
push 0x200
push 1
push 0
push 0x40000003
lea ecx, [ebp - 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov edx, dword [ebp - 0x1dc]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0x1dc]
cmp dword [eax + 0x20], 0
je 0x409149
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x25c]
call fcn.00407820
mov dword [ebp - 0x1f0], eax
mov edx, dword [ebp - 0x1f0]
mov dword [ebp - 0x1f4], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1f4]
push eax
push str.__update_namepipestr
lea ecx, [ebp - 0x244]
push ecx
call fcn.00405930
add esp, 0xc
mov dword [ebp - 0x1f8], eax
mov ecx, dword [ebp - 0x1f8]
call fcn.0040b600
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x244]
call fcn.00407d30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x25c]
call fcn.00407d30
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x21c], esp
lea edx, [ebp - 0x74]
push edx
call fcn.00407820
lea eax, [ebp - 0x274]
push eax
call fcn.0040a040
add esp, 0x1c
mov dword [ebp - 0x1fc], eax
mov ecx, dword [ebp - 0x1fc]
mov dword [ebp - 0x200], ecx
mov edx, dword [ebp - 0x200]
push edx
lea ecx, [ebp - 0x1c0]
call fcn.00408010
lea ecx, [ebp - 0x274]
call fcn.00407ce0
mov ecx, dword [ebp - 0x1dc]
add ecx, 0x28
call fcn.004082b0
movzx eax, al
test eax, eax
je 0x4090ac
mov ecx, dword [ebp - 0x1dc]
add ecx, 0x28
call fcn.004056d0
mov ecx, eax
call fcn.0040bc40
push 8
call fcn.004d4602
add esp, 4
mov dword [ebp - 0x1e4], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x1e4], 0
je 0x40911a
mov ecx, dword [ebp - 0x1dc]
mov dword [ebp - 0x204], ecx
mov dword [ebp - 0x208], 0x4098e0
mov edx, dword [ebp - 0x1dc]
add edx, 0x20
push edx
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x22c]
push edx
call fcn.00407120
add esp, 0x10
push eax
mov ecx, dword [ebp - 0x1e4]
call fcn.004055a0
mov dword [ebp - 0x1e8], eax
jmp 0x409124
mov dword [ebp - 0x1e8], 0
mov eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x20c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20c]
push ecx
mov ecx, dword [ebp - 0x1dc]
add ecx, 0x28
call fcn.004073b0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x220], esp
lea edx, [ebp - 0x1c0]
push edx
call fcn.00407660
mov eax, dword [ebp - 0x1dc]
add eax, 0x30
push eax
lea ecx, [ebp - 0x190]
push ecx
call fcn.004093f0
add esp, 0x20
mov byte [ebp - 0x1dd], al
movzx edx, byte [ebp - 0x1dd]
test edx, edx
jne 0x409308
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x2a4]
push eax
call fcn.0040c1a0
add esp, 8
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x210]
mov dword [ebp - 0x214], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x214]
push edx
push str.execute_installer_failed_with_error:
lea eax, [ebp - 0x28c]
push eax
call fcn.004057e0
add esp, 0xc
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x218]
call fcn.0040b5b0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x28c]
call fcn.00407ce0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2a4]
call fcn.00407ce0
lea ecx, [ebp - 0x190]
push ecx
lea edx, [ebp - 0x1d8]
push edx
call fcn.00409ee0
add esp, 8
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1dc]
add ecx, 0x48
call fcn.0040b750
movzx eax, al
test eax, eax
je 0x409249
push 0x544afc
mov ecx, dword [ebp - 0x1dc]
add ecx, 0x48
call fcn.004081c0
push 0
push 0
push 0x466
mov ecx, dword [ebp - 0x1dc]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x1dc]
mov byte [eax + 0x18], 1
mov ecx, dword [ebp - 0x1dc]
cmp dword [ecx + 0x1c], 0
je 0x409298
mov edx, dword [ebp - 0x1dc]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0x1dc]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1dc]
cmp dword [eax + 0x20], 0
je 0x4092c4
mov ecx, dword [ebp - 0x1dc]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1dc]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1d8]
call fcn.00407d30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c0]
call fcn.00407ce0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1a8]
call fcn.00407ce0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x190]
call fcn.00407ce0
jmp 0x4093d4
mov edx, dword [ebp - 0x1dc]
mov byte [edx + 0x18], 1
mov eax, dword [ebp - 0x1dc]
cmp dword [eax + 0x1c], 0
je 0x40933e
mov ecx, dword [ebp - 0x1dc]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0x1dc]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1dc]
cmp dword [edx + 0x20], 0
je 0x40936a
mov eax, dword [ebp - 0x1dc]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1dc]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x64
push 0x465
mov ecx, dword [ebp - 0x1dc]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x65
push 0x465
mov eax, dword [ebp - 0x1dc]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c0]
call fcn.00407ce0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1a8]
call fcn.00407ce0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x190]
call fcn.00407ce0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d48f1
mov esp, ebp
pop ebp
ret