Function at 0x4854a0
Capabilities:
Create tcp socket
Create udp socket
Get hostname
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket
Set registry value
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddaa8
mov eax, dword fs:[0]
push eax
sub esp, 0x1dc
mov eax, dword [0x51cca4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 4
lea ecx, [ebp - 0x1d8]
mov dword [edi + 0x40], eax
push ecx
push 0x20
push 0xffff
push eax
mov dword [ebp - 0x1d8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x485952
push 0x40
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.0048e7f0
add esp, 0xc
push 0x1470
call dword [sym.imp.WS2_32.dll_ntohl]
cmp dword [edi + 0x3c], 0x10
mov dword [ebp - 0x88], eax
lea eax, [edi + 0x28]
mov dword [ebp - 0x1d4], eax
jb 0x48553e
mov ecx, dword [eax]
jmp 0x485540
mov ecx, eax
lea edx, [ebp - 0x7c]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x485543
mov eax, dword [str.Windows]
mov dword [ebp - 0x68], eax
mov eax, dword [0x4ecacc]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x1dc]
push eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x1dc], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov ecx, 1
mov dword [ebp - 0x1d0], ecx
nop word [eax + eax]
mov eax, dword [0x520890]
test eax, eax
je 0x48594b
cmp eax, edi
jne 0x48594b
cmp dword [edi + 0x40], 0
je 0x48594b
cmp ecx, 5
jl 0x4855bb
push str.255.255.255.255
jmp 0x4855cb
call fcn.004852c0
mov esi, eax
test esi, esi
jne 0x4855d3
push str.192.168.49.1
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
xorps xmm0, xmm0
push 0x1f40
movups xmmword [ebp - 0x38], xmm0
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x36], ax
mov eax, 2
push 0x10
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x38]
push eax
push 0
push 0x40
lea eax, [ebp - 0x88]
mov dword [ebp - 0x34], esi
push eax
push dword [edi + 0x40]
call dword [sym.imp.WS2_32.dll_sendto]
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x1c8], eax
mov dword [ebp - 0x1cc], 1
mov dword [ebp - 0x1e8], 3
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x28]
push str.Connecting_to__s
push eax
call fcn.004645f0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0047d8c0
add esp, 0x14
lea eax, [ebp - 0x1e8]
push eax
push 0
push 0
lea eax, [ebp - 0x1cc]
push eax
mov eax, dword [edi + 0x40]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x485901
mov eax, dword [edi + 0x40]
test eax, eax
je 0x485901
lea ecx, [ebp - 0x1cc]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x485766
push 0x40
lea eax, [ebp - 0xc8]
push 0
push eax
call fcn.0048e7f0
add esp, 0xc
mov dword [ebp - 0x1e0], 0x10
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0x40
lea eax, [ebp - 0xc8]
push eax
push dword [edi + 0x40]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x4858ea
cmp eax, 0x40
je 0x485730
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x4857b3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00464490
jmp 0x4857b3
mov eax, dword [ebp - 0xc8]
cmp eax, 0x2710
ja 0x485748
cmp eax, 0x1388
jae 0x4857ce
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x4857b3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00464490
jmp 0x4857b3
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x4857b3
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x4857aa
test cl, 0x1f
jne 0x485919
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x485919
sub ecx, eax
cmp ecx, 4
jb 0x485919
cmp ecx, 0x23
ja 0x485919
mov ecx, eax
push ecx
call fcn.0048966e
add esp, 4
mov ecx, dword [ebp - 0x1d0]
inc ecx
mov dword [ebp - 0x1d0], ecx
cmp ecx, 6
jle 0x485590
jmp 0x48594b
mov eax, dword [0x520884]
test eax, eax
je 0x4858e0
cmp dword [edi + 0x24], 0x10
lea esi, [edi + 0x10]
jb 0x4857e8
mov ecx, dword [esi]
jmp 0x4857ea
mov ecx, esi
push dword [ebp - 0x44]
push ecx
push 0x883b
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp esi, 0x520894
je 0x485811
push 0xffffffffffffffff
push 0
push esi
mov ecx, 0x520894
call fcn.004641c0
cmp dword [esi + 0x14], 0x10
jb 0x485819
mov esi, dword [esi]
push 0
lea eax, [ebp - 0x1d0]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwarePdaNetAndroid
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x485871
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push 0
push str.LastWifiSsid3
push dword [ebp - 0x1d0]
call esi
push dword [ebp - 0x1d0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x485877
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [edi + 0x3c], 0x10
jb 0x485886
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x1d4], eax
push 0
lea eax, [ebp - 0x1d0]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwarePdaNetAndroid
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4858e0
push dword [ebp - 0x1d4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp - 0x1d4]
push 1
push 0
push str.LastWifiMac3
push dword [ebp - 0x1d0]
call esi
push dword [ebp - 0x1d0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.00460af0
jmp 0x48594b
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x48594b
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00464490
jmp 0x48594b
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x48594b
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x485942
test cl, 0x1f
je 0x48591e
call fcn.004960c1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x48592a
call fcn.004960c1
sub ecx, eax
cmp ecx, 4
jae 0x485936
call fcn.004960c1
cmp ecx, 0x23
jbe 0x485940
call fcn.004960c1
mov ecx, eax
push ecx
call fcn.0048966e
add esp, 4
mov ecx, edi
call fcn.00484580
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00489c7b
mov esp, ebp
pop ebp
ret