Function at 0x50f5a3
Capabilities:
Connect socket
Get socket status
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x6f8
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, dword [edx + 0x58]
mov dword [esp + 4], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x28], ebx
mov edi, dword [ebx + 0x10]
cmp edi, 0x3b9aca00
jne 0x50f5f3
mov eax, dword [edx + 0x48]
mov esi, dword [edx + 0x4c]
mov ecx, dword [edx + 0x50]
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], esi
jmp 0x50f62a
mov eax, dword [ebx + 8]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
mov ebx, dword [eax + 0xc]
call fcn.004dfa50
mov esi, ecx
mov ecx, eax
push edi
push ebx
mov ebx, dword [esp + 0x30]
push dword [esp + 8]
push esi
call fcn.004f7410
add esp, 0x10
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], edx
mov dword [esp + 0x38], ecx
lea esi, [esp + 0xe4]
lea edx, [ebx + 0x50]
mov ecx, esi
call fcn.00504643
cmp byte [esi + 0x28], 4
push 2
pop ebx
lea ecx, [esp + 0x68]
jne 0x50f682
lea edx, [esp + 0x358]
lea eax, [esp + 0x250]
mov dword [edx], str.assertion_failed:_mid___self.len__chunk_size_must_be_non_zero
mov dword [edx + 4], ebx
and dword [edx + 0x10], 0
mov dword [eax], ecx
lea ecx, [ebp + 0x10]
mov dword [eax + 4], fcn.00417b33
mov dword [edx + 8], eax
mov dword [eax + 8], ecx
mov dword [eax + 0xc], fcn.0043e430
jmp 0x50f6ba
lea edx, [esp + 0x358]
lea ecx, [esp + 0x250]
lea eax, [esp + 0xf0]
mov dword [edx], str.assertion_failed:_mid___self.len__chunk_size_must_be_non_zero
mov dword [edx + 4], ebx
and dword [edx + 0x10], 0
mov dword [ecx], esi
mov dword [ecx + 4], fcn.00417a93
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], fcn.004379c0
mov dword [edx + 8], ecx
lea esi, [esp + 0x110]
mov dword [edx + 0xc], ebx
mov ecx, esi
call fcn.004ba4b9
mov eax, dword [esi + 8]
movsd xmm0, qword [esi]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x2c]
movsd qword [esp + 0x50], xmm0
mov eax, dword [eax + 0x5c]
mov ecx, dword [eax + 8]
lock inc dword [ecx]
jle 0x510a98
mov eax, dword [eax + 0xc]
mov dword [esp + 0x3c], ecx
lea edi, [esp + 0x50]
lea esi, [esp + 0x1d0]
mov dword [esp + 0x40], eax
mov edx, dword [eax + 8]
dec edx
and edx, 0xfffffff8
lea ecx, [edx + ecx + 8]
push dword [edi + 8]
push dword [edi]
push ecx
push esi
call dword [eax + 0xc]
add esp, 0x10
cmp dword [esi], 0
je 0x50f752
mov eax, dword [esp + 0x1d8]
movsd xmm0, qword [esp + 0x1d0]
mov dword [esp + 0x25c], eax
movsd qword [esp + 0x254], xmm0
mov dword [esp + 0x250], 3
jmp 0x50f7d6
movsd xmm0, qword [esp + 0x1d4]
lea ebx, [esp + 0x78]
lea eax, [esp + 0xc0]
lea edx, [esp + 0x110]
mov dword [eax], edi
mov dword [eax + 4], fcn.00417a93
mov dword [edx], str.resolve_dns_name_
movsd qword [ebx], xmm0
push 2
pop edi
mov dword [edx + 4], edi
and dword [edx + 0x10], 0
lea esi, [esp + 0x3a4]
mov dword [edx + 8], eax
mov dword [edx + 0xc], 1
mov ecx, esi
call fcn.004ba4b9
mov dword [esi - 0x48], edi
and dword [esi + 0xc], 0
mov byte [esi + 0x14], 2
mov dword [esi - 0x4c], edi
lea esi, [esp + 0x250]
lea edi, [esp + 0x50]
lea edx, [esp + 0x358]
mov ecx, esi
push ebx
call fcn.00509351
pop eax
mov esi, dword [esi]
cmp esi, 3
jne 0x510083
mov eax, dword [esp + 0x258]
mov ebx, dword [esp + 0x254]
mov esi, dword [esp + 0x25c]
lea ecx, [esp + 0x3c]
mov dword [esp], eax
call fcn.004a1ea5
test esi, esi
je 0x510014
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], ebx
mov edx, esi
mov dword [esp + 0x98], esi
add eax, 0x5c
mov dword [esp + 0x94], eax
lea eax, [esp + 0xe4]
mov cl, byte [eax + 0x28]
lea eax, [esp + 0x70]
mov byte [eax], 4
mov eax, dword [esp]
mov byte [esp + 0x1f], cl
movzx ecx, cl
mov dword [esp + 0x40], eax
mov eax, esi
mov dword [esp + 0x9c], ecx
mov cl, 4
mov dword [esp + 0x44], ebx
shl eax, 5
mov dword [esp + 0x64], ecx
add eax, ebx
mov dword [esp + 0x48], eax
mov si, 2
cmp ebx, eax
je 0x5100d0
lea eax, [ebx + 0x20]
mov dword [esp + 0x44], eax
movsd xmm0, qword [ebx + 0x18]
movzx eax, word [ebx]
movsd qword [esp + 0x1e6], xmm0
cmp ax, 2
movsd xmm0, qword [ebx + 0x12]
movsd qword [esp + 0x1e0], xmm0
movsd xmm0, qword [ebx + 0xa]
movsd qword [esp + 0x1d8], xmm0
movsd xmm0, qword [ebx + 2]
lea ebx, [esp + 0x358]
movsd qword [esp + 0x1d0], xmm0
je 0x51012d
movsd xmm0, qword [esp + 0x1e6]
movsd xmm1, qword [esp + 0x1e0]
mov word [esp + 0x110], ax
lea eax, [esp + 0x112]
movsd xmm2, qword [esp + 0x1d0]
cmp dword [esp + 0x38], 0x3b9aca00
mov esi, 0x3b9aca00
movsd qword [eax + 0x16], xmm0
movsd qword [eax + 0x10], xmm1
movsd xmm1, qword [esp + 0x1d8]
movsd qword [eax], xmm2
movsd qword [eax + 8], xmm1
je 0x50f97c
mov edx, dword [esp + 0x90]
mov ecx, ebx
push dword [esp + 0x38]
push dword [esp + 0x90]
call fcn.00500e77
pop eax
pop ecx
mov eax, dword [esp + 0x358]
mov esi, dword [esp + 0x360]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x35c]
cmp esi, 0x3b9aca00
je 0x5102cf
cmp dword [esp + 0x98], 1
jne 0x50f959
mov dword [esp + 0x60], eax
jmp 0x50f97c
mov edx, dword [esp + 0x34]
mov ecx, eax
shr esi, 1
shr ecx, 1
mov dword [esp + 0x60], ecx
shld eax, edx, 0x1f
and edx, 1
neg edx
mov dword [esp + 0x34], eax
and edx, 0x1dcd6500
add esi, edx
mov eax, dword [0x64fd94]
cmp eax, 3
jbe 0x50fa23
lea eax, [esp + 0x110]
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], fcn.00417a93
mov dword [esp + str.connecting_to__at], 0x6312bc
mov dword [esp + 8], eax
lea eax, [esp + 8]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], 0x507b2b
push 2
pop eax
mov dword [esp + 0x35c], eax
and dword [esp + 0x368], 0
lea ecx, [esp + 0x78]
mov dword [esp + 0x360], ecx
mov dword [esp + 0x364], eax
mov eax, str.ureq::stream_a
mov dword [esp + 0x250], eax
push 0xc
pop ecx
mov dword [esp + 0x254], ecx
mov dword [esp + 0x258], eax
mov dword [esp + 0x25c], ecx
mov ecx, ebx
lea edx, [esp + 0x250]
mov dword [esp + 0x260], 0x6312cc
call fcn.00500acd
test byte [esp + 0x9c], 3
jne 0x50fab7
cmp esi, 0x3b9aca00
jne 0x50fb0f
lea edx, [esp + 0x112]
movzx eax, word [esp + 0x110]
movzx ecx, word [esp + 0x112]
mov ebx, dword [esp + 0x118]
mov esi, dword [edx + 0x1a]
movsd xmm0, qword [edx + 0xa]
movsd xmm1, qword [edx + 0x12]
cmp ax, 3
mov word [esp], cx
mov dword [esp + 0x260], esi
mov esi, dword [esp + 0x114]
movsd qword [esp + 0x250], xmm0
movsd qword [esp + 0x258], xmm1
jne 0x50fba0
lea ecx, [esp + 0x20]
mov edx, esi
push ebx
call fcn.005078ef
pop eax
cmp byte [esp + 0x20], 4
jne 0x50fcda
mov esi, dword [esp + 0x24]
jmp 0x50fc8f
mov ecx, ebx
lea edx, [esp + 0xe4]
call fcn.00504643
cmp byte [esp + 0x380], 4
je 0x510a83
push 0xb
pop ecx
lea edi, [esp + 0x250]
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x14]
push 0x27
pop edx
push 0x17
push str.SOCKS_feature_disabled.unknown_scheme_
call fcn.004d4767
pop eax
pop ecx
lea ecx, [esp + 0x250]
call fcn.005009c0
mov al, byte [esp + 0x14]
lea edi, [esp + 0x50]
jmp 0x50fcea
mov eax, dword [0x64fc2c]
cmp eax, 3
jne 0x50fe76
mov edx, dword [esp + 0x110]
mov ecx, ebx
call fcn.004ebf90
mov eax, ebx
mov bl, byte [esp + 0x358]
cmp bl, 4
jne 0x50fc46
mov ecx, dword [esp + 0x35c]
mov dword [esp + 0x358], 1
push eax
push 0x8004667e
mov dword [esp + 8], ecx
push ecx
call dword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x50fdd0
cmp word [esp + 0x110], 0
je 0x50fcf7
movups xmm0, xmmword [esp + 0x114]
mov eax, dword [esp + 0x128]
mov cx, 0x17
lea edx, [esp + 0x12c]
lea ebx, [esp + 0x124]
push 0x1c
jmp 0x50fd0e
mov dword [esp + 0x10], ebx
mov bl, 4
mov byte [esp + 8], 4
cmp ax, 2
je 0x50fc67
mov word [esp + 0x358], ax
movzx eax, word [esp]
movsd xmm0, qword [esp + 0x250]
movsd xmm1, qword [esp + 0x258]
lea ecx, [esp + 0x360]
mov word [esp + 0x35a], ax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x35c], esi
mov dword [esp + 0x360], eax
mov eax, dword [esp + 0x260]
movsd qword [ecx + 0xc], xmm1
movsd qword [ecx + 4], xmm0
mov dword [ecx + 0x14], eax
lea ecx, [esp + 0x78]
push 4
pop edx
lea eax, [esp + 0x358]
push eax
call fcn.005078ef
pop eax
cmp byte [esp + 0x78], 4
je 0x50fc75
mov ebx, dword [esp + 0x78]
mov edi, dword [esp + 0x7c]
lea ecx, [esp + 8]
call fcn.00522035
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov ax, 2
jmp 0x50fbab
movzx eax, byte [esp + 0x35b]
movzx edi, word [esp + 0x359]
mov esi, dword [esp + 0x35c]
shl eax, 0x10
or edi, eax
jmp 0x50fe2c
cmp bl, 4
jne 0x50fc9c
mov edi, 0x62f3d0
mov bl, 2
jmp 0x50fcb5
mov esi, dword [esp + 0x7c]
lea ecx, [esp + 8]
mov dword [esp + 0x24], esi
mov byte [esp + 0x20], 4
call fcn.00522035
lea edi, [esp + 0x50]
mov al, 4
mov dword [esp + 0x18], esi
mov byte [esp + 0x14], 4
jmp 0x50fcea
lea ecx, [esp + 9]
mov al, byte [ecx + 2]
movzx ecx, word [ecx]
mov byte [esp + 0x35a], al
mov word [esp + 0x358], cx
mov al, byte [esp + 0x35a]
movzx edx, word [esp + 0x358]
lea ecx, [esp + 0x21]
mov byte [esp + 0x20], bl
mov byte [ecx + 2], al
mov word [ecx], dx
mov dword [esp + 0x24], edi
lea edi, [esp + 0x50]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
cmp al, 4
jne 0x50fe40
jmp 0x5100d9
mov cx, 2
xorps xmm0, xmm0
lea edx, [esp + 0x116]
lea ebx, [esp + 0x112]
push 0x10
pop edi
movzx edx, word [edx]
mov ebx, dword [ebx]
mov word [esp + 0x358], cx
rol dx, 8
mov word [esp + 0x35a], dx
mov dword [esp + 0x35c], ebx
movups xmmword [esp + 0x360], xmm0
mov dword [esp + 0x370], eax
push edi
lea ebx, [esp + 0x35c]
push ebx
mov edi, dword [esp + 8]
push edi
call dword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
je 0x50fd79
and dword [esp + 0x358], 0
push ebx
push 0x8004667e
push edi
call dword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x50fdd0
push 4
pop ebx
jmp 0x50fdfe
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
and dword [esp + 0x358], 0
mov dword [esp + 0x10], eax
push ebx
push 0x8004667e
push edi
call dword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x50fdd0
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.004e0140
xor ebx, ebx
cmp al, 0xd
jne 0x50fdfe
mov eax, dword [esp + 0x34]
or eax, dword [esp + 0x60]
jne 0x50fe80
test esi, esi
jne 0x50fe80
mov ecx, dword [esp]
mov bl, 2
mov esi, 0x60af94
jmp 0x50fe16
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
shr eax, 8
mov byte [esp + 8], 0
xor ebx, ebx
mov ecx, esi
shl ecx, 0x18
mov dword [esp + 9], ecx
mov ecx, dword [esp]
mov word [esp + 0xd], ax
mov eax, esi
shr eax, 0x18
mov byte [esp + 0xf], al
jmp 0x50fe16
mov ecx, dword [esp]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edi
cmp bl, 4
je 0x5100e0
mov esi, dword [esp + 0xc]
movzx eax, byte [esp + 0xb]
movzx edi, word [esp + 9]
shl eax, 0x10
or edi, eax
push ecx
call dword [sym.imp.ws2_32.dll_closesocket]
shl edi, 8
movzx eax, bl
mov dword [esp + 0x18], esi
or eax, edi
lea edi, [esp + 0x50]
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x70]
call fcn.00522035
cmp bl, 4
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x64], ebx
jne 0x50fe69
push esi
call dword [sym.imp.ws2_32.dll_closesocket]
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
jmp 0x50f855
call fcn.005840f0
jmp 0x50fb1d
mov edx, dword [esp + 0x34]
mov eax, 0x7fffffff
mov ecx, 0x7fffffff
mov ebx, 0x3e8
mov edi, 1
cmp edx, eax
cmovb ecx, edx
cmp dword [esp + 0x60], 0
cmovne ecx, eax
mov eax, esi
xor edx, edx
div ebx
mov dword [esp + 0x78], ecx
test ecx, ecx
mov ecx, eax
cmove ecx, edi
cmp esi, ebx
mov esi, 0xfc
cmovae ecx, eax
mov dword [esp + 0x7c], ecx
push esi
push 0
lea eax, [esp + 0x368]
push eax
call fcn.00571330
add esp, 0xc
mov ebx, dword [esp]
mov dword [esp + 0x250], edi
mov dword [esp + 0x254], ebx
push esi
push 0
lea eax, [esp + 0x260]
push eax
call fcn.00571330
add esp, 0xc
lea eax, [esp + 0x78]
mov dword [esp + 0x358], edi
mov dword [esp + 0x35c], ebx
push eax
lea eax, [esp + 0x35c]
push eax
lea eax, [esp + 0x258]
push eax
push 0
push edi
call dword [sym.imp.ws2_32.dll_select]
test eax, eax
je 0x50ff4e
cmp eax, 0xffffffff
jne 0x50ff65
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ebx, ebx
mov ecx, dword [esp]
mov byte [esp + 8], bl
and word [esp + 9], 0
mov byte [esp + 0xb], bl
jmp 0x51000b
mov ecx, dword [esp]
mov byte [esp + 8], 2
mov dword [esp + 0xc], 0x60afb4
mov bl, 2
jmp 0x50fe09
cmp dword [esp + 0x250], 1
mov ecx, dword [esp]
mov bl, 4
je 0x50fe09
and dword [esp + 0x4c], 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 4
push eax
lea eax, [esp + 0x50]
push eax
push 0x1007
push 0xffff
push ecx
call dword [sym.imp.ws2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x50ffbe
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x50ffd8
and dword [esp + 0x30], 0xffffff00
mov dword [esp + 0x88], ecx
jmp 0x50ffe9
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ecx, dword [esp]
mov dword [esp + 0x88], eax
mov dword [esp + 0x30], 0
jmp 0x50fffc
mov ecx, dword [esp + 0x30]
and ecx, 0xffffff00
or ecx, 4
mov dword [esp + 0x30], ecx
mov ecx, dword [esp]
cmp eax, 0xffffffff
je 0x50fffc
cmp byte [esp + 0x30], 4
je 0x50fe09
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x88]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
jmp 0x50fe09
lea eax, [esp + 0x110]
lea ecx, [esp + 0x68]
lea edx, [esp + 0x250]
mov dword [eax], ecx
xor ecx, ecx
mov dword [edx], str.No_ip_address_for
mov dword [eax + 4], fcn.00417b33
inc ecx
mov dword [edx + 4], ecx
and dword [edx + 0x10], 0
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x39c]
call fcn.004ba4b9
mov eax, dword [esp + 4]
push 2
pop ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
lea edi, [eax + 8]
push 0x14
pop ecx
lea esi, [esp + 0x358]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov edx, dword [esp]
and dword [eax + 0x58], 0
mov byte [eax + 0x60], 2
call fcn.004ffe5e
jmp 0x510a1f
lea eax, [esp + 0x260]
mov edi, dword [esp + 4]
mov ecx, dword [eax - 0xc]
mov ebx, dword [eax - 8]
mov dword [esp], ecx
mov ecx, dword [eax - 4]
mov dword [esp + 0x10], ecx
lea ecx, [edi + 0x10]
push 0xb4
push eax
push ecx
call fcn.00570db0
add esp, 0xc
mov eax, dword [esp]
mov ecx, dword [esp + 0x10]
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ecx
lea ecx, [esp + 0x3c]
mov dword [edi], esi
call fcn.004a1ea5
jmp 0x510a1f
lea ebx, [esp + 0x358]
jmp 0x51012d
mov eax, dword [esp + 0x18]
mov dword [esp], eax
lea eax, [esp + 0x112]
movzx esi, word [esp + 0x110]
lea ebx, [esp + 0x358]
movsd xmm1, qword [eax + 8]
movsd xmm0, qword [eax]
movsd xmm2, qword [eax + 0x10]
movsd qword [esp + 0xc8], xmm1
movsd xmm1, qword [eax + 0x16]
movsd qword [esp + 0xd0], xmm2
movsd qword [esp + 0xc0], xmm0
movsd qword [esp + 0xd6], xmm1
lea ecx, [esp + 0x3c]
call fcn.004ffe51
cmp si, 2
jne 0x5101b0
cmp byte [esp + 0x64], 4
je 0x510a9c
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
lea edi, [esp + 0x5d0]
mov dword [edi + 4], ecx
mov dword [edi], eax
push 0xd
pop ecx
call fcn.004fda03
mov dword [eax], 0x6e6e6f43
mov dword [eax + 4], 0x20746365
mov dword [eax + 8], 0x6f727265
mov byte [eax + 0xc], 0x72
lea esi, [esp + 0x358]
push 2
pop ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], 0xd
and dword [esi + 0x58], 0
mov byte [esi + 0x60], 4
mov dword [esi], ecx
mov ecx, dword [esp + 4]
mov edx, esi
push edi
call fcn.00509351
jmp 0x510a1e
movsd xmm0, qword [esp + 0xd6]
movsd xmm1, qword [esp + 0xd0]
movsd xmm2, qword [esp + 0xc0]
mov ecx, dword [esp]
mov eax, dword [esp + 0x28]
movsd qword [esp + 0xb6], xmm0
movsd qword [esp + 0xb0], xmm1
movsd xmm1, qword [esp + 0xc8]
movsd qword [esp + 0xa0], xmm2
mov dword [esp + 0x14], ecx
movsd qword [esp + 0xa8], xmm1
movzx eax, byte [eax + 0x8d]
mov dword [esp + 0x358], eax
push 4
push ebx
push 1
push 6
push ecx
call dword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x5102bd
mov eax, dword [esp + 0x2c]
mov word [esp], si
mov esi, dword [eax + 0x50]
cmp esi, 0x3b9aca00
jne 0x5102ec
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
lea edi, [esp + 0x358]
mov ecx, edi
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [esi + 0x18]
call fcn.004ec050
add esp, 0xc
cmp byte [edi], 4
je 0x510272
mov edx, dword [esp + 0x358]
cmp dl, 4
jne 0x5102ad
mov edx, dword [esp + 0x14]
lea edi, [esp + 0x358]
mov ecx, edi
push dword [esi + 0x30]
push dword [esi + 0x2c]
push dword [esi + 0x28]
call fcn.004ec130
add esp, 0xc
cmp byte [edi], 4
je 0x5103b3
mov edx, dword [esp + 0x358]
lea edi, [esp + 0x3c]
cmp dl, 4
je 0x5103b7
mov ecx, dword [esp + 4]
push dword [esp + 0x35c]
jmp 0x5109fd
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 4]
xor edx, edx
push eax
jmp 0x5109fd
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x34]
push eax
call fcn.0050f03c
pop eax
lea ecx, [esp + 0x3c]
call fcn.004ffe51
jmp 0x510a0d
mov edx, dword [eax + 0x48]
mov eax, dword [eax + 0x4c]
lea ebx, [esp + 0x358]
mov ecx, ebx
mov dword [esp + 0x38], edx
push esi
mov dword [esp + 0x14], eax
push eax
call fcn.00500e77
pop eax
pop ecx
mov edi, dword [ebx + 8]
mov eax, dword [ebx]
mov ebx, dword [ebx + 4]
cmp edi, 0x3b9aca00
jne 0x510328
mov ecx, dword [esp + 4]
mov edx, eax
push ebx
jmp 0x5109fd
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x250]
push edi
push ebx
push eax
call fcn.004ec050
add esp, 0xc
lea eax, [esp + 0x250]
cmp byte [eax], 4
je 0x51035a
mov edx, dword [esp + 0x250]
cmp dl, 4
jne 0x5104df
mov edx, dword [esp + 0x38]
lea ebx, [esp + 0x358]
mov ecx, ebx
push esi
push dword [esp + 0x14]
call fcn.00500e77
pop eax
pop ecx
mov edi, dword [ebx + 8]
mov eax, dword [ebx]
mov esi, dword [ebx + 4]
cmp edi, 0x3b9aca00
jne 0x51038e
mov ecx, dword [esp + 4]
mov edx, eax
jmp 0x5109fc
mov edx, dword [esp + 0x14]
lea ebx, [esp + 0x250]
mov ecx, ebx
push edi
push esi
push eax
call fcn.004ec130
add esp, 0xc
cmp byte [ebx], 4
jne 0x5104c7
mov esi, dword [esp + 0x28]
lea edi, [esp + 0x3c]
cmp byte [esp + 0x1f], 0
je 0x51041d
movsd xmm0, qword [esp + 0xb6]
mov ecx, dword [esp + 4]
movsd xmm1, qword [esp + 0xb0]
movsd xmm2, qword [esp + 0xa0]
mov eax, dword [esp + 0x14]
movzx edx, word [esp]
movsd qword [ecx + 0x20], xmm0
movsd qword [ecx + 0x1a], xmm1
movsd xmm1, qword [esp + 0xa8]
movsd qword [ecx + 0xa], xmm2
movsd qword [ecx + 0x12], xmm1
mov dword [ecx + 4], eax
mov word [ecx + 8], dx
mov dword [ecx], 3
lea ecx, [esp + 0x70]
call fcn.00522035
jmp 0x510a1f
mov ecx, dword [esp + 0x2c]
call fcn.005005aa
mov ecx, eax
push 5
push 0x631e87
call fcn.00418dbd
pop ecx
pop edx
test al, al
je 0x5103be
cmp byte [esp + 0x10c], 4
je 0x5103be
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x84]
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0xf4]
mov dword [esp + 0x10], eax
movzx eax, word [ebp + 0x10]
test edx, edx
mov word [esp + 0x4c], ax
je 0x5104ef
cmp dword [esp + 0x100], 0
je 0x5104ef
lea edi, [esp + 0x358]
mov ecx, edi
push dword [esp + 0xfc]
call fcn.00421771
pop eax
cmp dword [edi], 0
lea esi, [esp + 0x1d0]
je 0x510513
mov eax, dword [esp + 0x360]
movsd xmm0, qword [esp + 0x358]
mov dword [esp + 0x1d8], eax
movsd qword [esp + 0x1d0], xmm0
jmp 0x51052e
mov edx, dword [esp + 0x250]
mov esi, dword [esp + 0x28]
lea edi, [esp + 0x3c]
cmp dl, 4
je 0x5103b7
mov ecx, dword [esp + 4]
push dword [esp + 0x254]
jmp 0x5109fd
mov dword [esp + 0x110], 1
and dword [esp + 0x114], 0
and dword [esp + 0x118], 0
mov esi, dword [esp + 0x10]
jmp 0x510692
mov dword [esp + 0x1d0], 1
and dword [esp + 0x1d4], 0
and dword [esp + 0x1d8], 0
mov edx, dword [esp + 0x100]
lea edi, [esp + 0x358]
mov ecx, edi
push dword [esp + 0x108]
call fcn.00421771
pop eax
cmp dword [edi], 0
je 0x510572
mov eax, dword [esp + 0x360]
movsd xmm0, qword [esp + 0x358]
mov dword [esp + 0x118], eax
movsd qword [esp + 0x110], xmm0
jmp 0x51058d
mov dword [esp + 0x110], 1
and dword [esp + 0x114], 0
and dword [esp + 0x118], 0
push 2
pop ecx
lea edi, [esp + 0x250]
mov eax, fcn.00417a93
lea edx, [esp + 0x110]
mov dword [edi], esi
mov dword [edi + 4], eax
mov dword [edi + 8], edx
lea edx, [esp + 0x358]
mov dword [edi + 0xc], eax
lea eax, [esp + 0x250]
lea esi, [esp + 0x78]
mov dword [edx], str.assertion_failed:_mid___self.len__chunk_size_must_be_non_zero
mov dword [edx + 4], ecx
and dword [edx + 0x10], 0
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov ecx, esi
call fcn.004ba4b9
mov ecx, dword [esp + 0x110]
mov edx, dword [esp + 0x114]
call fcn.0044c034
mov ecx, dword [esp + 0x1d0]
mov edx, dword [esp + 0x1d4]
call fcn.0044c034
mov ecx, edi
mov edx, esi
call fcn.00510d0c
cmp byte [esp + 0x10c], 0
je 0x510630
mov dword [esp + 0x110], 1
and dword [esp + 0x114], 0
and dword [esp + 0x118], 0
jmp 0x510677
lea edx, [esp + 0x358]
lea eax, [esp + 0x1d0]
lea ecx, [esp + 0x110]
mov dword [esp + 0x1d0], edi
mov dword [esp + 0x1d4], fcn.00417a93
mov dword [edx], str.Proxy_Authorization:_basic
mov dword [edx + 4], 2
and dword [edx + 0x10], 0
mov dword [edx + 8], eax
mov dword [edx + 0xc], 1
call fcn.004ba4b9
mov ecx, dword [esp + 0x250]
mov edx, dword [esp + 0x254]
mov esi, dword [esp + 0x10]
lea edi, [esp + 0x3c]
call fcn.0044c034
mov dword [esp + 8], ebx
mov dword [esp + 0x3c], ebx
lea eax, [esp + 8]
mov dword [esp + 0xc], esi
mov dword [esp + 0x40], esi
mov esi, fcn.00417b33
lea edx, [esp + 0x4c]
mov ecx, fcn.0043e430
lea ebx, [esp + 0x110]
mov dword [esp + 0x358], eax
mov dword [esp + 0x35c], esi
mov dword [esp + 0x360], edx
mov dword [esp + 0x364], ecx
mov dword [esp + 0x368], edi
mov dword [esp + 0x36c], esi
mov dword [esp + 0x370], edx
mov dword [esp + 0x374], ecx
lea ecx, [esp + 0x20]
lea edi, [esp + 0x1d0]
mov dword [esp + 0x378], ecx
mov dword [esp + 0x37c], esi
lea esi, [esp + 0x250]
mov ecx, fcn.00417a93
mov dword [esp + 0x380], ebx
lea ebx, [esp + 0x358]
mov dword [esi], str.CONNECT__HTTP_1.1_r_nHost:__r_nUser_Agent:__r_nProxy_Connection:_Keep_Alive_r_n
mov dword [esi + 4], 7
and dword [esi + 0x10], 0
mov dword [esp + 0x384], ecx
mov ecx, edi
mov edx, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], 6
call fcn.004ba4b9
mov ecx, dword [esp + 0x110]
mov edx, dword [esp + 0x114]
call fcn.0044c034
mov eax, fcn.00417a93
mov dword [esi], edi
mov dword [esp + str.assertion_failed:_mid___self.len__chunk_size_must_be_non_zero], 0x63d7c0
mov dword [esi + 4], eax
xor eax, eax
inc eax
mov dword [esp + 0x35c], eax
and dword [esp + 0x368], 0
mov dword [esp + 0x360], esi
mov dword [esp + 0x364], eax
push ebx
lea eax, [esp + 0x18]
push eax
lea esi, [esp + 0x118]
push esi
call fcn.005077d3
add esp, 0xc
mov ecx, esi
mov edx, 0x6312ec
call fcn.0050d8db
mov ecx, dword [esp + 0x1d0]
mov edx, dword [esp + 0x1d4]
call fcn.0044c034
mov esi, dword [esp + 0x14]
cmp esi, 0xffffffff
je 0x510ab0
push 0x274
push 0
push ebx
call fcn.00571330
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push ebx
push eax
push esi
call dword [sym.imp.ws2_32.dll_WSADuplicateSocketW]
cmp eax, 0xffffffff
je 0x5109ee
push 0x81
push 0
push ebx
push dword [esp + 0x3c0]
push dword [esp + 0x3c0]
push dword [esp + 0x3b8]
call dword [sym.imp.ws2_32.dll_WSASocketW]
mov edi, eax
cmp eax, 0xffffffff
je 0x51098d
mov ecx, dword [esp + 0x2c]
call fcn.005005aa
mov esi, edx
mov ebx, edi
lea edi, [esp + 0x624]
lea ecx, [esp + 0x5d8]
mov edx, eax
push dword [ebp + 0x10]
push dword [esp + 0x70]
push dword [esp + 0x70]
push esi
call fcn.0050f52a
add esp, 0x10
mov ecx, dword [esp + 0x94]
call fcn.00507cd1
mov dword [edi - 4], eax
push 0x12
pop ecx
lea esi, [esp + 0x5d8]
mov edx, ebx
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x358]
lea ecx, [esp + 0x66c]
movzx eax, word [esp]
movsd xmm1, qword [esp + 0xa8]
movsd xmm0, qword [esp + 0xa0]
movsd xmm2, qword [esp + 0xb0]
mov word [esi], ax
movsd qword [esi + 0xa], xmm1
movsd xmm1, qword [esp + 0xb6]
lea eax, [esp + 0x620]
movsd qword [esi + 0x12], xmm2
movsd qword [esi + 2], xmm0
movsd qword [esi + 0x18], xmm1
push eax
lea eax, [esp + 0x35c]
push eax
call fcn.00510abf
pop eax
pop ecx
mov edx, dword [esp + 0x2c]
lea edi, [esp + 0x1d0]
mov ecx, edi
call fcn.0050d90a
mov ecx, esi
lea edx, [esp + 0x66c]
push edi
call fcn.0050da3b
pop eax
mov esi, dword [esi]
lea eax, [esp + 0x35c]
cmp esi, 3
jne 0x510a40
mov esi, 0xc0
push esi
push eax
lea edi, [esp + 0x258]
push edi
call fcn.00570db0
add esp, 0xc
push esi
push edi
lea eax, [esp + 0x118]
push eax
call fcn.00570db0
add esp, 0xc
movzx ecx, word [esp + 0x1cc]
cmp ecx, 0xc8
je 0x510a72
cmp ecx, 0x197
je 0x510966
mov al, 0xa
cmp ecx, 0x191
jne 0x510968
mov al, 0xb
mov ecx, dword [esp + 4]
push 2
pop edx
mov dword [ecx], edx
mov dword [ecx + 4], edx
and dword [ecx + 0x4c], 0
and dword [ecx + 0x58], 0
mov byte [ecx + 0x60], al
lea ecx, [esp + 0x110]
call fcn.00500808
jmp 0x510a03
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x5109a3
mov esi, eax
cmp eax, 0x2726
jne 0x5109f6
push 1
push 0
push ebx
push dword [esp + 0x3c0]
push dword [esp + 0x3c0]
push dword [esp + 0x3b8]
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x5109ee
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x510831
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x5109f6
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, dword [esp + 4]
xor edx, edx
push esi
call fcn.0050f03c
pop eax
push dword [esp + 0x14]
call dword [sym.imp.ws2_32.dll_closesocket]
cmp byte [esp + 0x64], 4
je 0x510a1f
lea eax, [esp + 0x70]
push eax
call fcn.004fdf2b
pop eax
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
call fcn.0044c034
lea ecx, [esp + 0xe4]
call fcn.005009b5
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0xc0
push ecx
push eax
lea ebx, [esp + 0x258]
push ebx
call fcn.00570db0
add esp, 0xc
mov edi, dword [esp + 4]
mov ecx, 0xc0
lea eax, [edi + 4]
push ecx
push ebx
push eax
call fcn.00570db0
add esp, 0xc
mov dword [edi], esi
jmp 0x510a03
lea ecx, [esp + 0x110]
call fcn.00500808
jmp 0x5103be
push 0x2b
pop edx
mov ecx, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
push 0x6312dc
call fcn.00580f20
pop eax
ud2
ud2
push 0x3c
pop edx
mov ecx, str.shouldnt_happen:_failed_to_connect_to_all_IPs__but_no_error_a
push 0x631338
call fcn.00584ae6
jmp 0x510a95
push 0x3f
pop edx
mov ecx, str.assertion_failed:_socket___sys::c::INVALID_SOCKET_as_RawSocketlibrary_std_srcoswindowsio_socket.rs
push 0x60a32c
jmp 0x510a90