Function at 0x4057f0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4238cc
mov eax, dword fs:[0]
push eax
mov eax, 0x117c
call fcn.00423580
mov eax, dword [0x42f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1114], esi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x112c]
mov dword [ebp - 0x1140], eax
mov dword [ebp - 0x1104], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1124], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10fc], eax
lea eax, [ebp + 0x18]
push eax
mov dword [ebp - 0x113c], 1
call fcn.004028c0
mov edx, eax
lea ecx, [ebp - 0x1138]
call fcn.00414cb0
lea eax, [esi + 4]
add esp, 4
cmp dword [eax + 0x14], 0x10
mov ecx, eax
mov dword [ebp - 0x1118], eax
jb 0x405886
mov ecx, dword [eax]
mov edx, dword [eax + 0x10]
push 4
push str.http
call fcn.0041e550
add esp, 8
test al, al
je 0x406669
mov al, byte [esi + 1]
xorps xmm0, xmm0
movups xmmword [ebp - 0xec], xmm0
movups xmmword [ebp - 0xdc], xmm0
test al, al
jne 0x4058bf
mov eax, 2
jmp 0x4058cc
cmp al, 1
jne 0x406662
mov eax, 0x17
cmp dword [esi + 0x74], 0
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], 1
jne 0x4058e9
mov eax, 0x428120
jmp 0x4058f4
cmp dword [esi + 0x78], 0x10
lea eax, [esi + 0x64]
jb 0x4058f4
mov eax, dword [eax]
cmp dword [esi + 0x60], 0x10
lea edi, [esi + 0x4c]
mov ecx, edi
jb 0x405901
mov ecx, dword [edi]
lea edx, [ebp - 0x10f0]
push edx
lea edx, [ebp - 0xec]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x406684
mov eax, dword [sym.imp.WS2_32.dll_freeaddrinfo]
xorps xmm0, xmm0
movlpd qword [ebp - 0x74], xmm0
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x10f0]
mov dword [ebp - 0x1120], eax
mov dword [ebp - 0x70], eax
mov edi, dword [ebp - 0x10fc]
sub esp, 0xc
mov dword [ebp - 4], 1
mov esi, esp
movq qword [ebp - 0x20], xmm0
mov eax, 0x2aaaaaab
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x111c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov ecx, dword [edi + 4]
sub ecx, dword [edi]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x405a20
cmp eax, 0x5555555
ja 0x4066c3
push eax
mov ecx, esi
call fcn.00418e20
mov dword [ebp - 0x1108], esi
mov esi, dword [esi]
xorps xmm0, xmm0
mov ecx, dword [edi + 4]
mov eax, dword [ebp - 0x111c]
mov edi, dword [edi]
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x10fc], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 3
cmp edi, ecx
je 0x405a19
nop
push edi
mov ecx, esi
mov dword [ebp - 0x113c], esi
call fcn.00411250
lea eax, [edi + 0x18]
mov byte [ebp - 4], 4
push eax
lea ecx, [esi + 0x18]
call fcn.00411250
add esi, 0x30
mov byte [ebp - 4], 3
add edi, 0x30
mov dword [ebp - 0x2c], esi
cmp edi, dword [ebp - 0x10fc]
jne 0x4059e0
mov eax, dword [ebp - 0x111c]
mov dword [eax + 4], esi
mov byte [ebp - 4], 1
push dword [ebp + 0x10]
mov edx, dword [ebp - 0x1118]
lea ecx, [ebp - 0x20]
push dword [ebp - 0x1124]
call fcn.00404e60
add esp, 0x14
mov eax, dword [ebp - 0x1114]
lea ecx, [ebp - 0x1110]
mov byte [ebp - 4], 5
movzx eax, byte [eax + 1]
push eax
call fcn.00404410
mov byte [ebp - 4], 6
cmp dword [ebp + 0x1c], 0
jl 0x405a79
jg 0x405a66
cmp dword [ebp + 0x18], 0
jb 0x405a79
push dword [ebp - 0x1134]
push dword [ebp - 0x1138]
call fcn.00406730
jmp 0x405a7e
or eax, 0xffffffff
or edx, eax
push edx
push eax
mov eax, dword [ebp - 0x1120]
lea ecx, [ebp - 0x1110]
push dword [eax + 0x10]
push dword [eax + 0x18]
call fcn.00404500
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
sub esi, edi
je 0x405adc
cmp dword [ebp + 0x1c], 0
jl 0x405ac2
jg 0x405aaf
cmp dword [ebp + 0x18], 0
jb 0x405ac2
push dword [ebp - 0x1134]
push dword [ebp - 0x1138]
call fcn.00406730
jmp 0x405ac7
or eax, 0xffffffff
or edx, eax
push edx
push eax
push esi
push edi
lea ecx, [ebp - 0x1110]
call fcn.00404610
add edi, eax
sub esi, eax
jne 0x405aa1
mov eax, dword [ebp - 0x1104]
xorps xmm0, xmm0
mov word [ebp - 0x14], 0xa0d
mov dword [ebp - 0x24], 0xa0d0a0d
movups xmmword [eax + 8], xmm0
mov dword [eax + 0x18], 0
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 [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
xor eax, eax
movq qword [ebp - 0x30], xmm0
xor esi, esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x113c], 1
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x10f4], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
xor al, al
mov dword [ebp - 4], 8
xor edi, edi
mov byte [ebp - 0x10f5], al
mov byte [ebp - 0x10fe], al
mov dword [ebp - 0x111c], esi
mov byte [ebp - 0x10fd], al
mov dword [ebp - 0x1114], edi
mov dword [ebp - 0x1118], eax
nop word [eax + eax]
cmp dword [ebp + 0x1c], 0
jl 0x405bb1
jg 0x405b9e
cmp dword [ebp + 0x18], 0
jb 0x405bb1
push dword [ebp - 0x1134]
push dword [ebp - 0x1138]
call fcn.00406730
jmp 0x405bb6
or eax, 0xffffffff
or edx, eax
push edx
push eax
push 0x1000
lea eax, [ebp - 0x10ec]
push eax
lea ecx, [ebp - 0x1110]
call fcn.00404690
test eax, eax
je 0x4065bd
push eax
lea eax, [ebp - 0x10ec]
push eax
push dword [ebp - 0x10f4]
lea ecx, [ebp - 0x30]
call fcn.0041b4c0
cmp byte [ebp - 0x10f5], 0
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x110c], esi
jne 0x4061d9
mov edi, dword [ebp - 0x2c]
mov eax, edi
sub eax, esi
mov dword [ebp - 0x10f4], edi
cmp eax, 4
jl 0x406502
mov edx, esi
lea ecx, [ebp - 0x24]
mov eax, dword [ecx]
cmp eax, dword [edx]
je 0x405c40
cmp al, byte [edx]
jne 0x405c44
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x405c44
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x405c44
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x405c44
xor eax, eax
jmp 0x405c49
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x405c6c
lea ecx, [edi - 4]
cmp esi, ecx
je 0x406500
inc esi
lea eax, [ebp - 0x24]
mov eax, dword [eax]
cmp eax, dword [esi]
sete al
test al, al
je 0x405c55
cmp esi, edi
je 0x406500
add esi, 2
lea ecx, [ebp - 0xcc]
mov eax, edx
mov dword [ebp - 0x1124], esi
push esi
push eax
call fcn.00414cf0
add esp, 8
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x1104]
mov eax, dword [ebp - 0xc8]
mov edi, dword [ebp - 0xcc]
mov dword [ecx], eax
lea ecx, [ecx + 8]
mov ax, word [ebp - 0xc4]
mov word [ecx - 4], ax
lea eax, [ebp - 0xc0]
push eax
call fcn.00411090
push esi
push edi
lea ecx, [ebp - 0xa8]
call fcn.00414ed0
add esp, 8
movups xmm0, xmmword [ebp - 0xa4]
mov edi, dword [ebp - 0xa8]
movq xmm1, qword [ebp - 0x94]
movups xmmword [ebp - 0x1150], xmm0
mov dword [ebp - 0x94], 0
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x90], 0xf
movq qword [ebp - 0x112c], xmm1
movq qword [ebp - 0x5c], xmm1
mov byte [ebp - 0xa4], 0
movups xmm1, xmmword [ebp - 0x8c]
mov byte [ebp - 0x8c], 0
movq xmm2, qword [ebp - 0x7c]
movups xmmword [ebp - 0x54], xmm1
mov dword [ebp - 0x7c], 0
movq qword [ebp - 0x44], xmm2
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x6c]
cmp dword [ebp - 0x58], 0x10
movd eax, xmm0
setae byte [ebp - 0x10f5]
cmovae edx, eax
mov dword [ebp - 0x1108], eax
cmp dword [ebp - 0x5c], 0x11
jne 0x405e52
mov ecx, str.transfer_encoding
mov esi, 0xd
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x405d87
add edx, 4
add ecx, 4
sub esi, 4
jae 0x405d76
mov al, byte [edx]
mov dword [ebp - 0x10fc], esi
mov esi, dword [ebp - 0x1124]
cmp al, byte [ecx]
jne 0x405dbe
cmp dword [ebp - 0x10fc], 0xfffffffd
je 0x405dba
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x405dbe
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x405dbe
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
jne 0x405dbe
xor eax, eax
jmp 0x405dc3
sbb eax, eax
or eax, 1
test eax, eax
jne 0x405e4c
cmp dword [ebp - 0x40], 0x10
lea ecx, [ebp - 0x54]
movd eax, xmm1
cmovae ecx, eax
cmp dword [ebp - 0x44], 7
jne 0x4066c8
mov eax, dword [ecx]
mov edx, str.chunked
mov dword [ebp - 0x10fc], 3
cmp eax, dword [edx]
jne 0x405e08
add ecx, 4
mov dword [ebp - 0x10fc], 0xffffffff
add edx, 4
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x405e33
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x405e33
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x405e33
cmp dword [ebp - 0x10fc], 0xffffffff
je 0x405e2f
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x405e33
xor eax, eax
jmp 0x405e38
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4066c8
mov byte [ebp - 0x10fd], 1
jmp 0x405f5f
mov eax, dword [ebp - 0x1108]
cmp byte [ebp - 0x10f5], 0
lea ecx, [ebp - 0x6c]
cmovne ecx, eax
cmp dword [ebp - 0x5c], 0xe
jne 0x405f5f
mov edx, str.content_length
mov esi, 0xa
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x405e84
add ecx, 4
add edx, 4
sub esi, 4
jae 0x405e73
mov al, byte [ecx]
mov dword [ebp - 0x10fc], esi
mov esi, dword [ebp - 0x1124]
cmp al, byte [edx]
jne 0x405ebb
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x405ebb
cmp dword [ebp - 0x10fc], 0xfffffffe
je 0x405eb7
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x405ebb
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x405ebb
xor eax, eax
jmp 0x405ec0
sbb eax, eax
or eax, 1
test eax, eax
jne 0x405f5f
cmp dword [ebp - 0x40], 0x10
lea eax, [ebp - 0x54]
movd ecx, xmm1
setae dl
cmovae eax, ecx
mov esi, eax
lea eax, [ebp - 0x54]
add esi, dword [ebp - 0x44]
test dl, dl
mov dword [ebp - 0x1108], esi
cmovne eax, ecx
xor edx, edx
cmp eax, esi
mov dword [ebp - 0x111c], edx
mov esi, dword [ebp - 0x1124]
je 0x405f2b
nop
mov ch, byte [eax]
mov cl, ch
sub cl, 0x30
cmp cl, 9
ja 0x406700
lea edx, [edx + edx*4]
movsx ecx, ch
lea edx, [edx - 0x18]
inc eax
lea edx, [ecx + edx*2]
mov dword [ebp - 0x111c], edx
cmp eax, dword [ebp - 0x1108]
jne 0x405f00
mov ecx, dword [ebp - 0x1104]
add ecx, 0x2c
mov byte [ebp - 0x10fe], 1
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
cmp edx, eax
jbe 0x405f5f
cmp edx, 0x7fffffff
ja 0x406721
push edx
call fcn.00412ae0
movq xmm2, qword [ebp - 0x44]
movups xmm1, xmmword [ebp - 0x54]
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0
movups xmmword [ebp - 0x1188], xmm0
mov dword [ebp - 0x58], 0xf
movups xmm0, xmmword [ebp - 0x1150]
mov byte [ebp - 0x6c], 0
movq qword [ebp - 0x1160], xmm2
movups xmmword [ebp - 0x1188], xmm0
mov dword [ebp - 0x44], 0
movq xmm0, qword [ebp - 0x112c]
movq qword [ebp - 0x1178], xmm0
xorps xmm0, xmm0
movups xmmword [ebp - 0x1170], xmm0
mov dword [ebp - 0x40], 0xf
movups xmmword [ebp - 0x1170], xmm1
mov byte [ebp - 0x54], 0
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x1188]
mov edx, dword [ebp - 0x1104]
push eax
mov ecx, dword [edx + 0x24]
cmp ecx, dword [edx + 0x28]
je 0x405fe8
call fcn.00406af0
add dword [edx + 0x24], 0x30
jmp 0x405ff1
push ecx
lea ecx, [edx + 0x20]
call fcn.0041bda0
lea ecx, [ebp - 0x1188]
call fcn.00405760
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x40]
cmp edi, esi
je 0x40605e
cmp ecx, 0x10
jb 0x406038
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40602e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406631
push ecx
push edx
call fcn.004228bd
add esp, 8
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
mov byte [ebp - 4], 0xa
call fcn.00405760
jmp 0x405cc1
cmp ecx, 0x10
jb 0x40608f
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406085
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406631
push ecx
push edx
call fcn.004228bd
add esp, 8
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
call fcn.00405760
lea eax, [esi + 2]
mov esi, dword [ebp - 0x110c]
cmp esi, eax
je 0x4060d7
mov edi, dword [ebp - 0x10f4]
sub edi, eax
push edi
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
add edi, esi
mov dword [ebp - 0x10f4], edi
mov dword [ebp - 0x2c], edi
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0xac]
mov byte [ebp - 0x10f5], 1
cmp ecx, 0x10
jb 0x40611c
mov edx, dword [ebp - 0xc0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406112
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406631
push ecx
push edx
call fcn.004228bd
add esp, 8
mov edx, dword [ebp - 0x10f4]
mov edi, dword [ebp - 0x1114]
cmp byte [ebp - 0x10fd], 0
je 0x40640b
mov eax, dword [ebp - 0x1118]
nop dword [eax + eax]
test edi, edi
je 0x4061e7
mov ecx, dword [ebp - 0x1104]
mov eax, edx
sub eax, esi
mov esi, edi
cmp eax, edi
cmovb esi, eax
lea ecx, [ecx + 0x2c]
mov eax, dword [ebp - 0x110c]
push esi
push eax
push dword [ecx + 4]
call fcn.0041b4c0
mov ecx, dword [ebp - 0x110c]
mov edx, dword [ebp - 0x10f4]
lea eax, [esi + ecx]
cmp ecx, eax
je 0x4061a7
sub edx, eax
push edx
push eax
push ecx
mov dword [ebp - 0x10f4], edx
call sub.VCRUNTIME140.dll_memmove
mov edx, dword [ebp - 0x10f4]
add esp, 0xc
add edx, dword [ebp - 0x110c]
mov dword [ebp - 0x10f4], edx
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x1118]
sub edi, esi
mov esi, dword [ebp - 0x110c]
mov ecx, 1
movzx eax, al
cmove eax, ecx
mov dword [ebp - 0x1114], edi
mov dword [ebp - 0x1118], eax
cmp esi, edx
jne 0x406140
jmp 0x405b90
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x10f4], edx
jmp 0x406128
test al, al
je 0x40623f
mov eax, edx
sub eax, esi
cmp eax, 2
jb 0x405b90
lea eax, [ebp - 0x14]
mov ax, word [eax]
cmp ax, word [esi]
sete al
test al, al
je 0x4065a9
xor al, al
mov dword [ebp - 0x1118], eax
lea eax, [esi + 2]
cmp esi, eax
je 0x40623f
sub edx, eax
push edx
push eax
push esi
mov dword [ebp - 0x10f4], edx
call sub.VCRUNTIME140.dll_memmove
mov edx, dword [ebp - 0x10f4]
add esp, 0xc
add edx, esi
mov dword [ebp - 0x10f4], edx
mov dword [ebp - 0x2c], edx
mov ecx, edx
mov eax, ecx
sub eax, esi
cmp eax, 2
jl 0x4062a1
lea eax, [ecx - 2]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x1108], eax
movzx eax, byte [edx]
cmp al, byte [esi]
jne 0x40626a
movzx eax, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x40626a
xor eax, eax
jmp 0x40626f
sbb eax, eax
or eax, 1
test eax, eax
mov edx, esi
sete al
test al, al
jne 0x406299
nop word [eax + eax]
cmp edx, dword [ebp - 0x1108]
je 0x40629b
inc edx
lea eax, [ebp - 0x14]
mov ax, word [eax]
cmp ax, word [edx]
sete al
test al, al
je 0x406280
mov ecx, edx
mov edx, dword [ebp - 0x10f4]
cmp ecx, edx
je 0x405b90
xor edi, edi
mov dword [ebp - 0x1114], edi
cmp esi, ecx
je 0x406307
mov eax, esi
mov dh, byte [eax]
mov dl, dh
sub dl, 0x30
cmp dl, 9
ja 0x4062cb
movzx edx, dh
sub edx, 0x30
jmp 0x4062f1
mov dl, dh
sub dl, 0x41
cmp dl, 5
ja 0x4062dd
movzx edx, dh
sub edx, 0x37
jmp 0x4062f1
mov dl, dh
sub dl, 0x61
cmp dl, 5
ja 0x4065b3
movzx edx, dh
sub edx, 0x57
shl edi, 4
inc eax
add edi, edx
mov dword [ebp - 0x1114], edi
cmp eax, ecx
jne 0x4062b7
mov edx, dword [ebp - 0x10f4]
add ecx, 2
cmp esi, ecx
je 0x406332
sub edx, ecx
push edx
push ecx
push esi
mov dword [ebp - 0x10f4], edx
call sub.VCRUNTIME140.dll_memmove
mov edx, dword [ebp - 0x10f4]
add esp, 0xc
add edx, esi
mov dword [ebp - 0x10f4], edx
mov dword [ebp - 0x2c], edx
test edi, edi
jne 0x406135
mov byte [ebp - 4], 7
test esi, esi
je 0x40636f
mov ecx, dword [ebp - 0x28]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x406365
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406631
push ecx
push esi
call fcn.004228bd
add esp, 8
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x1110]
cmp eax, 0xffffffff
je 0x406388
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4063d5
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4063b6
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406631
push edx
push ecx
call fcn.004228bd
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0x10
push dword [ebp - 0x1120]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 0x1104]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422454
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 0x1104]
sub edx, esi
push edx
push esi
push dword [ecx + 0x30]
lea ecx, [ecx + 0x2c]
call fcn.0041b4c0
mov eax, dword [ebp - 0x10f4]
cmp esi, eax
cmovne eax, esi
cmp byte [ebp - 0x10fe], 0
mov dword [ebp - 0x10f4], eax
mov dword [ebp - 0x2c], eax
je 0x405b90
mov ecx, dword [ebp - 0x1104]
mov eax, dword [ecx + 0x30]
sub eax, dword [ecx + 0x2c]
cmp eax, dword [ebp - 0x111c]
jb 0x405b90
mov byte [ebp - 4], 7
test esi, esi
je 0x40648e
mov ecx, dword [ebp - 0x28]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x406484
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406631
push ecx
push esi
call fcn.004228bd
add esp, 8
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x1110]
cmp eax, 0xffffffff
je 0x4064a7
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4064f4
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4064d5
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406631
push edx
push ecx
call fcn.004228bd
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0x11
jmp 0x4063dc
mov esi, edx
mov byte [ebp - 4], 7
test esi, esi
je 0x406537
mov ecx, dword [ebp - 0x28]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x40652d
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406631
push ecx
push esi
call fcn.004228bd
add esp, 8
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x1110]
cmp eax, 0xffffffff
je 0x406550
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x40659d
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x40657e
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406631
push edx
push ecx
call fcn.004228bd
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0x12
jmp 0x4063dc
push str.Invalid_chunk
jmp 0x406705
push str.Invalid_hex_digit
jmp 0x406705
mov byte [ebp - 4], 7
test esi, esi
je 0x4065ee
mov ecx, dword [ebp - 0x28]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x4065e4
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406631
push ecx
push esi
call fcn.004228bd
add esp, 8
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x1110]
cmp eax, 0xffffffff
je 0x406607
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x406656
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x406637
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406637
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004228bd
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 9
jmp 0x4063dc
push str.Unsupported_protocol
jmp 0x40666e
push str.Only_HTTP_scheme_is_supported
lea ecx, [ebp - 0x30]
call fcn.00404330
push 0x42d798
lea eax, [ebp - 0x30]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
mov edx, str.Failed_to_get_address_info_of
lea ecx, [ebp - 0x3c]
mov esi, eax
call fcn.004139c0
add esp, 4
push eax
push ecx
push esi
lea ecx, [ebp - 0x1154]
mov dword [ebp - 4], 0
call fcn.00402650
push 0x42d584
lea eax, [ebp - 0x1154]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.00412ad0
lea eax, [ebp - 0x54]
mov edx, str.Unsupported_transfer_encoding:
push eax
lea ecx, [ebp - 0x1158]
call fcn.004139c0
add esp, 4
push eax
lea ecx, [ebp - 0x1130]
mov byte [ebp - 4], 0xe
call fcn.00406b70
push 0x42d7c4
lea eax, [ebp - 0x1130]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.Invalid_digit
lea ecx, [ebp - 0x1130]
call fcn.00404870
push 0x42d7c4
lea eax, [ebp - 0x1130]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.00412ad0
int3