Function at 0x4369c0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, dword [ebp + 0x18]
mov ecx, 0x57887c
call fcn.00434a80
test eax, eax
mov dword [esp + 0x10], eax
je 0x436ac3
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x40], xmm0
mov dword [esp + 0x38], ecx
call fcn.00436080
lea edi, [esp + 0x20]
mov dword [esp + 0x3c], eax
push ebx
push 0x578941
push 0x10
push edi
call fcn.00434bb0
add esp, 0x10
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0x30]
push eax
push ecx
push edi
push dword [esi]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x436af1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [esi]
lea ecx, [esp + 4]
mov dword [esp + 0x14], eax
push eax
push ecx
call fcn.004cfe30
add esp, 8
lea esi, [esp + 8]
push dword [esp + 4]
push edi
push ebx
push str.cannot_resolve_host__s_and_port__s:__s
push esi
call fcn.004cf170
add esp, 0x14
mov ebx, dword [ebp + 0x18]
mov ecx, ebx
push esi
call fcn.00533c10
mov eax, dword [esp + 8]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x436cfb
mov eax, dword [esp + 4]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x436d1a
cmp byte [0x5ac048], 0
js 0x436d41
mov ecx, dword [esp + 0x14]
call fcn.00435990
mov esi, 0xffffffff
jmp 0x436cdf
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
mov esi, 0xffffffff
jmp 0x436cf1
mov esi, dword [esp + 0x1c]
mov edi, ebx
mov dword [esp + 0x1c], 0
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esp + 0x14], esi
je 0x436b8e
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0xc], eax
push dword [esi + 0x10]
push dword [esi + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x436c12
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
mov esi, 0xffffffff
test eax, eax
mov edx, ecx
je 0x436c96
cmp eax, 0x5c4130
mov ebx, edi
jae 0x436c98
cmp eax, 0x5ac130
jb 0x436c98
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x436c98
mov edi, edx
mov ecx, 0x5ac130
mov edx, eax
sub edx, ecx
sar edx, 4
imul esi, edx, 0xaaaaaaab
mov edx, edi
add esi, 0x800
jmp 0x436c98
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
lea esi, [esp + 4]
push eax
push esi
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, dword [ebp + 0x18]
push ebx
call fcn.00533c10
mov eax, dword [esp + 8]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x436e78
mov eax, dword [esp + 4]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x436e97
cmp byte [0x5ac048], 0
js 0x436ebe
mov ecx, edi
call fcn.00435990
cmp dword [esp + 0x14], 0
mov esi, 0xffffffff
jne 0x436cd5
jmp 0x436cdf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov eax, dword [ebp + 8]
mov esi, dword [eax]
lea eax, [esp + 4]
push edi
push eax
call fcn.004cfe30
add esp, 8
lea ebx, [esp + 8]
push dword [esp + 4]
lea eax, [esp + 0x24]
push eax
push esi
push str.cannot_connect_to__s:_s:__s
push ebx
call fcn.004cf170
add esp, 0x14
mov ecx, dword [ebp + 0x18]
push ebx
call fcn.00533c10
mov eax, dword [esp + 8]
mov esi, dword [ebp + 0x10]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x436f4f
mov eax, dword [esp + 4]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x436f6e
cmp byte [0x5ac048], 0
js 0x436f95
mov ecx, edi
call fcn.00435990
mov esi, 0xffffffff
jmp 0x436cd5
mov ebx, edi
add eax, 0x10
mov edi, edx
cmp edx, 1
mov ecx, str.udp:
mov edx, 0x578927
cmovne edx, ecx
push ebx
push edx
push esi
push str._d_net_client:_s_d_
push 0x20
push eax
call fcn.00434bb0
add esp, 0x18
cmp byte [0x5ac048], 0
js 0x436dcb
mov dword [esp + 0x10], 0
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x436cf1
lea ecx, [esp + 0x10]
push eax
call fcn.0043b8d0
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x436a90
mov eax, esp
push eax
call fcn.00533980
jmp 0x436a90
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x436aa3
mov eax, esp
push eax
call fcn.00533980
cmp byte [0x5ac048], 0
jns 0x436ab0
call fcn.004ce330
cmp eax, 1
jg 0x436ab0
call dword [sym.imp.msvcrt.dll__errno]
mov edi, dword [eax]
lea esi, [esp + 8]
mov ecx, esi
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x3a5
push str.system_core_adb_sysdeps_win32.cpp
call fcn.004ce350
mov ecx, esi
call fcn.004ce340
mov esi, eax
push dword [ebx]
push 0x5788c9
lea eax, [esp + 0xc]
push eax
call fcn.004cf170
add esp, 0xc
mov eax, dword [esp + 4]
push dword [eax - 0xc]
push eax
push esi
call fcn.0055d520
add esp, 0xc
mov eax, dword [esp + 4]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x437046
lea ecx, [esp + 8]
call fcn.004ce390
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], edi
jmp 0x436ab0
call fcn.004ce330
cmp eax, 1
jg 0x436ccd
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
lea ecx, [esp + 8]
mov dword [esp + 0xc], eax
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x3cb
push str.system_core_adb_sysdeps_win32.cpp
call fcn.004ce350
lea ecx, [esp + 8]
call fcn.004ce340
mov dword [esp + 0x18], eax
cmp edi, 1
mov eax, 0x578907
mov ecx, 0x57890b
cmovne ecx, eax
lea eax, [esp + 4]
push esi
push ecx
push ebx
mov ecx, dword [ebp + 8]
push dword [ecx]
push str.host__s_port__d_type__s___fd__d
push eax
call fcn.004cf170
add esp, 0x18
mov eax, dword [esp + 4]
push dword [eax - 0xc]
push eax
push dword [esp + 0x20]
call fcn.0055d520
add esp, 0xc
mov eax, dword [esp + 4]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x437065
lea ecx, [esp + 8]
call fcn.004ce390
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
jmp 0x436ccd
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x436bd6
mov eax, esp
push eax
call fcn.00533980
jmp 0x436bd6
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x436be9
mov eax, esp
push eax
call fcn.00533980
cmp byte [0x5ac048], 0
jns 0x436bf6
call fcn.004ce330
cmp eax, 1
jg 0x436bf6
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 0x3b4
push str.system_core_adb_sysdeps_win32.cpp
call fcn.004ce350
mov ecx, ebx
call fcn.004ce340
mov ecx, dword [ebp + 0x18]
mov ebx, eax
push dword [ecx]
push 0x5788c9
push esi
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 0x437084
lea ecx, [esp + 8]
call fcn.004ce390
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
jmp 0x436bf6
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x436c68
mov eax, esp
push eax
call fcn.00533980
jmp 0x436c68
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x436c7b
mov eax, esp
push eax
call fcn.00533980
cmp byte [0x5ac048], 0
jns 0x436c88
call fcn.004ce330
cmp eax, 1
jg 0x436c88
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
lea ebx, [esp + 8]
mov ecx, ebx
mov dword [esp + 0x18], eax
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x3c2
push str.system_core_adb_sysdeps_win32.cpp
call fcn.004ce350
mov ecx, ebx
call fcn.004ce340
mov dword [esp + 0xc], eax
cmp esi, 1
mov eax, 0x57890b
mov ecx, 0x578907
cmove ecx, eax
mov eax, dword [ebp + 0x18]
push dword [eax]
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
push ecx
push str.could_not_connect_to__s:_s:_s:__s
lea eax, [esp + 0x18]
push eax
call fcn.004cf170
add esp, 0x18
mov eax, dword [esp + 4]
push dword [eax - 0xc]
push eax
push dword [esp + 0x14]
call fcn.0055d520
add esp, 0xc
mov eax, dword [esp + 4]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x4370a3
lea ecx, [esp + 8]
call fcn.004ce390
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
jmp 0x436c88
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x436db5
mov eax, esp
push eax
call fcn.00533980
jmp 0x436db5
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x436e5e
mov eax, esp
push eax
call fcn.00533980
jmp 0x436e5e
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x436f35
mov eax, esp
push eax
call fcn.00533980
jmp 0x436f35
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x43702c
mov eax, esp
push eax
call fcn.00533980
jmp 0x43702c