Function at 0x50c31c
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, 0x6f0
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, dword [edx + 0x58]
mov dword [esp + 4], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x30], ebx
mov edi, dword [ebx + 0x10]
cmp edi, 0x3b9aca00
jne 0x50c366
mov eax, dword [edx + 0x48]
mov esi, dword [edx + 0x4c]
mov ecx, dword [edx + 0x50]
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], esi
jmp 0x50c397
mov eax, dword [ebx + 8]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov ebx, dword [eax + 0xc]
call fcn.004dc930
mov esi, ecx
mov ecx, eax
push edi
push ebx
mov ebx, dword [esp + 0x38]
push dword [esp + 8]
push esi
call fcn.004f43f0
add esp, 0x10
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x40], ecx
lea esi, [esp + 0xdc]
lea edx, [ebx + 0x50]
mov ecx, esi
call fcn.004ffdca
cmp byte [esi + 0x28], 4
push 2
pop ebx
lea ecx, [esp + 0x60]
jne 0x50c3ef
lea edx, [esp + 0x350]
lea eax, [esp + 0x248]
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.00417b94
mov dword [edx + 8], eax
mov dword [eax + 8], ecx
mov dword [eax + 0xc], fcn.0043e220
jmp 0x50c427
lea edx, [esp + 0x350]
lea ecx, [esp + 0x248]
lea eax, [esp + 0xe8]
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.00417ace
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], fcn.00437820
mov dword [edx + 8], ecx
lea esi, [esp + 0x108]
mov dword [edx + 0xc], ebx
mov ecx, esi
call fcn.00401b26
mov eax, dword [esi + 8]
movsd xmm0, qword [esi]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x34]
movsd qword [esp + 0x48], xmm0
mov eax, dword [eax + 0x5c]
mov ecx, dword [eax + 8]
lock inc dword [ecx]
jle 0x50d7d7
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], ecx
lea edi, [esp + 0x48]
lea esi, [esp + 0x1c8]
mov dword [esp + 0x20], 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 0x50c4bf
mov eax, dword [esp + 0x1d0]
movsd xmm0, qword [esp + 0x1c8]
mov dword [esp + 0x254], eax
movsd qword [esp + 0x24c], xmm0
mov dword [esp + 0x248], 3
jmp 0x50c543
movsd xmm0, qword [esp + 0x1cc]
lea ebx, [esp + 0x7c]
lea eax, [esp + 0xb8]
lea edx, [esp + 0x108]
mov dword [eax], edi
mov dword [eax + 4], fcn.00417ace
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 + 0x39c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], 1
mov ecx, esi
call fcn.00401b26
mov dword [esi - 0x48], edi
and dword [esi + 0xc], 0
mov byte [esi + 0x14], 2
mov dword [esi - 0x4c], edi
lea esi, [esp + 0x248]
lea edi, [esp + 0x48]
lea edx, [esp + 0x350]
mov ecx, esi
push ebx
call fcn.0050625b
pop eax
mov esi, dword [esi]
cmp esi, 3
jne 0x50cdd1
mov eax, dword [esp + 0x250]
mov ebx, dword [esp + 0x24c]
mov esi, dword [esp + 0x254]
lea ecx, [esp + 0x1c]
mov dword [esp], eax
call fcn.0049f5f9
test esi, esi
je 0x50cd62
mov eax, dword [esp + 0x34]
mov dword [esp + 0x7c], ebx
mov edx, esi
mov dword [esp + 0x90], esi
add eax, 0x5c
mov dword [esp + 0x8c], eax
lea eax, [esp + 0xdc]
mov cl, byte [eax + 0x28]
lea eax, [esp + 0x68]
mov byte [eax], 4
mov eax, dword [esp]
mov byte [esp + 0x27], cl
movzx ecx, cl
mov dword [esp + 0x80], eax
mov eax, esi
mov dword [esp + 0x94], ecx
mov cl, 4
mov dword [esp + 0x84], ebx
shl eax, 5
mov dword [esp + 0x5c], ecx
add eax, ebx
mov dword [esp + 0x88], eax
mov si, 2
cmp ebx, eax
je 0x50ce1e
lea eax, [ebx + 0x20]
mov dword [esp + 0x84], eax
movsd xmm0, qword [ebx + 0x18]
movzx eax, word [ebx]
movsd qword [esp + 0x1de], xmm0
cmp ax, 2
movsd xmm0, qword [ebx + 0x12]
movsd qword [esp + 0x1d8], xmm0
movsd xmm0, qword [ebx + 0xa]
movsd qword [esp + 0x1d0], xmm0
movsd xmm0, qword [ebx + 2]
lea ebx, [esp + 0x350]
movsd qword [esp + 0x1c8], xmm0
je 0x50ce7b
movsd xmm0, qword [esp + 0x1de]
movsd xmm1, qword [esp + 0x1d8]
mov word [esp + 0x108], ax
lea eax, [esp + 0x10a]
movsd xmm2, qword [esp + 0x1c8]
cmp dword [esp + 0x40], 0x3b9aca00
mov esi, 0x3b9aca00
movsd qword [eax + 0x16], xmm0
movsd qword [eax + 0x10], xmm1
movsd xmm1, qword [esp + 0x1d0]
movsd qword [eax], xmm2
movsd qword [eax + 8], xmm1
je 0x50c6ef
mov edx, dword [esp + 0x78]
mov ecx, ebx
push dword [esp + 0x40]
push dword [esp + 0x78]
call fcn.004fdd2f
pop eax
pop ecx
mov eax, dword [esp + 0x350]
mov esi, dword [esp + 0x358]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x354]
cmp esi, 0x3b9aca00
je 0x50d01d
cmp dword [esp + 0x90], 1
jne 0x50c6cc
mov dword [esp + 0x58], eax
jmp 0x50c6ef
mov edx, dword [esp + 0x3c]
mov ecx, eax
shr esi, 1
shr ecx, 1
mov dword [esp + 0x58], ecx
shld eax, edx, 0x1f
and edx, 1
neg edx
mov dword [esp + 0x3c], eax
and edx, 0x1dcd6500
add esi, edx
mov eax, dword [0x640d94]
cmp eax, 3
jbe 0x50c774
lea eax, [esp + 0x108]
mov dword [esp + 0x248], edi
mov dword [esp + 0x24c], fcn.00417ace
mov dword [esp + str.connecting_to__at], 0x6232fc
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x250], eax
mov dword [esp + 0x254], 0x504a32
push 2
pop eax
mov dword [esp + 0x354], eax
and dword [esp + 0x360], 0
lea ecx, [esp + 0x248]
mov dword [esp + 0x358], ecx
mov dword [esp + 0x35c], eax
mov ecx, ebx
push 4
pop edx
push 0x18a
push 0x623264
call fcn.0045b0c0
pop eax
pop ecx
test byte [esp + 0x94], 3
jne 0x50c808
cmp esi, 0x3b9aca00
jne 0x50c860
lea edx, [esp + 0x10a]
movzx eax, word [esp + 0x108]
movzx ecx, word [esp + 0x10a]
mov ebx, dword [esp + 0x110]
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 + 0x258], esi
mov esi, dword [esp + 0x10c]
movsd qword [esp + 0x248], xmm0
movsd qword [esp + 0x250], xmm1
jne 0x50c8f1
lea ecx, [esp + 0x28]
mov edx, esi
push ebx
call fcn.005047f6
pop eax
cmp byte [esp + 0x28], 4
jne 0x50ca2b
mov esi, dword [esp + 0x2c]
jmp 0x50c9e0
mov ecx, ebx
lea edx, [esp + 0xdc]
call fcn.004ffdca
cmp byte [esp + 0x378], 4
je 0x50d7c2
push 0xb
pop ecx
lea edi, [esp + 0x248]
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.004d17b9
pop eax
pop ecx
lea ecx, [esp + 0x248]
call fcn.004fd931
mov al, byte [esp + 0x14]
lea edi, [esp + 0x48]
jmp 0x50ca3b
mov eax, dword [0x640c2c]
cmp eax, 3
jne 0x50cbcd
mov edx, dword [esp + 0x108]
mov ecx, ebx
call fcn.004e8f70
mov eax, ebx
mov bl, byte [esp + 0x350]
cmp bl, 4
jne 0x50c997
mov ecx, dword [esp + 0x354]
mov dword [esp + 0x350], 1
push eax
push 0x8004667e
mov dword [esp + 8], ecx
push ecx
call dword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x50cb21
cmp word [esp + 0x108], 0
je 0x50ca48
movups xmm0, xmmword [esp + 0x10c]
mov eax, dword [esp + 0x120]
mov cx, 0x17
lea edx, [esp + 0x124]
lea ebx, [esp + 0x11c]
push 0x1c
jmp 0x50ca5f
mov dword [esp + 0x10], ebx
mov bl, 4
mov byte [esp + 8], 4
cmp ax, 2
je 0x50c9b8
mov word [esp + 0x350], ax
movzx eax, word [esp]
movsd xmm0, qword [esp + 0x248]
movsd xmm1, qword [esp + 0x250]
lea ecx, [esp + 0x358]
mov word [esp + 0x352], ax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x354], esi
mov dword [esp + 0x358], eax
mov eax, dword [esp + 0x258]
movsd qword [ecx + 0xc], xmm1
movsd qword [ecx + 4], xmm0
mov dword [ecx + 0x14], eax
lea ecx, [esp + 0x1c]
push 4
pop edx
lea eax, [esp + 0x350]
push eax
call fcn.005047f6
pop eax
cmp byte [esp + 0x1c], 4
je 0x50c9c6
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
lea ecx, [esp + 8]
call fcn.0051f916
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov ax, 2
jmp 0x50c8fc
movzx eax, byte [esp + 0x353]
movzx edi, word [esp + 0x351]
mov esi, dword [esp + 0x354]
shl eax, 0x10
or edi, eax
jmp 0x50cb7d
cmp bl, 4
jne 0x50c9ed
mov edi, 0x621490
mov bl, 2
jmp 0x50ca06
mov esi, dword [esp + 0x20]
lea ecx, [esp + 8]
mov dword [esp + 0x2c], esi
mov byte [esp + 0x28], 4
call fcn.0051f916
lea edi, [esp + 0x48]
mov al, 4
mov dword [esp + 0x18], esi
mov byte [esp + 0x14], 4
jmp 0x50ca3b
lea ecx, [esp + 9]
mov al, byte [ecx + 2]
movzx ecx, word [ecx]
mov byte [esp + 0x352], al
mov word [esp + 0x350], cx
mov al, byte [esp + 0x352]
movzx edx, word [esp + 0x350]
lea ecx, [esp + 0x29]
mov byte [esp + 0x28], bl
mov byte [ecx + 2], al
mov word [ecx], dx
mov dword [esp + 0x2c], edi
lea edi, [esp + 0x48]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
cmp al, 4
jne 0x50cb91
jmp 0x50ce27
mov cx, 2
xorps xmm0, xmm0
lea edx, [esp + 0x10e]
lea ebx, [esp + 0x10a]
push 0x10
pop edi
movzx edx, word [edx]
mov ebx, dword [ebx]
mov word [esp + 0x350], cx
rol dx, 8
mov word [esp + 0x352], dx
mov dword [esp + 0x354], ebx
movups xmmword [esp + 0x358], xmm0
mov dword [esp + 0x368], eax
push edi
lea ebx, [esp + 0x354]
push ebx
mov edi, dword [esp + 8]
push edi
call dword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
je 0x50caca
and dword [esp + 0x350], 0
push ebx
push 0x8004667e
push edi
call dword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x50cb21
push 4
pop ebx
jmp 0x50cb4f
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
and dword [esp + 0x350], 0
mov dword [esp + 0x10], eax
push ebx
push 0x8004667e
push edi
call dword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x50cb21
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.004dd020
xor ebx, ebx
cmp al, 0xd
jne 0x50cb4f
mov eax, dword [esp + 0x3c]
or eax, dword [esp + 0x58]
jne 0x50cbd7
test esi, esi
jne 0x50cbd7
mov ecx, dword [esp]
mov bl, 2
mov esi, 0x5fd054
jmp 0x50cb67
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 0x50cb67
mov ecx, dword [esp]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edi
cmp bl, 4
je 0x50ce2e
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 + 0x48]
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x68]
call fcn.0051f916
cmp bl, 4
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov dword [esp + 0x5c], ebx
jne 0x50cbba
push esi
call dword [sym.imp.ws2_32.dll_closesocket]
mov ebx, dword [esp + 0x84]
mov eax, dword [esp + 0x88]
jmp 0x50c5cb
call fcn.00579cf0
jmp 0x50c86e
mov edx, dword [esp + 0x3c]
mov eax, 0x7fffffff
mov ecx, 0x7fffffff
mov ebx, 0x3e8
mov edi, 1
cmp edx, eax
cmovb ecx, edx
cmp dword [esp + 0x58], 0
cmovne ecx, eax
mov eax, esi
xor edx, edx
div ebx
mov dword [esp + 0x1c], ecx
test ecx, ecx
mov ecx, eax
cmove ecx, edi
cmp esi, ebx
mov esi, 0xfc
cmovae ecx, eax
mov dword [esp + 0x20], ecx
push esi
push 0
lea eax, [esp + 0x360]
push eax
call fcn.00566f40
add esp, 0xc
mov ebx, dword [esp]
mov dword [esp + 0x248], edi
mov dword [esp + 0x24c], ebx
push esi
push 0
lea eax, [esp + 0x258]
push eax
call fcn.00566f40
add esp, 0xc
lea eax, [esp + 0x1c]
mov dword [esp + 0x350], edi
mov dword [esp + 0x354], ebx
push eax
lea eax, [esp + 0x354]
push eax
lea eax, [esp + 0x250]
push eax
push 0
push edi
call dword [sym.imp.ws2_32.dll_select]
test eax, eax
je 0x50cca5
cmp eax, 0xffffffff
jne 0x50ccbc
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 0x50cd59
mov ecx, dword [esp]
mov byte [esp + 8], 2
mov dword [esp + 0xc], 0x5fd074
mov bl, 2
jmp 0x50cb5a
cmp dword [esp + 0x248], 1
mov ecx, dword [esp]
mov bl, 4
je 0x50cb5a
and dword [esp + 0x44], 0
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 4
push eax
lea eax, [esp + 0x48]
push eax
push 0x1007
push 0xffff
push ecx
call dword [sym.imp.ws2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x50cd12
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x50cd29
and dword [esp + 0x38], 0xffffff00
mov dword [esp + 0x70], ecx
jmp 0x50cd3a
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ecx, dword [esp]
mov dword [esp + 0x70], eax
mov dword [esp + 0x38], 0
jmp 0x50cd4d
mov ecx, dword [esp + 0x38]
and ecx, 0xffffff00
or ecx, 4
mov dword [esp + 0x38], ecx
mov ecx, dword [esp]
cmp eax, 0xffffffff
je 0x50cd4d
cmp byte [esp + 0x38], 4
je 0x50cb5a
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x70]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
jmp 0x50cb5a
lea eax, [esp + 0x108]
lea ecx, [esp + 0x60]
lea edx, [esp + 0x248]
mov dword [eax], ecx
xor ecx, ecx
mov dword [edx], str.No_ip_address_for
mov dword [eax + 4], fcn.00417b94
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 + 0x394]
call fcn.00401b26
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 + 0x350]
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.004fcd34
jmp 0x50d75a
lea eax, [esp + 0x258]
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.005669c0
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 + 0x1c]
mov dword [edi], esi
call fcn.0049f5f9
jmp 0x50d75a
lea ebx, [esp + 0x350]
jmp 0x50ce7b
mov eax, dword [esp + 0x18]
mov dword [esp], eax
lea eax, [esp + 0x10a]
movzx esi, word [esp + 0x108]
lea ebx, [esp + 0x350]
movsd xmm1, qword [eax + 8]
movsd xmm0, qword [eax]
movsd xmm2, qword [eax + 0x10]
movsd qword [esp + 0xc0], xmm1
movsd xmm1, qword [eax + 0x16]
movsd qword [esp + 0xc8], xmm2
movsd qword [esp + 0xb8], xmm0
movsd qword [esp + 0xce], xmm1
lea ecx, [esp + 0x7c]
call fcn.004fcd27
cmp si, 2
jne 0x50cefe
cmp byte [esp + 0x5c], 4
je 0x50d7db
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
lea edi, [esp + 0x5c8]
mov dword [edi + 4], ecx
mov dword [edi], eax
push 0xd
pop ecx
call fcn.004fa895
mov dword [eax], 0x6e6e6f43
mov dword [eax + 4], 0x20746365
mov dword [eax + 8], 0x6f727265
mov byte [eax + 0xc], 0x72
lea esi, [esp + 0x350]
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.0050625b
jmp 0x50d759
movsd xmm0, qword [esp + 0xce]
movsd xmm1, qword [esp + 0xc8]
movsd xmm2, qword [esp + 0xb8]
mov ecx, dword [esp]
mov eax, dword [esp + 0x30]
movsd qword [esp + 0xae], xmm0
movsd qword [esp + 0xa8], xmm1
movsd xmm1, qword [esp + 0xc0]
movsd qword [esp + 0x98], xmm2
mov dword [esp + 0x14], ecx
movsd qword [esp + 0xa0], xmm1
movzx eax, byte [eax + 0x8d]
mov dword [esp + 0x350], eax
push 4
push ebx
push 1
push 6
push ecx
call dword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x50d00b
mov eax, dword [esp + 0x34]
mov word [esp], si
mov ebx, dword [eax + 0x50]
cmp ebx, 0x3b9aca00
jne 0x50d03a
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
lea esi, [esp + 0x350]
mov ecx, esi
push dword [edi + 0x20]
push dword [edi + 0x1c]
push dword [edi + 0x18]
call fcn.004e9030
add esp, 0xc
cmp byte [esi], 4
je 0x50cfc0
mov edx, dword [esp + 0x350]
cmp dl, 4
jne 0x50cffb
mov edx, dword [esp + 0x14]
lea esi, [esp + 0x350]
mov ecx, esi
push dword [edi + 0x30]
push dword [edi + 0x2c]
push dword [edi + 0x28]
call fcn.004e9110
add esp, 0xc
cmp byte [esi], 4
je 0x50d0f6
mov edx, dword [esp + 0x350]
movzx esi, word [esp]
cmp dl, 4
je 0x50d0fa
mov ecx, dword [esp + 4]
push dword [esp + 0x354]
jmp 0x50d738
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 4]
xor edx, edx
push eax
jmp 0x50d738
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x3c]
push eax
call fcn.0050da3a
pop eax
lea ecx, [esp + 0x7c]
call fcn.004fcd27
jmp 0x50d748
mov edx, dword [eax + 0x48]
mov eax, dword [eax + 0x4c]
lea edi, [esp + 0x350]
mov ecx, edi
mov dword [esp + 0x40], edx
push ebx
mov dword [esp + 0x14], eax
push eax
call fcn.004fdd2f
pop eax
pop ecx
mov esi, dword [edi + 8]
mov eax, dword [edi]
mov edi, dword [edi + 4]
cmp esi, 0x3b9aca00
je 0x50d0c5
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x248]
push esi
push edi
push eax
call fcn.004e9030
add esp, 0xc
lea eax, [esp + 0x248]
cmp byte [eax], 4
je 0x50d09c
mov edx, dword [esp + 0x248]
cmp dl, 4
jne 0x50d217
mov edx, dword [esp + 0x40]
lea edi, [esp + 0x350]
mov ecx, edi
push ebx
push dword [esp + 0x14]
call fcn.004fdd2f
pop eax
pop ecx
mov ebx, dword [edi + 8]
mov eax, dword [edi]
mov edi, dword [edi + 4]
cmp ebx, 0x3b9aca00
jne 0x50d0d1
mov ecx, dword [esp + 4]
mov edx, eax
push edi
jmp 0x50d738
mov edx, dword [esp + 0x14]
lea esi, [esp + 0x248]
mov ecx, esi
push ebx
push edi
push eax
call fcn.004e9110
add esp, 0xc
cmp byte [esi], 4
jne 0x50d1ff
mov edi, dword [esp + 0x30]
movzx esi, word [esp]
cmp byte [esp + 0x27], 0
je 0x50d15c
movsd xmm0, qword [esp + 0xae]
mov ecx, dword [esp + 4]
movsd xmm1, qword [esp + 0xa8]
movsd xmm2, qword [esp + 0x98]
mov eax, dword [esp + 0x14]
movsd qword [ecx + 0x20], xmm0
movsd qword [ecx + 0x1a], xmm1
movsd xmm1, qword [esp + 0xa0]
movsd qword [ecx + 0xa], xmm2
movsd qword [ecx + 0x12], xmm1
mov dword [ecx + 4], eax
mov word [ecx + 8], si
mov dword [ecx], 3
lea ecx, [esp + 0x68]
call fcn.0051f916
jmp 0x50d75a
mov ecx, dword [esp + 0x34]
call fcn.004fd482
mov ecx, eax
push 5
push 0x623e4b
call fcn.004d1a1f
pop ecx
pop edx
test al, al
je 0x50d101
cmp byte [esp + 0x104], 4
je 0x50d101
mov ecx, dword [edi + 0x7c]
mov edx, dword [edi + 0x84]
movzx eax, word [ebp + 0x10]
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0xec]
mov word [esp + 0x44], ax
test edx, edx
je 0x50d227
cmp dword [esp + 0xf8], 0
je 0x50d227
mov dword [esp + 0x10], esi
lea esi, [esp + 0x350]
mov ecx, esi
push dword [esp + 0xf4]
call fcn.004214bb
pop eax
cmp dword [esi], 0
je 0x50d247
mov eax, dword [esp + 0x358]
movsd xmm0, qword [esp + 0x350]
mov dword [esp + 0x1d0], eax
movsd qword [esp + 0x1c8], xmm0
jmp 0x50d262
mov edx, dword [esp + 0x248]
mov edi, dword [esp + 0x30]
movzx esi, word [esp]
cmp dl, 4
je 0x50d0fa
mov ecx, dword [esp + 4]
push dword [esp + 0x24c]
jmp 0x50d738
mov dword [esp + 0x108], 1
and dword [esp + 0x10c], 0
and dword [esp + 0x110], 0
jmp 0x50d3c9
mov dword [esp + 0x1c8], 1
and dword [esp + 0x1cc], 0
and dword [esp + 0x1d0], 0
mov edx, dword [esp + 0xf8]
lea esi, [esp + 0x350]
mov ecx, esi
push dword [esp + 0x100]
call fcn.004214bb
pop eax
cmp dword [esi], 0
je 0x50d2a6
mov eax, dword [esp + 0x358]
movsd xmm0, qword [esp + 0x350]
mov dword [esp + 0x110], eax
movsd qword [esp + 0x108], xmm0
jmp 0x50d2c1
mov dword [esp + 0x108], 1
and dword [esp + 0x10c], 0
and dword [esp + 0x110], 0
push 2
pop ecx
lea edx, [esp + 0x350]
lea eax, [esp + 0x1c8]
lea esi, [esp + 0x248]
lea edi, [esp + 0x108]
mov dword [esi], eax
mov eax, fcn.00417ace
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 [esi + 4], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
lea eax, [esp + 0x248]
lea edi, [esp + 0x7c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov ecx, edi
call fcn.00401b26
mov ecx, dword [esp + 0x108]
mov edx, dword [esp + 0x10c]
call fcn.004499b4
mov ecx, dword [esp + 0x1c8]
mov edx, dword [esp + 0x1cc]
call fcn.004499b4
mov ecx, esi
mov edx, edi
call fcn.0050da56
cmp byte [esp + 0x104], 0
je 0x50d36b
mov dword [esp + 0x108], 1
and dword [esp + 0x10c], 0
and dword [esp + 0x110], 0
jmp 0x50d3b2
lea edx, [esp + 0x350]
lea eax, [esp + 0x1c8]
lea ecx, [esp + 0x108]
mov dword [esp + 0x1c8], esi
mov dword [esp + 0x1cc], fcn.00417ace
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.00401b26
mov ecx, dword [esp + 0x248]
mov edx, dword [esp + 0x24c]
mov esi, dword [esp + 0x10]
call fcn.004499b4
lea eax, [esp + 8]
mov dword [esp + 8], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 0x20], esi
lea esi, [esp + 0x44]
mov ecx, fcn.0043e220
lea edx, [esp + 0x1c]
lea ebx, [esp + 0x108]
lea edi, [esp + 0x1c8]
mov dword [esp + 0x350], eax
mov eax, fcn.00417b94
mov dword [esp + 0x354], eax
mov dword [esp + 0x358], esi
mov dword [esp + 0x35c], ecx
mov dword [esp + 0x360], edx
mov dword [esp + 0x364], eax
mov dword [esp + 0x368], esi
lea esi, [esp + 0x248]
mov dword [esp + 0x36c], ecx
lea ecx, [esp + 0x28]
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 + 0x370], ecx
mov dword [esp + 0x374], eax
mov dword [esp + 0x378], ebx
mov eax, fcn.00417ace
lea ebx, [esp + 0x350]
mov ecx, edi
mov edx, esi
mov dword [esi + 8], ebx
mov dword [esp + 0x37c], eax
mov dword [esi + 0xc], 6
call fcn.00401b26
mov ecx, dword [esp + 0x108]
mov edx, dword [esp + 0x10c]
call fcn.004499b4
mov eax, fcn.00417ace
mov dword [esi], edi
mov dword [esp + str.assertion_failed:_mid___self.len__chunk_size_must_be_non_zero], 0x62e9c0
mov dword [esi + 4], eax
xor eax, eax
inc eax
mov dword [esp + 0x354], eax
and dword [esp + 0x360], 0
mov dword [esp + 0x358], esi
mov dword [esp + 0x35c], eax
push ebx
lea eax, [esp + 0x18]
push eax
lea esi, [esp + 0x110]
push esi
call fcn.0050454f
add esp, 0xc
mov ecx, esi
mov edx, 0x62331c
call fcn.0050a72a
mov ecx, dword [esp + 0x1c8]
mov edx, dword [esp + 0x1cc]
call fcn.004499b4
mov esi, dword [esp + 0x14]
cmp esi, 0xffffffff
je 0x50d7ef
push 0x274
push 0
push ebx
call fcn.00566f40
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 0x50d729
push 0x81
push 0
push ebx
push dword [esp + 0x3b8]
push dword [esp + 0x3b8]
push dword [esp + 0x3b0]
call dword [sym.imp.ws2_32.dll_WSASocketW]
mov edi, eax
cmp eax, 0xffffffff
je 0x50d6c8
mov ecx, dword [esp + 0x34]
call fcn.004fd482
mov esi, edx
mov ebx, edi
lea edi, [esp + 0x61c]
lea ecx, [esp + 0x5d0]
mov edx, eax
push dword [ebp + 0x10]
push dword [esp + 0x68]
push dword [esp + 0x68]
push esi
call fcn.0050c2a3
add esp, 0x10
mov ecx, dword [esp + 0x8c]
call fcn.00504b50
mov dword [edi - 4], eax
push 0x12
pop ecx
lea esi, [esp + 0x5d0]
mov edx, ebx
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x350]
lea ecx, [esp + 0x664]
movzx eax, word [esp]
movsd xmm1, qword [esp + 0xa0]
movsd xmm0, qword [esp + 0x98]
movsd xmm2, qword [esp + 0xa8]
mov word [esi], ax
movsd qword [esi + 0xa], xmm1
movsd xmm1, qword [esp + 0xae]
lea eax, [esp + 0x618]
movsd qword [esi + 0x12], xmm2
movsd qword [esi + 2], xmm0
movsd qword [esi + 0x18], xmm1
push eax
lea eax, [esp + 0x354]
push eax
call fcn.0050d7fe
pop eax
pop ecx
mov edx, dword [esp + 0x34]
lea edi, [esp + 0x1c8]
mov ecx, edi
call fcn.0050a759
mov ecx, esi
lea edx, [esp + 0x664]
push edi
call fcn.0050a88a
pop eax
mov esi, dword [esi]
lea eax, [esp + 0x354]
cmp esi, 3
jne 0x50d77b
mov esi, 0xc0
push esi
push eax
lea edi, [esp + 0x250]
push edi
call fcn.005669c0
add esp, 0xc
push esi
push edi
lea eax, [esp + 0x110]
push eax
call fcn.005669c0
add esp, 0xc
movzx ecx, word [esp + 0x1c4]
cmp ecx, 0xc8
je 0x50d7ad
cmp ecx, 0x197
je 0x50d6a1
mov al, 0xa
cmp ecx, 0x191
jne 0x50d6a3
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 + 0x108]
call fcn.004fd6cc
jmp 0x50d73e
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x50d6de
mov esi, eax
cmp eax, 0x2726
jne 0x50d731
push 1
push 0
push ebx
push dword [esp + 0x3b8]
push dword [esp + 0x3b8]
push dword [esp + 0x3b0]
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x50d729
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x50d56c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x50d731
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, dword [esp + 4]
xor edx, edx
push esi
call fcn.0050da3a
pop eax
push dword [esp + 0x14]
call dword [sym.imp.ws2_32.dll_closesocket]
cmp byte [esp + 0x5c], 4
je 0x50d75a
lea eax, [esp + 0x68]
push eax
call fcn.004fae84
pop eax
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
call fcn.004499b4
lea ecx, [esp + 0xdc]
call fcn.004fd926
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0xc0
push ecx
push eax
lea ebx, [esp + 0x250]
push ebx
call fcn.005669c0
add esp, 0xc
mov edi, dword [esp + 4]
mov ecx, 0xc0
lea eax, [edi + 4]
push ecx
push ebx
push eax
call fcn.005669c0
add esp, 0xc
mov dword [edi], esi
jmp 0x50d73e
lea ecx, [esp + 0x108]
call fcn.004fd6cc
movzx esi, word [esp]
jmp 0x50d101
push 0x2b
pop edx
mov ecx, str.called__Option::unwrap____on_a__None__valuecalled__Result::unwrap____on_an__Err__value
push 0x62330c
call fcn.00576b20
pop eax
ud2
ud2
push 0x3c
pop edx
mov ecx, str.shouldnt_happen:_failed_to_connect_to_all_IPs__but_no_error_0b
push 0x623368
call fcn.0057a6c1
jmp 0x50d7d4
push 0x3f
pop edx
mov ecx, str.assertion_failed:_socket___sys::c::INVALID_SOCKET_as_RawSocketlibrary_std_srcoswindowsio_socket.rs
push 0x5fc3ec
jmp 0x50d7cf