Function at 0x428740
Capabilities:
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Start tcp server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435de6
mov eax, dword fs:[0]
push eax
mov eax, 0x12ec
call fcn.00431350
mov eax, dword [0x4420a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
xorps xmm0, xmm0
push 0x18e
push eax
mov word [ebp - 0x12f0], ax
lea eax, [ebp - 0x12ee]
push eax
movdqu xmmword [ebp - 0x1150], xmm0
movdqu xmmword [ebp - 0x1160], xmm0
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x12f0]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x428803
push 0x7f
lea eax, [ebp - 0x8f]
mov byte [ebp - 0x90], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SOCKET:Socket_start_failed___error_code___d_n
lea eax, [ebp - 0x90]
push eax
call fcn.00402a10
mov ecx, dword [0x44381c]
lea eax, [ebp - 0x90]
add esp, 0xc
push eax
call fcn.00423ea0
jmp 0x428c00
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
mov dword [ebp - 0x12f8], esi
cmp esi, 0xffffffff
jne 0x428843
push 0x7f
lea eax, [ebp - 0x8f]
mov byte [ebp - 0x90], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SOCKET:Socket_create_failed___error_code___d_n
jmp 0x4287dd
xorps xmm0, xmm0
mov dword [ebp - 0x12f4], 0x10
mov eax, 2
movdqu xmmword [ebp - 0x1150], xmm0
push 0xa1c7
mov word [ebp - 0x1150], ax
call sub.WS2_32.dll_htons
push str.127.0.0.1
mov word [ebp - 0x114e], ax
call sub.WS2_32.dll_inet_addr
push 0xa1c7
mov dword [ebp - 0x114c], eax
call fcn.00429a00
add esp, 4
lea eax, [ebp - 0x1150]
push 0x10
push eax
push esi
call sub.WS2_32.dll_bind
cmp eax, 0xffffffff
jne 0x4288d1
push 0x7f
lea eax, [ebp - 0x8f]
mov byte [ebp - 0x90], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SOCKET:Bind_to_IP_addr_failed___error_code___d_n
jmp 0x4287dd
push 0xa
push esi
call sub.WS2_32.dll_listen
push 0x7f
push 0
cmp eax, 0xffffffff
jne 0x428909
lea eax, [ebp - 0x8f]
mov byte [ebp - 0x90], 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SOCKET:Set_sock_listen_failed___error_code___d_n
jmp 0x4287dd
lea eax, [ebp - 0x10f]
mov byte [ebp - 0x110], 0
push eax
call sub.MSVCR120.dll_memset
push 0xa1c7
lea eax, [ebp - 0x110]
push str.SOCKET:start_listen_to_port:__d_n
push eax
call fcn.00402a10
mov ecx, dword [0x44381c]
lea eax, [ebp - 0x110]
add esp, 0x18
push eax
call fcn.00423ea0
lea eax, [ebp - 0x12f4]
push eax
lea eax, [ebp - 0x1160]
push eax
push esi
call sub.WS2_32.dll_accept
mov edi, eax
cmp edi, 0xffffffff
je 0x428bae
jmp 0x428970
mov ecx, dword [0x44381c]
push str.coming_msg......
call fcn.00423ea0
mov dword [ebp - 0x112c], 0xf
mov dword [ebp - 0x1130], 0
mov byte [ebp - 0x1140], 0
mov dword [ebp - 4], 0
push 0xfff
lea eax, [ebp - 0x110f]
mov byte [ebp - 0x1110], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1110]
push 0
push 0x1000
push eax
push edi
call sub.WS2_32.dll_recv
cmp byte [ebp - 0x1110], 0
mov esi, eax
jne 0x4289e2
xor ecx, ecx
jmp 0x4289f9
lea ecx, [ebp - 0x1110]
lea edx, [ecx + 1]
jmp 0x4289f0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4289f0
sub ecx, edx
push ecx
lea eax, [ebp - 0x1110]
push eax
lea ecx, [ebp - 0x1140]
call fcn.004063e0
push 4
push 0
push str._r_n_r_n
lea ecx, [ebp - 0x1140]
call fcn.00412f70
cmp eax, 0xffffffff
jne 0x428a2d
test esi, esi
jg 0x4289a2
cmp dword [ebp - 0x112c], 0x10
lea eax, [ebp - 0x1140]
mov ecx, dword [0x44381c]
cmovae eax, dword [ebp - 0x1140]
push eax
call fcn.00423ea0
test esi, esi
jg 0x428a5c
push edi
call sub.WS2_32.dll_closesocket
jmp 0x428b6b
push 0xc
push str.jsoncallback
lea ecx, [ebp - 0x1128]
mov dword [ebp - 0x1114], 0xf
mov dword [ebp - 0x1118], 0
mov byte [ebp - 0x1128], 0
call fcn.00406720
push str.Droid4X.exe
mov byte [ebp - 4], 1
call fcn.00426170
add esp, 4
lea ecx, [ebp - 0x1128]
test eax, eax
je 0x428aad
push 6
push str._ok_
jmp 0x428ab4
push 0xd
push str._not_start_
call fcn.004063e0
cmp dword [ebp - 0x1114], 0x10
lea eax, [ebp - 0x1128]
push 0
push dword [ebp - 0x1118]
cmovae eax, dword [ebp - 0x1128]
push eax
push edi
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x428b1d
push 0x7f
lea eax, [ebp - 0x8f]
mov byte [ebp - 0x90], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
call sub.WS2_32.dll_WSAGetLastError
push eax
lea eax, [ebp - 0x90]
push str.SOCKET:send_msg_to_web_failed___error_code___d_n
push eax
call fcn.00402a10
add esp, 0xc
lea eax, [ebp - 0x90]
jmp 0x428b42
lea eax, [ebp - 0x1140]
mov ecx, 0x443864
push eax
call fcn.00429eb0
cmp dword [ebp - 0x1114], 0x10
lea eax, [ebp - 0x1128]
cmovae eax, dword [ebp - 0x1128]
mov ecx, dword [0x44381c]
push eax
call fcn.00423ea0
push edi
call sub.WS2_32.dll_closesocket
cmp dword [ebp - 0x1114], 0x10
jb 0x428b6b
push dword [ebp - 0x1128]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x112c], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x428b89
push dword [ebp - 0x1140]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [ebp - 0x12f8]
lea eax, [ebp - 0x12f4]
push eax
lea eax, [ebp - 0x1160]
push eax
push esi
call sub.WS2_32.dll_accept
mov edi, eax
cmp edi, 0xffffffff
jne 0x428970
push 0x7f
lea eax, [ebp - 0x8f]
mov byte [ebp - 0x90], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x90]
push str.SOCKET:Error_when_process_connecting___error_code___d_n
push eax
call fcn.00402a10
mov ecx, dword [0x44381c]
lea eax, [ebp - 0x90]
add esp, 0xc
push eax
call fcn.00423ea0
push esi
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
xor eax, eax
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.004308d0
mov esp, ebp
pop ebp
ret