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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, dword [esp + 0x44]
mov ecx, 0x57887c
call fcn.00434a80
test eax, eax
mov dword [esp + 0x10], eax
je 0x435c6e
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov ebx, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov word [esp + 0x18], 2
movzx eax, di
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1a], ax
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, ebp
mov dword [esp + 0x1c], eax
call fcn.00436080
push eax
push ebp
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
je 0x435c97
mov dword [ebx + 0xc], eax
lea ecx, [esp + 0x18]
push 0x10
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x435d05
mov eax, dword [esp + 0x10]
mov esi, 0xffffffff
test eax, eax
je 0x435c2e
cmp eax, 0x5c4130
jae 0x435c2e
cmp eax, 0x5ac130
jb 0x435c2e
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x435c2e
mov ecx, 0x5ac130
mov edx, eax
sub edx, ecx
sar edx, 4
imul esi, edx, 0xaaaaaaab
add esi, 0x800
add eax, 0x10
cmp ebp, 1
mov ecx, str.udp:
mov edx, 0x578927
cmovne edx, ecx
push edi
push edx
push esi
push str._d_lo_client:_s_d_
push 0x20
push eax
call fcn.00434bb0
add esp, 0x18
cmp byte [0x5ac048], 0
js 0x435dc4
mov dword [esp + 0x10], 0
jmp 0x435dba
call dword [sym.imp.msvcrt.dll__errno]
push dword [eax]
call fcn.0043bb30
add esp, 4
mov edi, eax
push eax
call sub.msvcrt.dll_strlen
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.00534200
jmp 0x435da3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
lea ebp, [esp + 4]
push eax
push ebp
call fcn.004cfe30
add esp, 8
lea ebx, [esp + 8]
push dword [esp + 4]
push str.cannot_create_socket:__s
push ebx
call fcn.004cf170
add esp, 0xc
mov ecx, esi
push ebx
call fcn.00533c10
mov eax, dword [esp + 8]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x435e67
mov eax, dword [esp + 4]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x435e86
cmp byte [0x5ac048], 0
js 0x435ead
mov ecx, edi
jmp 0x435d9e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ebp, eax
movzx eax, word [esp + 0x1a]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ebx, ax
lea eax, [esp + 4]
mov dword [esp + 0xc], edi
push edi
push eax
call fcn.004cfe30
add esp, 8
mov edi, esi
lea esi, [esp + 8]
push dword [esp + 4]
push ebx
push ebp
push str.cannot_connect_to__s:_u:__s
push esi
call fcn.004cf170
add esp, 0x14
mov ebx, edi
mov ecx, edi
push esi
call fcn.00533c10
mov eax, dword [esp + 8]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x435f3b
mov eax, dword [esp + 4]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x435f5a
cmp byte [0x5ac048], 0
js 0x435f81
mov ecx, dword [esp + 0xc]
call fcn.00435990
mov eax, dword [esp + 0x10]
mov esi, 0xffffffff
test eax, eax
je 0x435dba
lea ecx, [esp + 0x10]
push eax
call fcn.0043b8d0
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004ce330
cmp eax, 1
jg 0x435c61
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
lea ebx, [esp + 8]
mov ecx, ebx
mov dword [esp + 0xc], eax
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x330
push str.system_core_adb_sysdeps_win32.cpp
call fcn.004ce350
mov ecx, ebx
call fcn.004ce340
mov ebx, eax
cmp ebp, 1
mov eax, 0x578907
mov ecx, 0x57890b
cmovne ecx, eax
lea eax, [esp + 4]
push esi
push ecx
push edi
push str.port__d_type__s___fd__d
push eax
call fcn.004cf170
add esp, 0x14
mov eax, dword [esp + 4]
push dword [eax - 0xc]
push eax
push ebx
call fcn.0055d520
add esp, 0xc
mov eax, dword [esp + 4]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x43601e
lea ecx, [esp + 8]
call fcn.004ce390
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
jmp 0x435c61
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x435cde
mov eax, esp
push eax
call fcn.00533980
jmp 0x435cde
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x435cf1
mov eax, esp
push eax
call fcn.00533980
cmp byte [0x5ac048], 0
jns 0x435cfe
call fcn.004ce330
cmp eax, 1
jg 0x435cfe
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
lea ebx, [esp + 8]
mov ecx, ebx
mov dword [esp + 0xc], eax
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x31b
push str.system_core_adb_sysdeps_win32.cpp
call fcn.004ce350
mov ecx, ebx
call fcn.004ce340
mov ebx, eax
push dword [esi]
push 0x5788c9
push ebp
call fcn.004cf170
add esp, 0xc
mov eax, dword [esp + 4]
push dword [eax - 0xc]
push eax
push ebx
call fcn.0055d520
add esp, 0xc
mov eax, dword [esp + 4]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x43603d
lea ecx, [esp + 8]
call fcn.004ce390
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
jmp 0x435cfe
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x435d7a
mov eax, esp
push eax
call fcn.00533980
jmp 0x435d7a
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x435d8d
mov eax, esp
push eax
call fcn.00533980
cmp byte [0x5ac048], 0
jns 0x435d9a
call fcn.004ce330
cmp eax, 1
jg 0x435d9a
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
lea ebp, [esp + 8]
mov ecx, ebp
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x328
push str.system_core_adb_sysdeps_win32.cpp
call fcn.004ce350
mov ecx, ebp
call fcn.004ce340
cmp dword [esp + 0x40], 1
mov ebp, eax
mov eax, 0x57890b
mov ecx, 0x578907
cmove ecx, eax
push dword [ebx]
push dword [esp + 0x40]
push ecx
push str.could_not_connect_to__s:_d:__s
lea eax, [esp + 0x14]
push eax
call fcn.004cf170
add esp, 0x14
mov eax, dword [esp + 4]
push dword [eax - 0xc]
push eax
push ebp
call fcn.0055d520
add esp, 0xc
mov eax, dword [esp + 4]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x43605c
lea ecx, [esp + 8]
call fcn.004ce390
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], esi
jmp 0x435d9a
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x435e4d
mov eax, esp
push eax
call fcn.00533980
jmp 0x435e4d
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x435f21
mov eax, esp
push eax
call fcn.00533980
jmp 0x435f21
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x436008
mov eax, esp
push eax
call fcn.00533980
jmp 0x436008