Function at 0x480200
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create thread
Create udp socket
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x51cca4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp byte [ebx + 0x44], 0
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
je 0x480235
push dword [ebx + 0x2c]
call edi
mov dword [ebx + 0x2c], 0
jmp 0x48024a
call fcn.0047e310
push esi
mov ecx, ebx
call fcn.0047f870
test al, al
je 0x480583
cmp byte [ebx + 0x44], 0
je 0x4804bd
cmp dword [0x51f2e0], 1
jne 0x48042a
cmp dword [0x51f2d0], 0x10
mov eax, 0x51f2bc
push 0
cmovae eax, dword [0x51f2bc]
push eax
push esi
call fcn.004664c0
add esp, 0xc
mov dword [ebx + 0x2c], eax
test eax, eax
je 0x480583
mov ecx, ebx
mov dword [ebx + 0x34], 0
call fcn.0047f140
test al, al
je 0x480547
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
xorps xmm0, xmm0
push 0xf
movups xmmword [ebp - 0xbc], xmm0
movups xmmword [ebp - 0xac], xmm0
call esi
push 0x20b
mov dword [ebp - 0xbc], eax
call esi
cmp dword [0x51f2e4], 0
mov ecx, 0x103
mov dword [ebp - 0xb8], eax
mov eax, 0x102
cmovne eax, ecx
push eax
call esi
mov dword [ebp - 0xa0], eax
xorps xmm0, xmm0
lea eax, [ebp - 0xbc]
mov dword [ebp - 0x90], 0x20
mov dword [ebp - 0x94], eax
mov ecx, ebx
lea eax, [ebp - 0x94]
movq qword [ebp - 0x8c], xmm0
push eax
call fcn.004809c0
movups xmm0, xmmword [0x4ebd28]
push 0x70
lea eax, [ebp - 0x74]
mov dword [ebp - 0xc0], 0x3f
push 0
push eax
movups xmmword [ebp - 0x84], xmm0
call fcn.0048e7f0
add esp, 0xc
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea ecx, [ebp - 0x84]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x480360
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [ebp - 0xc0], eax
add eax, 0x20
push eax
call fcn.00489827
mov esi, dword [sym.imp.WS2_32.dll_htonl]
mov edi, eax
add esp, 4
xorps xmm0, xmm0
movups xmmword [edi], xmm0
push 0x12e
movups xmmword [edi + 0x10], xmm0
call esi
mov dword [edi], eax
push dword [ebp - 0xc0]
call esi
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x84]
push dword [ebp - 0xc0]
push eax
lea eax, [edi + 0x20]
push eax
call fcn.0048e270
mov eax, dword [ebp - 0xc0]
add esp, 0xc
add eax, 0x20
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x94]
movq qword [ebp - 0x8c], xmm0
push eax
mov ecx, ebx
call fcn.004809c0
push edi
call fcn.00489830
push 0x14
call fcn.004897e6
mov esi, eax
add esp, 8
mov dword [ebp - 0xc4], esi
test esi, esi
je 0x480507
mov dword [esi + 8], 0
mov byte [esi + 0xc], 1
mov dword [esi], vtable.UsbReadThread.0
mov dword [esi + 0x10], ebx
jmp 0x480509
mov eax, dword [ebx + 0x48]
xorps xmm0, xmm0
movups xmmword [ebp - 0x94], xmm0
mov dword [ebp - 0x90], eax
mov eax, 2
mov word [ebp - 0x94], ax
movzx eax, word [ebx + 0x4c]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
push 0
push 1
push 2
mov word [ebp - 0x92], ax
call dword [sym.imp.WS2_32.dll_socket]
push 0x10
lea ecx, [ebp - 0x94]
mov dword [ebx + 0x2c], eax
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x48028b
push dword [ebx + 0x2c]
call edi
push str.Reconnect_timed_out
lea ecx, [ebp - 0xb4]
mov dword [ebx + 0x2c], 0
call fcn.00460690
lea eax, [ebp - 0xb4]
mov ecx, esi
push eax
call fcn.00460d30
lea ecx, [ebp - 0xb4]
call fcn.00460af0
jmp 0x480583
inc dword [ebx + 0x70]
lea eax, [ebp - 0x94]
push 0
push 0
push 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x94], str.tcp:8739
push 0x4e45504f
mov ecx, ebx
mov dword [ebp - 0x90], 9
movq qword [ebp - 0x8c], xmm0
call fcn.004805f0
test al, al
jne 0x48028b
push str.Reconnect_failed__err21_
jmp 0x48054c
xor esi, esi
lea eax, [esi + 4]
mov byte [esi + 0xc], 1
push eax
push 0
push esi
push 0x464130
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xeeeeeeee
mov ecx, ebx
mov dword [esi + 8], eax
call fcn.00480a10
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489c7b
mov esp, ebp
pop ebp
ret 8
push str.Reconnect_failed
lea ecx, [ebp - 0x9c]
call fcn.00460690
lea eax, [ebp - 0x9c]
mov ecx, esi
push eax
call fcn.00460d30
mov eax, dword [ebp - 0x88]
cmp eax, 0x10
jb 0x480583
inc eax
lea ecx, [ebp - 0x9c]
push eax
push dword [ebp - 0x9c]
call fcn.00464490
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00489c7b
mov esp, ebp
pop ebp
ret 8