Function at 0x473310
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov edi, dword [ebp + 0x18]
mov ecx, 0x874d78
call fcn.004705d0
test eax, eax
je 0x4733dc
mov esi, eax
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x50], xmm0
mov dword [esp + 0x48], ecx
call fcn.00471a80
mov dword [esp + 0x4c], eax
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
lea eax, [esp + 0x30]
push dword [ebp + 0xc]
push 0x874f43
push 0x10
push eax
call fcn.004706e0
add esp, 0x10
mov dword [esp + 0x28], 0
lea eax, [ebx + 1]
test byte [ebx], 1
mov dword [esp + 4], eax
je 0x473389
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x40]
push ecx
push edx
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x4733f9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov eax, dword [ebp + 8]
test byte [eax], 1
je 0x4733ba
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.004bbe60
add esp, 8
test byte [esp + 0x14], 1
je 0x4734ba
mov eax, dword [esp + 0x1c]
jmp 0x4734be
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call fcn.00479500
add esp, 4
mov ecx, edi
push eax
call fcn.005205a0
jmp 0x473745
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x28], 0
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esp + 0x24], ebx
je 0x473552
mov dword [esi + 0xc], eax
push dword [ebx + 0x10]
push dword [ebx + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x473577
mov edi, 0xffffffff
cmp esi, 0x99d630
jb 0x473754
cmp dword [esi + 4], 0
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
je 0x473477
cmp esi, 0x9b5630
jae 0x473477
mov eax, 0x99d630
mov ecx, esi
sub ecx, eax
sar ecx, 4
imul edi, ecx, 0xaaaaaaab
add edi, 0x800
add esi, 0x10
cmp edx, 1
mov eax, 0x874f29
mov ecx, 0x874f24
cmove ecx, eax
push ebx
push ecx
push edi
push str._d_net_client:_s_d_
push 0x20
push esi
call fcn.004706e0
add esp, 0x18
mov eax, dword [0x86159c]
test byte [eax], 0x80
jne 0x4737bc
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x47374a
lea eax, [esp + 0x15]
lea ecx, [esp + 8]
push eax
lea eax, [esp + 0x34]
push eax
push dword [esp + 0xc]
push str.cannot_resolve_host__s_and_port__s:__s
push ecx
call fcn.004ba8a0
add esp, 0x14
test byte [edi], 1
je 0x4734fc
mov eax, dword [edi + 8]
mov byte [eax], 0
mov dword [edi + 4], 0
test byte [edi], 1
je 0x4734fc
push dword [edi + 8]
call fcn.0051c570
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [edi + 8], eax
movsd xmm0, qword [esp + 8]
movsd qword [edi], xmm0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
test byte [esp + 0x14], 1
je 0x473538
push dword [esp + 0x1c]
call fcn.0051c570
add esp, 4
mov eax, dword [0x86159c]
test byte [eax], 0x80
jne 0x47375f
mov ecx, ebx
call fcn.004716a0
jmp 0x4736db
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], eax
push eax
push ecx
call fcn.004bbe60
add esp, 8
test byte [esp + 0x14], 1
je 0x4735b2
mov eax, dword [esp + 0x1c]
jmp 0x4735b6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp + 8]
test byte [ecx], 1
mov ebx, dword [esp + 4]
je 0x47358c
mov ebx, dword [ecx + 8]
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], eax
push eax
push ecx
call fcn.004bbe60
add esp, 8
test byte [esp + 0x14], 1
je 0x47363e
mov eax, dword [esp + 0x1c]
jmp 0x473642
lea eax, [esp + 0x15]
lea ebx, [esp + 8]
push eax
push str.cannot_create_socket:__s
push ebx
call fcn.004ba8a0
add esp, 0xc
test byte [edi], 1
je 0x4735eb
mov eax, dword [edi + 8]
mov byte [eax], 0
mov dword [edi + 4], 0
test byte [edi], 1
je 0x4735eb
push dword [edi + 8]
call fcn.0051c570
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [edi + 8], eax
movsd xmm0, qword [esp + 8]
movsd qword [edi], xmm0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
test byte [esp + 0x14], 1
je 0x473627
push dword [esp + 0x1c]
call fcn.0051c570
add esp, 4
mov eax, dword [0x86159c]
test byte [eax], 0x80
jne 0x473878
mov ebx, dword [esp + 0x24]
jmp 0x4736cb
lea eax, [esp + 0x15]
lea ecx, [esp + 8]
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push str.cannot_connect_to__s:_s:__s
push ecx
call fcn.004ba8a0
add esp, 0x14
test byte [edi], 1
je 0x47367d
mov eax, dword [edi + 8]
mov byte [eax], 0
mov dword [edi + 4], 0
test byte [edi], 1
je 0x47367d
push dword [edi + 8]
call fcn.0051c570
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [edi + 8], eax
movsd xmm0, qword [esp + 8]
movsd qword [edi], xmm0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
test byte [esp + 0x14], 1
mov ebx, dword [esp + 0x24]
je 0x4736bd
push dword [esp + 0x1c]
call fcn.0051c570
add esp, 4
mov eax, dword [0x86159c]
test byte [eax], 0x80
jne 0x4738d5
mov ecx, dword [esp + 0x20]
call fcn.004716a0
push ebx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [eax]
mov edi, dword [0x99d618]
mov ecx, edi
call fcn.0051b740
mov eax, 0x99d630
mov ecx, esi
sub ecx, eax
sar ecx, 4
imul eax, ecx, 0xaaaaaaab
cmp dword [0x99d62c], eax
jle 0x47370f
mov dword [0x99d62c], eax
cmp dword [esi + 4], 0
je 0x473736
mov eax, dword [esi]
push esi
call dword [eax + 4]
add esp, 4
mov byte [esi + 0x10], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [esi], 0
mov ecx, edi
call fcn.0051b7e0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], ebx
mov edi, 0xffffffff
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
jmp 0x473477
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x473546
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
mov dword [esp + 4], eax
sub esp, 0x14
movaps xmm0, xmmword [0x874220]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_sysdeps_win32.cpp
lea ecx, [esp + 0x28]
call fcn.004b9f90
lea ecx, [esp + 0x14]
call fcn.004b9f60
mov dword [esp + 0x24], eax
test byte [edi], 1
je 0x47394c
mov edi, dword [edi + 8]
jmp 0x47394d
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x4734ab
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [eax]
sub esp, 0x14
movaps xmm0, xmmword [0x874230]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_sysdeps_win32.cpp
lea esi, [esp + 0x28]
mov ecx, esi
call fcn.004b9f90
mov ecx, esi
call fcn.004b9f60
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
test byte [eax], 1
je 0x473816
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
cmp dword [ebp + 0x10], 1
mov eax, 0x874f0d
mov ecx, 0x874f09
cmove ecx, eax
lea esi, [esp + 8]
push edi
push ecx
push dword [ebp + 0xc]
push dword [esp + 0x10]
push str.host__s_port__d_type__s___fd__d
push esi
call fcn.004ba8a0
add esp, 0x18
push esi
push dword [esp + 0x24]
call fcn.00402f30
add esp, 8
test byte [esp + 8], 1
je 0x473862
push dword [esp + 0x10]
call fcn.0051c570
add esp, 4
lea ecx, [esp + 0x14]
call fcn.004ba060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], ebx
jmp 0x4734ab
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x473635
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
sub esp, 0x14
movaps xmm0, xmmword [0x874250]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_sysdeps_win32.cpp
lea ecx, [esp + 0x28]
call fcn.004b9f90
lea ecx, [esp + 0x14]
call fcn.004b9f60
mov dword [esp + 4], eax
test byte [edi], 1
je 0x47399a
mov edi, dword [edi + 8]
jmp 0x47399b
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x473635
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
sub esp, 0x14
movaps xmm0, xmmword [0x874240]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_sysdeps_win32.cpp
lea ebx, [esp + 0x28]
mov ecx, ebx
call fcn.004b9f90
mov ecx, ebx
call fcn.004b9f60
mov ebx, eax
cmp dword [ebp + 0x10], 1
mov ecx, 0x874f0d
mov eax, 0x874f09
cmove eax, ecx
mov ecx, dword [ebp + 8]
test byte [ecx], 1
je 0x473942
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov dword [esp + 4], ecx
test byte [edi], 1
je 0x4739b1
mov edi, dword [edi + 8]
jmp 0x4739b2
inc edi
push edi
push 0x874dc9
lea edi, [esp + 0x10]
push edi
call fcn.004ba8a0
add esp, 0xc
push edi
push dword [esp + 0x28]
call fcn.00402f30
add esp, 8
test byte [esp + 8], 1
je 0x473980
push dword [esp + 0x10]
call fcn.0051c570
add esp, 4
lea ecx, [esp + 0x14]
call fcn.004ba060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [esp + 4]
mov dword [eax], ecx
jmp 0x473546
inc edi
push edi
push 0x874dc9
push ebx
call fcn.004ba8a0
add esp, 0xc
push ebx
push dword [esp + 8]
jmp 0x4739d1
inc edi
push edi
lea ecx, [esp + 0x34]
push ecx
push dword [esp + 0xc]
push eax
push str.could_not_connect_to__s:_s:_s:__s
lea edi, [esp + 0x1c]
push edi
call fcn.004ba8a0
add esp, 0x18
push edi
push ebx
call fcn.00402f30
add esp, 8
test byte [esp + 8], 1
je 0x4739ec
push dword [esp + 0x10]
call fcn.0051c570
add esp, 4
lea ecx, [esp + 0x14]
call fcn.004ba060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [esp + 0x2c]
mov dword [eax], ecx
jmp 0x473635