Function at 0x4047f0
Capabilities:
Check mutex on windows
Create directory
Create process on windows
Get common file path
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x442070]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
push edi
push str.ValveHalfLifeLauncherMutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40485f
cmp eax, 0x80
je 0x40485f
push 0x10
push 0x43d840
push 0x43d848
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.00411852
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x80]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push str..platformmaterials
call esi
push 0
push str..platformmaterials_release
call esi
push 3
call dword [sym.imp.libcurl.dll_curl_global_init]
add esp, 4
call dword [sym.imp.libcurl.dll_curl_easy_init]
mov edi, eax
test edi, edi
je 0x404999
push str.5.php
lea ecx, [esp + 0x64]
call fcn.00409260
mov esi, dword [sym.imp.libcurl.dll_curl_easy_setopt]
lea ecx, [esp + 0x64]
add esp, 4
cmp dword [esp + 0x74], 0x10
cmovae ecx, dword [esp + 0x60]
push ecx
push 0x2712
push edi
call esi
add esp, 0xc
push 1
push 0x34
push edi
call esi
add esp, 0xc
push 0
push 0x40
push edi
call esi
add esp, 0xc
push 0
push 0x51
push edi
call esi
add esp, 0xc
push 0x403360
push 0x4e2b
push edi
call esi
add esp, 0xc
push 0x443fc4
push 0x2711
push edi
call esi
add esp, 0xc
push 4
push 0xd
push edi
call esi
add esp, 0xc
push 4
push 0x4e
push edi
call esi
add esp, 0xc
push str.Mozilla_5.0__compatible__YandexBot_3.0__http:__yandex.com_bots_
push 0x2722
push edi
call esi
add esp, 0xc
push edi
call dword [sym.imp.libcurl.dll_curl_easy_perform]
add esp, 4
lea eax, [esp + 0x10]
push eax
push 0x200002
push edi
call dword [sym.imp.libcurl.dll_curl_easy_getinfo]
add esp, 0xc
cmp dword [esp + 0x10], 0xc8
jne 0x404977
call fcn.00403a00
push edi
call dword [sym.imp.libcurl.dll_curl_easy_cleanup]
mov eax, dword [esp + 0x78]
add esp, 4
cmp eax, 0x10
jb 0x404999
inc eax
lea ecx, [esp + 0x60]
push eax
push dword [esp + 0x64]
call fcn.004081d0
push 0x190
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x44
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00416110
add esp, 0xc
mov dword [esp + 0x18], 0x44
lea eax, [esp + 0x60]
xorps xmm0, xmm0
movaps xmmword [esp + 0x60], xmm0
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push str._game_cstrike__gl__32bpp__noforcemaccel__noforcemparms__noforcemspd
push str.hl.exe
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [esp + 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x64]
call esi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x18c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00411852
mov esp, ebp
pop ebp
ret 0x10