Function at 0x10058260
Capabilities:
Connect socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Set socket configuration

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011d4ef
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x11b0
call fcn.100ebdb0
mov eax, dword [0x101c7100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x1170]
mov dword [ebp - 0x1194], eax
mov dword [ebp - 0x112c], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x1134], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x110c], eax
mov dword [ebp - 0x1184], 1
call fcn.10056070
push 0
push 0xf4240
push dword [ebx + 0x1c]
mov esi, eax
push dword [ebx + 0x18]
call fcn.100ebaa0
add eax, dword [esi]
mov ecx, 0x1082a5bc
push 4
adc edx, dword [esi + 4]
cmp dword [0x1082a5d0], 0xf
mov dword [ebp - 0x1158], edx
cmova ecx, dword [0x1082a5bc]
mov edx, dword [0x1082a5cc]
push str.http
mov dword [ebp - 0x115c], eax
call fcn.1003a280
add esp, 8
test al, al
je 0x10059525
mov eax, dword [0x1082a5b9]
xorps xmm0, xmm0
movups xmmword [ebp - 0x11bc], xmm0
movups xmmword [ebp - 0x11ac], xmm0
test al, al
jne 0x10058351
mov eax, 2
jmp 0x1005835e
cmp al, 1
jne 0x1005951e
mov eax, 0x17
cmp dword [0x1082a62c], 0
mov dword [ebp - 0x11b8], eax
mov dword [ebp - 0x11b4], 1
jne 0x1005837e
mov ecx, 0x101a6124
jmp 0x10058391
cmp dword [0x1082a630], 0xf
mov ecx, 0x1082a61c
cmova ecx, dword [0x1082a61c]
cmp dword [0x1082a618], 0xf
lea edx, [ebp - 0x1180]
push edx
lea edx, [ebp - 0x11bc]
mov eax, 0x1082a604
cmova eax, dword [0x1082a604]
push edx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x10059540
mov eax, dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [ebp - 0x119c], eax
mov eax, dword [ebp - 0x1180]
mov dword [ebp - 0x1154], eax
mov dword [ebp - 0x1198], eax
mov dword [ebp - 4], 1
sub esp, 0xc
mov ecx, dword [ebp - 0x110c]
mov edi, esp
mov dword [ebp - 0x1130], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
sar eax, 4
imul eax, eax, 0xaaaaaaab
mov dword [ebp - 0x111c], eax
test eax, eax
je 0x100584c5
cmp eax, 0x5555555
ja 0x1005957d
lea edx, [ebp - 0x1108]
mov dword [ebp - 0x1108], eax
call fcn.1005e160
mov esi, eax
mov dword [ebp - 0x1174], edi
mov eax, dword [ebp - 0x111c]
mov dword [edi], esi
mov dword [edi + 4], esi
lea eax, [eax + eax*2]
shl eax, 4
add eax, esi
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x110c]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov ecx, dword [eax + 4]
mov edi, dword [eax]
mov eax, esp
mov dword [ebp - 0x1108], ecx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
cmp edi, ecx
je 0x100584be
push edi
mov ecx, esi
mov dword [ebp - 0x113c], esi
call fcn.10038770
lea eax, [edi + 0x18]
mov byte [ebp - 4], 4
lea ecx, [esi + 0x18]
push eax
call fcn.10038770
mov byte [ebp - 4], 3
add esi, 0x30
add edi, 0x30
mov dword [ebp - 0x1c], esi
cmp edi, dword [ebp - 0x1108]
jne 0x10058485
mov eax, dword [ebp - 0x1130]
mov dword [eax + 4], esi
mov byte [ebp - 4], 1
push dword [ebx + 0x10]
mov edx, 0x1082a5bc
lea ecx, [ebp - 0x114c]
push dword [ebp - 0x1134]
call fcn.100579d0
add esp, 0x14
mov byte [ebp - 4], 5
mov cl, byte [0x1082a5b9]
push 6
push 1
call fcn.100571d0
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [ebp - 0x1134], esi
cmp esi, 0xffffffff
je 0x10059582
lea eax, [ebp - 0x1108]
mov dword [ebp - 0x1108], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x100595a9
mov byte [ebp - 4], 6
cmp dword [ebx + 0x1c], 0
jl 0x10058563
jg 0x10058544
cmp dword [ebx + 0x18], 0
jb 0x10058563
push dword [ebp - 0x1158]
push dword [ebp - 0x115c]
call fcn.100595f0
mov dword [ebp - 0x1130], eax
mov dword [ebp - 0x110c], edx
jmp 0x10058577
mov dword [ebp - 0x1130], 0xffffffff
mov dword [ebp - 0x110c], 0xffffffff
mov eax, dword [ebp - 0x1154]
mov edi, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
push edi
push eax
push esi
mov dword [ebp - 0x1108], eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100585bb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x10058655
push edi
push dword [ebp - 0x1108]
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10058597
mov edi, dword [ebp - 0x1148]
mov eax, dword [ebp - 0x114c]
sub edi, eax
mov dword [ebp - 0x111c], eax
mov dword [ebp - 0x1118], edi
je 0x1005876e
nop dword [eax + eax]
cmp dword [ebx + 0x1c], 0
jl 0x100586ea
jg 0x100585f6
cmp dword [ebx + 0x18], 0
jb 0x100586ea
lea ecx, [ebp - 0x1178]
call fcn.10056070
mov ecx, dword [ebp - 0x115c]
sub ecx, dword [ebp - 0x1178]
mov eax, dword [ebp - 0x1158]
sbb eax, dword [ebp - 0x1174]
push 0
push 0xf4240
push eax
push ecx
call fcn.10117350
test edx, edx
jl 0x10058639
jg 0x100586ef
test eax, eax
jne 0x100586ef
xorps xmm0, xmm0
movlpd qword [ebp - 0x1140], xmm0
mov edx, dword [ebp - 0x113c]
mov eax, dword [ebp - 0x1140]
jmp 0x100586ef
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
jne 0x100586d9
push dword [ebp - 0x110c]
lea ecx, [ebp - 0x1134]
push dword [ebp - 0x1130]
push 1
call fcn.100572a0
lea eax, [ebp - 0x1108]
mov dword [ebp - 0x1108], 4
push eax
lea eax, [ebp - 0x110c]
push eax
push 0x1007
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
jne 0x100586bc
push str.Failed_to_get_socket_option
push 0x101ce970
call edi
jmp 0x10059592
mov eax, dword [ebp - 0x110c]
test eax, eax
je 0x100585bb
push str.Failed_to_connect
push 0x101ce970
jmp 0x10059592
push str.Failed_to_connect
push 0x101ce970
call edi
jmp 0x10059592
or eax, 0xffffffff
or edx, eax
push edx
push eax
push 1
lea ecx, [ebp - 0x1134]
call fcn.100572a0
push 0
push edi
push dword [ebp - 0x111c]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10058745
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x10058740
push 0
push dword [ebp - 0x1118]
push dword [ebp - 0x111c]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
je 0x10058715
jmp 0x10058745
cmp edi, 0xffffffff
je 0x10058764
mov eax, dword [ebp - 0x1118]
add dword [ebp - 0x111c], edi
sub eax, edi
mov dword [ebp - 0x1118], eax
test eax, eax
je 0x1005876e
mov edi, eax
jmp 0x100585e0
push str.Failed_to_send_data
jmp 0x10059587
mov eax, dword [ebp - 0x112c]
xorps xmm0, xmm0
mov word [ebp - 0x1124], 0xa0d
mov dword [ebp - 0x1150], 0xa0d0a0d
movups xmmword [eax + 8], xmm0
mov dword [eax + 0x18], 0
lea ecx, [eax + 8]
mov dword [eax + 0x1c], 0xf
mov byte [eax + 8], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [ebp - 0x117c], ecx
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
xor eax, eax
mov dword [ebp - 0x1184], 1
xor edx, edx
mov dword [ebp - 0x1104], eax
mov dword [ebp - 0x1114], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
xor al, al
mov dword [ebp - 4], 8
xor ecx, ecx
mov byte [ebp - 0x1125], al
mov byte [ebp - 0x110d], al
mov dword [ebp - 0x1130], edx
mov byte [ebp - 0x111d], al
mov dword [ebp - 0x1118], ecx
mov dword [ebp - 0x111c], eax
mov dword [ebp - 0x1174], 1
nop
cmp dword [ebx + 0x1c], 0
jl 0x10058892
jg 0x1005883e
cmp dword [ebx + 0x18], 0
jb 0x10058892
lea ecx, [ebp - 0x1190]
call fcn.10056070
mov ecx, dword [ebp - 0x115c]
sub ecx, dword [ebp - 0x1190]
mov eax, dword [ebp - 0x1158]
sbb eax, dword [ebp - 0x118c]
push 0
push 0xf4240
push eax
push ecx
call fcn.10117350
test edx, edx
jl 0x10058879
jg 0x10058897
test eax, eax
jne 0x10058897
xorps xmm0, xmm0
movlpd qword [ebp - 0x1140], xmm0
mov edx, dword [ebp - 0x113c]
mov eax, dword [ebp - 0x1140]
jmp 0x10058897
or eax, 0xffffffff
or edx, eax
push edx
push eax
push 0
lea ecx, [ebp - 0x1134]
call fcn.100572a0
push 0
push 0x1000
lea eax, [ebp - 0x1100]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100588f6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x100588ed
push 0
push 0x1000
lea eax, [ebp - 0x1100]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
je 0x100588c2
jmp 0x100588f6
cmp edi, 0xffffffff
je 0x1005931a
test edi, edi
je 0x10059468
push edi
lea eax, [ebp - 0x1100]
push eax
push dword [ebp - 0x1104]
lea ecx, [ebp - 0x20]
call fcn.1005d3e0
cmp byte [ebp - 0x1125], 0
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x1114], edx
jne 0x10058fb4
mov eax, dword [ebp - 0x1c]
mov ecx, eax
sub ecx, edx
mov dword [ebp - 0x1104], eax
cmp ecx, 4
jl 0x10058992
lea ecx, [eax - 4]
mov dword [ebp - 0x1108], ecx
mov ecx, edx
mov edi, ecx
mov dword [ebp - 0x110c], ecx
lea ecx, [ebp - 0x1150]
sub edi, ecx
nop word [eax + eax]
lea edx, [ebp - 0x1150]
nop word [eax + eax]
mov cl, byte [edx + edi]
cmp cl, byte [edx]
jne 0x10058b1e
inc edx
lea ecx, [ebp - 0x114c]
cmp edx, ecx
jne 0x10058970
mov eax, dword [ebp - 0x110c]
mov edx, dword [ebp - 0x1114]
cmp eax, dword [ebp - 0x1104]
je 0x10059378
lea esi, [eax + 2]
push esi
push edx
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x110c], esi
call fcn.1005ce30
add esp, 8
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x90]
mov ecx, dword [ebp - 0x112c]
mov eax, dword [ebp - 0x98]
mov edi, dword [ebp - 0x9c]
mov dword [ecx], eax
mov ax, word [ebp - 0x94]
mov word [ecx + 4], ax
lea eax, [ecx + 8]
cmp eax, edx
je 0x10058a20
mov ecx, eax
call fcn.100385e0
movups xmm0, xmmword [ebp - 0x90]
mov eax, dword [ebp - 0x117c]
mov byte [ebp - 0x90], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x80]
movq qword [eax + 0x10], xmm0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
nop dword [eax]
push esi
push edi
lea ecx, [ebp - 0x100]
call fcn.1005cff0
add esp, 8
movups xmm0, xmmword [ebp - 0xfc]
mov edi, dword [ebp - 0x100]
movq xmm1, qword [ebp - 0xec]
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0xec], 0
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0xe8], 0xf
movq qword [ebp - 0x1170], xmm1
movq qword [ebp - 0x68], xmm1
mov byte [ebp - 0xfc], 0
movups xmm1, xmmword [ebp - 0xe4]
mov byte [ebp - 0xe4], 0
movq xmm2, qword [ebp - 0xd4]
movups xmmword [ebp - 0x44], xmm1
mov dword [ebp - 0xd4], 0
movq qword [ebp - 0x34], xmm2
mov dword [ebp - 0xd0], 0xf
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 0x64]
cmp eax, 0xf
movd ecx, xmm0
cmova edx, ecx
mov dword [ebp - 0x113c], ecx
cmp dword [ebp - 0x68], 0x11
jne 0x10058bd8
mov ecx, str.transfer_encoding
mov esi, 0xd
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x10058ae7
add edx, 4
add ecx, 4
sub esi, 4
jae 0x10058ad6
mov al, byte [edx]
mov dword [ebp - 0x1108], esi
mov esi, dword [ebp - 0x110c]
cmp al, byte [ecx]
jne 0x10058b3d
cmp dword [ebp - 0x1108], 0xfffffffd
je 0x10058b1a
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x10058b3d
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x10058b3d
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
jne 0x10058b3d
xor eax, eax
jmp 0x10058b42
mov ecx, dword [ebp - 0x110c]
cmp ecx, dword [ebp - 0x1108]
je 0x1005898c
inc ecx
inc edi
mov dword [ebp - 0x110c], ecx
jmp 0x10058960
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x10058bd5
cmp dword [ebp - 0x30], 0xf
lea ecx, [ebp - 0x44]
movd eax, xmm1
cmova ecx, eax
cmp dword [ebp - 0x34], 7
jne 0x10059324
mov eax, dword [ecx]
mov edx, str.chunked
mov dword [ebp - 0x1108], 3
cmp eax, dword [edx]
jne 0x10058b8c
add ecx, 4
mov dword [ebp - 0x1108], 0xffffffff
add edx, 4
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10058bb7
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10058bb7
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10058bb7
cmp dword [ebp - 0x1108], 0xffffffff
je 0x10058bb3
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x10058bb7
xor eax, eax
jmp 0x10058bbc
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x10059324
mov byte [ebp - 0x111d], 1
jmp 0x10058d04
mov eax, dword [ebp - 0x64]
cmp eax, 0xf
lea ecx, [ebp - 0x78]
cmova ecx, dword [ebp - 0x113c]
cmp dword [ebp - 0x68], 0xe
jne 0x10058d04
mov edx, str.content_length
mov esi, 0xa
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10058c11
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10058c00
mov al, byte [ecx]
mov dword [ebp - 0x1108], esi
mov esi, dword [ebp - 0x110c]
cmp al, byte [edx]
jne 0x10058c48
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10058c48
cmp dword [ebp - 0x1108], 0xfffffffe
je 0x10058c44
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10058c48
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x10058c48
xor eax, eax
jmp 0x10058c4d
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x10058d04
cmp dword [ebp - 0x30], 0xf
lea ecx, [ebp - 0x44]
movd edx, xmm1
lea eax, [ebp - 0x44]
cmova ecx, edx
add ecx, dword [ebp - 0x34]
cmp dword [ebp - 0x30], 0xf
cmova eax, edx
xor edx, edx
mov dword [ebp - 0x1130], edx
cmp eax, ecx
je 0x10058cc4
mov dl, byte [eax]
mov byte [ebp - 0x110d], dl
sub dl, 0x30
cmp dl, 9
ja 0x10059358
mov edx, dword [ebp - 0x1130]
inc eax
lea edx, [edx + edx*4]
mov dword [ebp - 0x113c], edx
mov esi, edx
movsx edx, byte [ebp - 0x110d]
lea edx, [edx + esi*2]
mov esi, dword [ebp - 0x110c]
add edx, 0xffffffd0
mov dword [ebp - 0x1130], edx
cmp eax, ecx
jne 0x10058c81
mov ecx, dword [ebp - 0x112c]
add ecx, 0x2c
mov byte [ebp - 0x110d], 1
mov dword [ebp - 0x113c], edx
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
cmp edx, eax
jbe 0x10058d04
cmp edx, 0x7fffffff
ja 0x100595db
lea eax, [ebp - 0x113c]
push eax
call fcn.1005d290
movq xmm2, qword [ebp - 0x34]
movups xmm1, xmmword [ebp - 0x44]
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0
movups xmmword [ebp - 0xcc], xmm0
mov dword [ebp - 0x64], 0xf
movups xmm0, xmmword [ebp - 0x58]
mov byte [ebp - 0x78], 0
movq qword [ebp - 0xa4], xmm2
movups xmmword [ebp - 0xcc], xmm0
mov dword [ebp - 0x34], 0
movq xmm0, qword [ebp - 0x1170]
movq qword [ebp - 0xbc], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0xb4], xmm0
mov dword [ebp - 0x30], 0xf
movups xmmword [ebp - 0xb4], xmm1
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0xcc]
mov edx, dword [ebp - 0x112c]
push eax
mov ecx, dword [edx + 0x24]
cmp ecx, dword [edx + 0x28]
je 0x10058d8a
call fcn.1005dd70
add dword [edx + 0x24], 0x30
jmp 0x10058d93
push ecx
lea ecx, [edx + 0x20]
call fcn.1005dfe0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0xa0]
cmp ecx, 0xf
jbe 0x10058dd1
mov edx, dword [ebp - 0xb4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10058dc7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100595e0
push ecx
push edx
call fcn.100eb0f7
add esp, 8
mov ecx, dword [ebp - 0xb8]
cmp ecx, 0xf
jbe 0x10058e0b
mov edx, dword [ebp - 0xcc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10058e01
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100595e0
push ecx
push edx
call fcn.100eb0f7
add esp, 8
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x30]
cmp edi, esi
je 0x10058e50
cmp ecx, 0xf
jbe 0x10058e47
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10058e3d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100595e0
push ecx
push edx
call fcn.100eb0f7
add esp, 8
mov byte [ebp - 4], 0xa
jmp 0x10058a20
cmp ecx, 0xf
jbe 0x10058e81
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10058e77
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100595e0
push ecx
push edx
call fcn.100eb0f7
add esp, 8
mov edx, dword [ebp - 0x1114]
add esi, 2
cmp edx, esi
je 0x10058eb2
mov edi, dword [ebp - 0x1104]
sub edi, esi
push edi
push esi
push edx
call fcn.100eca50
mov edx, dword [ebp - 0x1114]
add esp, 0xc
add edi, edx
mov dword [ebp - 0x1104], edi
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x7c]
mov byte [ebp - 0x1125], 1
cmp ecx, 0xf
jbe 0x10058efa
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10058eea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100595e0
push ecx
push edx
call fcn.100eb0f7
mov edx, dword [ebp - 0x1114]
add esp, 8
mov ecx, dword [ebp - 0x1104]
mov esi, dword [ebp - 0x1134]
cmp byte [ebp - 0x111d], 0
je 0x1005921c
mov edi, dword [ebp - 0x1118]
mov eax, dword [ebp - 0x111c]
nop
test edi, edi
je 0x10058fc2
mov eax, ecx
mov ecx, dword [ebp - 0x112c]
sub eax, edx
cmp eax, dword [ebp - 0x1118]
cmovb edi, eax
lea ecx, [ecx + 0x2c]
push edi
push edx
push dword [ecx + 4]
call fcn.1005d3e0
mov edx, dword [ebp - 0x1114]
mov ecx, dword [ebp - 0x1104]
lea eax, [edx + edi]
cmp edx, eax
je 0x10058f85
sub ecx, eax
push ecx
push eax
push edx
mov dword [ebp - 0x1104], ecx
call fcn.100eca50
mov ecx, dword [ebp - 0x1104]
add esp, 0xc
mov edx, dword [ebp - 0x1114]
add ecx, edx
mov dword [ebp - 0x1104], ecx
mov dword [ebp - 0x1c], ecx
sub dword [ebp - 0x1118], edi
mov eax, dword [ebp - 0x111c]
mov edi, dword [ebp - 0x1118]
movzx eax, al
cmove eax, dword [ebp - 0x1174]
mov dword [ebp - 0x111c], eax
cmp edx, ecx
jne 0x10058f20
jmp 0x10058830
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x1104], ecx
jmp 0x10058f06
test al, al
je 0x10059023
mov eax, ecx
sub eax, edx
cmp eax, 2
jb 0x10058830
lea eax, [ebp - 0x1124]
mov ax, word [eax]
cmp ax, word [edx]
sete al
test al, al
je 0x10059428
xor al, al
mov dword [ebp - 0x111c], eax
lea eax, [edx + 2]
cmp edx, eax
je 0x10059023
sub ecx, eax
push ecx
push eax
push edx
mov dword [ebp - 0x1104], ecx
call fcn.100eca50
mov ecx, dword [ebp - 0x1104]
add esp, 0xc
mov edx, dword [ebp - 0x1114]
add ecx, edx
mov dword [ebp - 0x1104], ecx
mov dword [ebp - 0x1c], ecx
mov eax, ecx
sub eax, edx
cmp eax, 2
jl 0x10059074
lea eax, [ecx - 2]
mov dword [ebp - 0x113c], eax
mov eax, edx
mov edi, eax
mov dword [ebp - 0x110c], eax
lea eax, [ebp - 0x1124]
sub edi, eax
nop word [eax + eax]
lea eax, [ebp - 0x1124]
mov dl, byte [edi + eax]
cmp dl, byte [eax]
jne 0x100590a4
inc eax
lea edx, [ebp - 0x1122]
cmp eax, edx
jne 0x10059056
mov ecx, dword [ebp - 0x110c]
mov edx, dword [ebp - 0x1114]
mov eax, dword [ebp - 0x1104]
cmp ecx, eax
je 0x10058830
xor edi, edi
mov dword [ebp - 0x1118], edi
cmp edx, ecx
je 0x100590fe
mov eax, edx
mov dh, byte [eax]
mov dl, dh
sub dl, 0x30
cmp dl, 9
ja 0x100590bc
movzx edx, dh
sub edx, 0x30
jmp 0x100590e2
mov edx, dword [ebp - 0x110c]
cmp edx, dword [ebp - 0x113c]
je 0x1005906e
inc edx
inc edi
mov dword [ebp - 0x110c], edx
jmp 0x10059050
mov dl, dh
sub dl, 0x41
cmp dl, 5
ja 0x100590ce
movzx edx, dh
sub edx, 0x37
jmp 0x100590e2
mov dl, dh
sub dl, 0x61
cmp dl, 5
ja 0x10059448
movzx edx, dh
sub edx, 0x57
shl edi, 4
inc eax
add edi, edx
mov dword [ebp - 0x1118], edi
cmp eax, ecx
jne 0x10059090
mov edx, dword [ebp - 0x1114]
mov eax, dword [ebp - 0x1104]
add ecx, 2
cmp edx, ecx
je 0x10059131
sub eax, ecx
push eax
push ecx
push edx
mov dword [ebp - 0x1104], eax
call fcn.100eca50
mov ecx, dword [ebp - 0x1104]
add esp, 0xc
mov edx, dword [ebp - 0x1114]
add ecx, edx
mov dword [ebp - 0x1104], ecx
mov dword [ebp - 0x1c], ecx
jmp 0x10059137
mov ecx, dword [ebp - 0x1104]
test edi, edi
jne 0x10058f19
mov byte [ebp - 4], 7
test edx, edx
je 0x10059174
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x1005916a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100595e0
push ecx
push edx
call fcn.100eb0f7
add esp, 8
mov dword [ebp - 4], 6
cmp esi, 0xffffffff
je 0x10059187
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x114c]
test ecx, ecx
je 0x100591e3
mov edx, dword [ebp - 0x1144]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x100591bb
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100595e0
push edx
push ecx
call fcn.100eb0f7
add esp, 8
mov dword [ebp - 0x114c], 0
mov dword [ebp - 0x1148], 0
mov dword [ebp - 0x1144], 0
mov dword [ebp - 4], 0x10
push dword [ebp - 0x1154]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 0x112c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100eaab6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18
mov edi, dword [ebp - 0x112c]
sub ecx, edx
push ecx
push edx
push dword [edi + 0x30]
lea ecx, [edi + 0x2c]
call fcn.1005d3e0
mov eax, dword [ebp - 0x1104]
mov edx, dword [ebp - 0x1114]
cmp edx, eax
cmovne eax, edx
cmp byte [ebp - 0x110d], 0
mov dword [ebp - 0x1104], eax
mov dword [ebp - 0x1c], eax
je 0x10058830
mov eax, dword [edi + 0x30]
sub eax, dword [edi + 0x2c]
cmp eax, dword [ebp - 0x1130]
jb 0x10058830
mov byte [ebp - 4], 7
test edx, edx
je 0x1005929f
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x10059295
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100595e0
push ecx
push edx
call fcn.100eb0f7
add esp, 8
mov dword [ebp - 4], 6
cmp esi, 0xffffffff
je 0x100592b2
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x114c]
test ecx, ecx
je 0x1005930e
mov edx, dword [ebp - 0x1144]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x100592e6
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100595e0
push edx
push ecx
call fcn.100eb0f7
add esp, 8
mov dword [ebp - 0x114c], 0
mov dword [ebp - 0x1148], 0
mov dword [ebp - 0x1144], 0
mov dword [ebp - 4], 0x11
jmp 0x100591ea
push str.Failed_to_read_data
jmp 0x10059587
lea eax, [ebp - 0x44]
mov edx, str.Unsupported_transfer_encoding:
push eax
lea ecx, [ebp - 0x60]
call fcn.10048cc0
add esp, 4
push eax
lea ecx, [ebp - 0x1170]
mov byte [ebp - 4], 0xe
call fcn.100599a0
push 0x101c517c
lea eax, [ebp - 0x1170]
jmp 0x100595a3
push str.Invalid_digit
lea ecx, [ebp - 0x1170]
call fcn.10057410
push 0x101c517c
lea eax, [ebp - 0x1170]
jmp 0x100595a3
mov byte [ebp - 4], 7
test edx, edx
je 0x100593ad
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x100593a3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100595e0
push ecx
push edx
call fcn.100eb0f7
add esp, 8
mov dword [ebp - 4], 6
cmp esi, 0xffffffff
je 0x100593c0
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x114c]
test ecx, ecx
je 0x1005941c
mov edx, dword [ebp - 0x1144]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x100593f4
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100595e0
push edx
push ecx
call fcn.100eb0f7
add esp, 8
mov dword [ebp - 0x114c], 0
mov dword [ebp - 0x1148], 0
mov dword [ebp - 0x1144], 0
mov dword [ebp - 4], 0x12
jmp 0x100591ea
push str.Invalid_chunk
lea ecx, [ebp - 0x1170]
call fcn.10057410
push 0x101c517c
lea eax, [ebp - 0x1170]
jmp 0x100595a3
push str.Invalid_hex_digit
lea ecx, [ebp - 0x1170]
call fcn.10057410
push 0x101c517c
lea eax, [ebp - 0x1170]
jmp 0x100595a3
mov edx, dword [ebp - 0x1114]
mov byte [ebp - 4], 7
test edx, edx
je 0x100594a3
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x10059499
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100595e0
push ecx
push edx
call fcn.100eb0f7
add esp, 8
mov dword [ebp - 4], 6
cmp esi, 0xffffffff
je 0x100594b6
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x114c]
test ecx, ecx
je 0x10059512
mov edx, dword [ebp - 0x1144]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x100594ea
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100595e0
push edx
push ecx
call fcn.100eb0f7
add esp, 8
mov dword [ebp - 0x114c], 0
mov dword [ebp - 0x1148], 0
mov dword [ebp - 0x1144], 0
mov dword [ebp - 4], 9
jmp 0x100591ea
push str.Unsupported_protocol
jmp 0x1005952a
push str.Only_HTTP_scheme_is_supported
lea ecx, [ebp - 0x20]
call fcn.10057210
push 0x101c516c
lea eax, [ebp - 0x20]
push eax
call fcn.100ec9c7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x1082a604
mov edx, str.Failed_to_get_address_info_of
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.10048cc0
add esp, 4
push eax
push ecx
push esi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0
call fcn.10055b80
push 0x101c4fd0
lea eax, [ebp - 0x5c]
push eax
call fcn.100ec9c7
call fcn.10025ef0
push str.Failed_to_create_socket
push 0x101ce970
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x5c]
call fcn.10055bb0
push 0x101c4fd0
lea eax, [ebp - 0x5c]
push eax
call fcn.100ec9c7
lea ecx, [ebp - 0x1134]
call fcn.10057400
push str.Failed_to_get_socket_flags
push 0x101ce970
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x5c]
call fcn.10055bb0
push 0x101c4fd0
lea eax, [ebp - 0x5c]
push eax
call fcn.100ec9c7
call fcn.10025ef0
call fcn.100f1ae9
int3