Function at 0x410fb0
Capabilities:
Connect socket
Connect udp socket
Create udp socket

Disassembly:
push ebp
mov eax, 0x51df34
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
call fcn.0040dc30
test eax, eax
mov ebx, eax
je 0x41140a
mov eax, dword [0x5602b4]
test eax, eax
je 0x411193
mov eax, 2
mov dword [ebp - 0x28], 0
mov word [ebp - 0x28], ax
movzx eax, word [ebp + 8]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_htons]
sub esp, 4
mov word [ebp - 0x26], ax
mov dword [esp], 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [esp + 8], 0
mov dword [esp], 2
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_socket]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x4110f7
lea edi, [ebp - 0x28]
mov dword [ebx + 0xc], eax
mov dword [esp + 8], 0x10
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_connect]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x411300
mov edx, dword [ebx + 4]
mov esi, 0xffffffff
test edx, edx
je 0x4110a5
cmp ebx, 0x5602c0
jb 0x4110a5
cmp ebx, 0x561ec0
jae 0x4110a5
mov esi, ebx
sub esi, 0x5602c0
sar esi, 3
imul esi, esi, 0xb6db6db7
add esi, 0x64
cmp dword [ebp + 0xc], 1
mov edx, 0x51d257
mov ecx, dword [ebp + 8]
mov eax, str.udp:
mov dword [esp + 0xc], esi
cmove eax, edx
add ebx, 0x18
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 8], str._d_lo_client:_s_d_
mov dword [esp + 4], 0x20
mov dword [esp], ebx
call fcn.0040bf20
test byte [0x561ee0], 0x80
jne 0x4111a0
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [ebp - 0x30]
mov dword [esp], edx
mov dword [ebp - 0x3c], edx
mov dword [esp + 4], eax
call fcn.004104a0
lea eax, [ebp - 0x2c]
mov edi, eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], str.cannot_create_socket:__s
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.0042a1c0
mov ecx, dword [ebp + 0x10]
mov dword [esp], edi
call fcn.004dbcb0
mov eax, dword [ebp - 0x2c]
lea esi, [eax - 0xc]
sub esp, 4
cmp esi, 0x516f30
jne 0x4114a4
mov eax, dword [ebp - 0x30]
lea esi, [eax - 0xc]
cmp esi, 0x516f30
jne 0x411440
test byte [0x561ee0], 0x80
mov edi, dword [sym.imp.msvcrt.dll__errno]
jne 0x411260
call edi
mov esi, dword [eax]
mov eax, ebx
call fcn.0040bec0
nop
call edi
mov dword [eax], esi
lea esp, [ebp - 0xc]
mov esi, 0xffffffff
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
call fcn.00410f50
jmp 0x410fda
mov edi, dword [sym.imp.msvcrt.dll__errno]
call edi
mov edx, 0x51d24e
cmp dword [ebp + 0xc], 1
mov eax, dword [eax]
mov dword [esp + 0x10], esi
mov dword [esp + 4], str.port__d_type__s___fd__d
mov dword [ebp - 0x40], eax
mov eax, 0x51d24a
cmove eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x2c]
mov dword [esp], edx
mov dword [esp + 8], eax
call fcn.0042a1c0
lea eax, [ebp - 0x30]
mov ecx, eax
mov ebx, eax
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x2ee
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
mov dword [ebp - 0x3c], eax
call fcn.0042a560
mov ecx, ebx
sub esp, 0x14
call fcn.0042a6d0
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.00505c10
mov ecx, ebx
call fcn.0042a790
mov eax, dword [ebp - 0x2c]
lea ecx, [eax - 0xc]
cmp ecx, 0x516f30
jne 0x411473
call edi
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call edi
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [esp + 4], 0x51d271
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call fcn.0042a1c0
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x2da
mov esi, dword [ebp - 0x3c]
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
mov ecx, esi
call fcn.0042a560
mov ecx, esi
sub esp, 0x14
call fcn.0042a6d0
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.00505c10
mov ecx, esi
call fcn.0042a790
mov eax, dword [ebp - 0x2c]
lea ecx, [eax - 0xc]
cmp ecx, 0x516f30
jne 0x411547
call edi
mov edx, dword [ebp - 0x44]
mov dword [eax], edx
jmp 0x411173
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [ebp - 0x30]
mov dword [esp], ecx
mov dword [ebp - 0x3c], ecx
mov dword [esp + 4], eax
call fcn.004104a0
movzx eax, word [ebp - 0x26]
mov edi, dword [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx esi, ax
mov eax, dword [ebp - 0x24]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x40], ecx
sub esp, 4
mov dword [esp + 0x10], edi
mov edi, ecx
mov dword [esp + 0xc], esi
mov dword [esp], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], str.cannot_connect_to__s:_u:__s
call fcn.0042a1c0
mov ecx, dword [ebp + 0x10]
mov dword [esp], edi
call fcn.004dbcb0
mov edx, dword [ebp - 0x2c]
lea esi, [edx - 0xc]
sub esp, 4
cmp esi, 0x516f30
jne 0x411517
mov edx, dword [ebp - 0x30]
lea esi, [edx - 0xc]
cmp esi, 0x516f30
jne 0x4114d3
test byte [0x561ee0], 0x80
mov edi, dword [sym.imp.msvcrt.dll__errno]
je 0x411173
call edi
mov edx, 0x51d24e
cmp dword [ebp + 0xc], 1
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov eax, 0x51d24a
cmove eax, edx
mov edx, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 4], str.could_not_connect_to__s:_d:__s
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call fcn.0042a1c0
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x2e6
jmp 0x4112a3
call dword [sym.imp.msvcrt.dll__errno]
mov esi, 0xffffffff
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp], eax
mov ebx, eax
call sub.msvcrt.dll_strlen
mov ecx, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004dc2a0
sub esp, 8
jmp 0x4110ed
cmp dword [0x5112ac], 0
jne 0x411591
mov edx, dword [eax - 4]
lea ecx, [edx - 1]
mov dword [eax - 4], ecx
mov eax, edx
test eax, eax
jg 0x411160
mov eax, dword [ebp - 0x40]
mov ecx, esi
mov dword [esp], eax
call fcn.004dba20
push eax
jmp 0x411160
cmp dword [0x5112ac], 0
jne 0x41159e
mov edx, dword [eax - 4]
lea ebx, [edx - 1]
mov dword [eax - 4], ebx
mov eax, edx
test eax, eax
jg 0x41124f
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.004dba20
push eax
jmp 0x41124f
cmp dword [0x5112ac], 0
jne 0x411503
mov edx, dword [eax - 4]
lea ecx, [edx - 1]
mov dword [eax - 4], ecx
mov eax, edx
test eax, eax
jg 0x41114e
lea eax, [ebp - 0x31]
mov ecx, esi
mov dword [esp], eax
call fcn.004dba20
push eax
jmp 0x41114e
cmp dword [0x5112ac], 0
lea eax, [edx - 4]
jne 0x41150d
mov eax, dword [edx - 4]
lea ecx, [eax - 1]
mov dword [edx - 4], ecx
test eax, eax
jg 0x411393
mov eax, dword [ebp - 0x40]
mov ecx, esi
mov dword [esp], eax
call fcn.004dba20
push esi
jmp 0x411393
sub eax, 4
call fcn.0050df71
jmp 0x4114b8
lea esi, [esi]
call fcn.0050df71
jmp 0x4114e8
cmp dword [0x5112ac], 0
lea eax, [edx - 4]
jne 0x411577
mov eax, dword [edx - 4]
lea ecx, [eax - 1]
mov dword [edx - 4], ecx
test eax, eax
jg 0x411381
lea eax, [ebp - 0x31]
mov ecx, esi
mov dword [esp], eax
call fcn.004dba20
push edi
jmp 0x411381
cmp dword [0x5112ac], 0
lea edx, [eax - 4]
jne 0x411582
mov edx, dword [eax - 4]
lea esi, [edx - 1]
mov dword [eax - 4], esi
mov eax, edx
test eax, eax
jg 0x4112ed
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.004dba20
push ecx
jmp 0x4112ed
call fcn.0050df71
lea esi, [esi]
jmp 0x41152c
mov eax, edx
mov dword [ebp - 0x40], ecx
call fcn.0050df71
mov ecx, dword [ebp - 0x40]
jmp 0x41155e
sub eax, 4
call fcn.0050df71
jmp 0x411458
sub eax, 4
mov dword [ebp - 0x44], ecx
call fcn.0050df71
mov ecx, dword [ebp - 0x44]
jmp 0x41148b