Function at 0x1001d060
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002def4
mov eax, dword fs:[0]
push eax
mov eax, 0x1190
call fcn.10026470
mov eax, dword [0x1004a008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1128], edi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x1108], eax
mov dword [ebp - 0x1148], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1120], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1134], eax
lea eax, [ebp + 0x18]
push eax
mov dword [ebp - 0x1168], 0
call fcn.1001c230
mov edx, eax
lea ecx, [ebp - 0x1140]
call fcn.100216c0
add esp, 4
lea ecx, [edi + 4]
cmp dword [edi + 0x18], 0x10
jb 0x1001d0ef
mov ecx, dword [edi + 4]
cmp dword [edi + 0x14], 4
jne 0x1001e5d5
mov eax, dword [ecx]
mov edx, str.http
cmp eax, dword [edx]
je 0x1001d120
cmp al, byte [edx]
jne 0x1001d124
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1001d124
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1001d124
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x1001d124
xor eax, eax
jmp 0x1001d129
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1001e5d5
mov al, byte [edi + 1]
xorps xmm0, xmm0
movups xmmword [ebp - 0x100], xmm0
movups xmmword [ebp - 0xf0], xmm0
test al, al
jne 0x1001d150
mov eax, 2
jmp 0x1001d15d
cmp al, 1
jne 0x1001e5bb
mov eax, 0x17
cmp dword [edi + 0x60], 0x10
mov dword [ebp - 0xfc], eax
lea eax, [edi + 0x4c]
mov dword [ebp - 0xf8], 1
jb 0x1001d178
mov eax, dword [eax]
cmp dword [edi + 0x48], 0x10
lea esi, [edi + 0x34]
mov ecx, esi
jb 0x1001d185
mov ecx, dword [esi]
lea edx, [ebp - 0x1110]
push edx
lea edx, [ebp - 0x100]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x1001e5ec
mov eax, dword [sym.imp.WS2_32.dll_freeaddrinfo]
xorps xmm0, xmm0
movlpd qword [ebp - 0xac], xmm0
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x1110]
mov dword [ebp - 0x114c], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x119c]
mov edx, dword [ebp - 0x1120]
push 0x100420b0
call fcn.10021800
mov edx, eax
lea eax, [edi + 0x64]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x1184]
call fcn.100218f0
add esp, 8
push str._HTTP_1.1_r_n
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.10020430
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xa4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x94], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x1170]
cmp edx, 0x10
jb 0x1001d28c
mov ecx, dword [ebp - 0x1184]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001d282
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001d282
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100252ab
add esp, 8
mov dword [ebp - 0x1174], 0
mov dword [ebp - 0x1170], 0xf
mov byte [ebp - 0x1184], 0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x1188]
cmp edx, 0x10
jb 0x1001d2e7
mov ecx, dword [ebp - 0x119c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001d2dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001d2dd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100252ab
add esp, 8
mov eax, dword [ebp - 0x1134]
mov dword [ebp - 0x118c], 0
mov dword [ebp - 0x1188], 0xf
mov byte [ebp - 0x119c], 0
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1118], esi
mov dword [ebp - 0x1134], eax
cmp esi, eax
je 0x1001d401
push 0x100420b4
mov edx, esi
lea ecx, [ebp - 0x1164]
call fcn.10021800
add esp, 4
mov byte [ebp - 4], 7
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x1001d344
mov ecx, dword [eax]
mov edi, dword [eax + 0x10]
mov eax, dword [ebp - 0x90]
mov edx, dword [ebp - 0x94]
sub eax, edx
push edi
push ecx
cmp edi, eax
ja 0x1001d38f
cmp dword [ebp - 0x90], 0x10
lea esi, [ebp - 0xa4]
lea eax, [edx + edi]
cmovae esi, dword [ebp - 0xa4]
add esi, edx
mov dword [ebp - 0x94], eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov byte [edi + esi], 0
add esp, 0xc
mov esi, dword [ebp - 0x1118]
jmp 0x1001d3a8
mov byte [ebp - 0x1120], 0
lea ecx, [ebp - 0xa4]
push dword [ebp - 0x1120]
push edi
call fcn.10022190
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x1150]
cmp edx, 0x10
jb 0x1001d3e6
mov ecx, dword [ebp - 0x1164]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001d3dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001d27c
push edx
push ecx
call fcn.100252ab
add esp, 8
add esi, 0x18
mov dword [ebp - 0x1118], esi
cmp esi, dword [ebp - 0x1134]
jne 0x1001d321
mov edi, dword [ebp - 0x1128]
mov eax, dword [ebp + 0x10]
lea esi, [ebp - 0x13]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov dword [ebp - 0x1118], ecx
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x1118]
add cl, cl
sub al, cl
mov ecx, edx
add al, 0x30
mov byte [esi], al
mov eax, edx
mov dword [ebp - 0x1118], eax
test eax, eax
jne 0x1001d412
lea eax, [ebp - 0x13]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
cmp esi, eax
je 0x1001d466
sub eax, esi
lea ecx, [ebp - 0x5c]
push eax
push esi
call fcn.10020c80
lea eax, [edi + 0x1c]
mov byte [ebp - 4], 8
push eax
mov edx, str.Host:
lea ecx, [ebp - 0x1164]
call fcn.10021700
add esp, 4
push str._r_nContent_Length:
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.10020430
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x8c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x7c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 0xa
mov edi, dword [ebp - 0x78]
mov eax, edi
mov esi, dword [ebp - 0x7c]
sub eax, esi
mov edx, dword [ebp - 0x4c]
cmp edx, eax
jbe 0x1001d5aa
mov eax, dword [ebp - 0x48]
sub eax, edx
cmp eax, esi
jb 0x1001d5aa
cmp edi, 0x10
lea ecx, [ebp - 0x8c]
cmovae ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x112c], ecx
cmp esi, eax
ja 0x1001d58f
cmp dword [ebp - 0x48], 0x10
lea eax, [esi + edx]
lea edi, [ebp - 0x5c]
mov dword [ebp - 0x4c], eax
cmovae edi, dword [ebp - 0x5c]
lea eax, [esi + ecx]
cmp eax, edi
jbe 0x1001d543
lea eax, [edi + edx]
cmp ecx, eax
ja 0x1001d543
cmp edi, ecx
ja 0x1001d537
mov dword [ebp - 0x1118], 0
jmp 0x1001d549
mov eax, edi
sub eax, ecx
mov dword [ebp - 0x1118], eax
jmp 0x1001d549
mov dword [ebp - 0x1118], esi
lea eax, [edx + 1]
push eax
lea eax, [esi + edi]
push edi
push eax
call sub.VCRUNTIME140.dll_memmove
push dword [ebp - 0x1118]
push dword [ebp - 0x112c]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x1118]
mov eax, esi
sub eax, ecx
push eax
lea eax, [ecx + esi]
add eax, dword [ebp - 0x112c]
push eax
lea eax, [edi + ecx]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x24
lea eax, [ebp - 0x5c]
jmp 0x1001d5b9
push esi
push ecx
push ecx
mov byte [ebp - 0x1120], 0
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x1120]
push esi
call fcn.10022a40
jmp 0x1001d5b9
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x8c]
call fcn.100204a0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push str._r_n_r_n
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xb
call fcn.10020430
mov dword [ebp - 0x1134], 0x7e
movups xmm1, xmmword [eax]
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
movups xmmword [ebp - 0x74], xmm1
mov byte [eax], 0
movq qword [ebp - 0x64], xmm0
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x74]
cmp dword [ebp - 0x60], 0x10
mov eax, dword [ebp - 0x90]
mov esi, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x64]
movd edi, xmm1
push ecx
cmovae edx, edi
sub eax, esi
push edx
cmp ecx, eax
ja 0x1001d680
cmp dword [ebp - 0x90], 0x10
lea eax, [esi + ecx]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0xa4]
cmovae eax, dword [ebp - 0xa4]
add esi, eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x64]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x1001d69c
mov byte [ebp - 0x1120], 0
push dword [ebp - 0x1120]
push ecx
lea ecx, [ebp - 0xa4]
call fcn.10022190
mov edi, dword [ebp - 0x74]
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x1001d6d5
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x1001d6cb
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001d6cb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.100252ab
add esp, 8
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x1001d70f
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001d705
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001d705
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100252ab
add esp, 8
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp edx, 0x10
jb 0x1001d75e
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001d754
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001d754
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100252ab
add esp, 8
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x1150]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
cmp edx, 0x10
jb 0x1001d7b3
mov ecx, dword [ebp - 0x1164]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001d7a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001d7a9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100252ab
add esp, 8
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x1154], 0
mov dword [ebp - 0x1150], 0xf
mov byte [ebp - 0x1164], 0
cmp edx, 0x10
jb 0x1001d808
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001d7fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001d7fe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100252ab
add esp, 8
cmp dword [ebp - 0x90], 0x10
lea edx, [ebp - 0xa4]
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x20]
cmovae edx, dword [ebp - 0xa4]
xorps xmm0, xmm0
push dword [ebp - 0x1108]
add eax, edx
movq qword [ebp - 0x20], xmm0
cmp dword [ebp - 0x90], 0x10
lea edx, [ebp - 0xa4]
push eax
cmovae edx, dword [ebp - 0xa4]
mov dword [ebp - 0x18], 0
push edx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.10022610
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xd
push dword [ebp - 0x1108]
push dword [eax + 4]
push dword [eax]
push dword [ebp - 0x1c]
call fcn.10022650
mov ecx, dword [ebp - 0x1128]
movzx eax, byte [ecx + 1]
lea ecx, [ebp - 0x1130]
push eax
call fcn.1001c520
mov byte [ebp - 4], 0xe
cmp dword [ebp + 0x1c], 0
jl 0x1001d8c7
jg 0x1001d8b1
cmp dword [ebp + 0x18], 0
jb 0x1001d8c7
push dword [ebp - 0x113c]
push dword [ebp - 0x1140]
call fcn.1001e670
add esp, 8
jmp 0x1001d8cc
or eax, 0xffffffff
or edx, eax
push edx
push eax
mov eax, dword [ebp - 0x114c]
lea ecx, [ebp - 0x1130]
push dword [eax + 0x10]
push dword [eax + 0x18]
call fcn.1001c620
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
sub esi, edi
je 0x1001d92e
nop
cmp dword [ebp + 0x1c], 0
jl 0x1001d914
jg 0x1001d8fe
cmp dword [ebp + 0x18], 0
jb 0x1001d914
push dword [ebp - 0x113c]
push dword [ebp - 0x1140]
call fcn.1001e670
add esp, 8
jmp 0x1001d919
or eax, 0xffffffff
or edx, eax
push edx
push eax
push esi
push edi
lea ecx, [ebp - 0x1130]
call fcn.1001c760
add edi, eax
sub esi, eax
jne 0x1001d8f0
mov word [ebp - 0x2c], 0xa0d
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0xf
mov byte [ebp - 0xdc], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
xorps xmm0, xmm0
mov dword [ebp - 0x78], 0
xor esi, esi
movq qword [ebp - 0x80], xmm0
xor edi, edi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], esi
xor eax, eax
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x1128], eax
mov byte [ebp - 0x1119], al
mov dword [ebp - 0x1120], eax
mov byte [ebp - 0x111a], al
mov dword [ebp - 0x112c], eax
xor al, al
mov dword [ebp - 0x1118], eax
jmp 0x1001d9e6
mov esi, dword [ebp - 0x1114]
cmp dword [ebp + 0x1c], 0
jl 0x1001da0a
jg 0x1001d9f4
cmp dword [ebp + 0x18], 0
jb 0x1001da0a
push dword [ebp - 0x113c]
push dword [ebp - 0x1140]
call fcn.1001e670
add esp, 8
jmp 0x1001da0f
or eax, 0xffffffff
or edx, eax
push edx
push eax
push 0x1000
lea eax, [ebp - 0x1100]
push eax
lea ecx, [ebp - 0x1130]
call fcn.1001c7f0
test eax, eax
je 0x1001e4a4
push dword [ebp - 0x1108]
lea ecx, [ebp - 0x1100]
add eax, ecx
push eax
mov eax, ecx
lea ecx, [ebp - 0x80]
push eax
push edi
call fcn.10022650
cmp dword [ebp - 0x1128], 2
mov esi, dword [ebp - 0x80]
mov edi, dword [ebp - 0x7c]
mov dword [ebp - 0x1114], esi
je 0x1001e104
lea eax, [ebp - 0x2a]
mov dword [ebp - 0x1104], 0
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
push esi
lea ecx, [ebp - 0x1104]
call fcn.10021990
mov esi, dword [ebp - 0x1104]
add esp, 0x10
cmp esi, edi
je 0x1001e0f1
nop dword [eax]
nop dword [eax + eax]
mov eax, esi
mov dword [ebp - 0x4c], 0
sub eax, dword [ebp - 0x1114]
lea ecx, [ebp - 0x5c]
push eax
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
call fcn.10022470
push dword [ebp - 0x1108]
lea ecx, [ebp - 0x5c]
push esi
push dword [ebp - 0x1114]
call fcn.10022c30
add esi, 2
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x1114], esi
je 0x1001db01
sub edi, esi
push edi
push esi
mov esi, dword [ebp - 0x1114]
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
add edi, esi
mov dword [ebp - 0x7c], edi
jmp 0x1001db07
mov esi, dword [ebp - 0x1114]
cmp dword [ebp - 0x4c], 0
je 0x1001e1ea
mov eax, dword [ebp - 0x1128]
test eax, eax
jne 0x1001dd0c
cmp dword [ebp - 0x48], 0x10
lea eax, [ebp - 0x5c]
mov esi, dword [ebp - 0x5c]
lea ecx, [ebp - 0x5c]
cmovae eax, esi
mov dword [ebp - 0x1128], 1
add eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x48], 0x10
mov dword [ebp - 0x1104], eax
cmovae ecx, esi
mov dword [ebp - 0x1124], esi
sub eax, ecx
push eax
push 0x20
push ecx
call sub.VCRUNTIME140.dll_memchr
mov ecx, dword [ebp - 0x1104]
add esp, 0xc
mov edx, dword [ebp - 0x4c]
test eax, eax
cmovne ecx, eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x1104], ecx
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x10
cmovae eax, esi
add eax, edx
cmp dword [ebp - 0x1104], eax
je 0x1001e085
mov esi, dword [ebp - 0x1104]
lea eax, [ebp - 0x5c]
inc esi
cmp ecx, 0x10
cmovae eax, dword [ebp - 0x1124]
lea ecx, [eax + edx]
mov dword [ebp - 0x1104], ecx
sub ecx, esi
push ecx
push 0x20
push esi
call sub.VCRUNTIME140.dll_memchr
mov ecx, dword [ebp - 0x1104]
add esp, 0xc
test eax, eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
cmovne ecx, eax
mov byte [ebp - 0x74], 0
mov dword [ebp - 0x1104], ecx
cmp esi, ecx
je 0x1001dbe9
sub ecx, esi
push ecx
push esi
lea ecx, [ebp - 0x74]
call fcn.10020c80
mov byte [ebp - 4], 0x13
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [ebp - 0x60], 0x10
lea esi, [ebp - 0x74]
mov dword [ebp - 0x1124], eax
cmovae esi, dword [ebp - 0x74]
mov dword [eax], 0
lea eax, [ebp - 0x110c]
push 0xa
push eax
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
mov ecx, eax
cmp esi, dword [ebp - 0x110c]
je 0x1001e3d8
mov eax, dword [ebp - 0x1124]
cmp dword [eax], 0x22
je 0x1001e3cd
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x5c]
mov esi, dword [ebp - 0x5c]
cmp edx, 0x10
mov dword [ebp - 0xe0], ecx
mov ecx, dword [ebp - 0x1104]
cmovae eax, esi
add eax, dword [ebp - 0x4c]
cmp ecx, eax
je 0x1001dcd3
lea eax, [ecx + 1]
mov dword [ebp - 0x34], 0
cmp edx, 0x10
mov dword [ebp - 0x30], 0xf
lea ecx, [ebp - 0x5c]
mov byte [ebp - 0x44], 0
cmovae ecx, esi
add ecx, dword [ebp - 0x4c]
cmp eax, ecx
je 0x1001dc8d
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.10020c80
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0xdc]
call fcn.10020510
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x1001dcd0
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001dcc6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001d27c
push edx
push ecx
call fcn.100252ab
add esp, 8
mov esi, dword [ebp - 0x5c]
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x60]
cmp edx, 0x10
jb 0x1001e085
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001dd05
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001d27c
push edx
push ecx
jmp 0x1001e07a
cmp eax, 1
jne 0x1001e082
mov eax, dword [ebp - 0xc0]
lea ecx, [ebp - 0x5c]
push ecx
cmp dword [ebp - 0xbc], eax
je 0x1001dd37
mov ecx, eax
call fcn.100205d0
add dword [ebp - 0xc0], 0x18
jmp 0x1001dd43
push eax
lea ecx, [ebp - 0xc4]
call fcn.10021c50
cmp dword [ebp - 0x48], 0x10
lea eax, [ebp - 0x5c]
mov ecx, dword [ebp - 0x4c]
cmovae eax, dword [ebp - 0x5c]
mov dword [ebp - 0x1124], eax
test ecx, ecx
je 0x1001dd75
push ecx
push 0x3a
push eax
call sub.VCRUNTIME140.dll_memchr
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1001dd75
sub esi, dword [ebp - 0x1124]
jmp 0x1001dd78
or esi, 0xffffffff
lea eax, [ebp - 0x5c]
cmp esi, 0xffffffff
je 0x1001e3f9
cmp dword [ebp - 0x4c], esi
mov ecx, esi
mov dword [ebp - 0x64], 0
cmovb ecx, dword [ebp - 0x4c]
cmp dword [ebp - 0x48], 0x10
push ecx
cmovae eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x74]
push eax
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
call fcn.10020c80
mov byte [ebp - 4], 0x15
inc esi
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp eax, esi
jb 0x1001e667
sub eax, esi
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x48], 0x10
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push ecx
add eax, esi
lea ecx, [ebp - 0x44]
push eax
call fcn.10020c80
or dword [ebp - 0x1134], 0x180
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x44]
mov esi, dword [ebp - 0x30]
cmp esi, 0x10
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x34]
cmovae eax, ecx
add eax, edx
mov dword [ebp - 0x1104], edx
cmp esi, 0x10
lea edx, [ebp - 0x44]
cmovae edx, ecx
cmp edx, eax
je 0x1001de41
nop word [eax + eax]
mov cl, byte [edx]
cmp cl, 0x20
je 0x1001de3c
cmp cl, 9
jne 0x1001de41
inc edx
cmp edx, eax
jne 0x1001de30
cmp esi, 0x10
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
mov esi, ecx
sub esi, eax
mov eax, dword [ebp - 0x1104]
cmp eax, esi
jb 0x1001e667
sub eax, esi
sub edx, ecx
cmp eax, edx
lea ecx, [ebp - 0x44]
cmovb edx, eax
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x1104]
cmovae ecx, dword [ebp - 0x44]
sub eax, edx
mov dword [ebp - 0x34], eax
add ecx, esi
sub eax, esi
inc eax
push eax
lea eax, [ecx + edx]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x44]
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x44]
add esp, 0xc
mov dword [ebp - 0x1138], esi
cmp edx, 0x10
cmovae eax, dword [ebp - 0x44]
add eax, esi
cmp edx, 0x10
mov dword [ebp - 0x1104], eax
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
cmovae ecx, dword [ebp - 0x44]
add eax, esi
cmp eax, ecx
je 0x1001deeb
mov esi, ecx
nop dword [eax]
mov cl, byte [eax - 1]
cmp cl, 0x20
je 0x1001dedd
cmp cl, 9
jne 0x1001dee2
dec eax
cmp eax, esi
jne 0x1001ded0
mov esi, dword [ebp - 0x1138]
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
lea ecx, [ebp - 0x44]
mov edx, eax
cmovae ecx, dword [ebp - 0x44]
sub edx, ecx
cmp esi, edx
jb 0x1001e667
mov ecx, dword [ebp - 0x1104]
sub ecx, eax
mov eax, esi
sub eax, edx
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x30], 0x10
mov dword [ebp - 0x1104], ecx
lea ecx, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x1104]
add ecx, edx
sub esi, eax
add eax, ecx
mov dword [ebp - 0x34], esi
sub esi, edx
inc esi
push esi
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x74]
mov esi, dword [ebp - 0x74]
add esp, 0xc
mov edx, dword [ebp - 0x64]
cmp eax, 0x10
mov dword [ebp - 0x1124], esi
cmovae ecx, esi
cmp edx, 0xe
jne 0x1001e188
push edx
mov edx, str.Content_Length
call fcn.1001b720
add esp, 4
test eax, eax
jne 0x1001e182
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [ebp - 0x30], 0x10
lea esi, [ebp - 0x44]
mov dword [ebp - 0x1138], eax
cmovae esi, dword [ebp - 0x44]
mov dword [eax], 0
lea eax, [ebp - 0x1108]
push 0xa
push eax
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
add esp, 0xc
mov edx, eax
mov dword [ebp - 0x1120], edx
cmp esi, dword [ebp - 0x1108]
je 0x1001e3ee
mov eax, dword [ebp - 0x1138]
cmp dword [eax], 0x22
je 0x1001e3e3
mov ecx, dword [ebp - 0xb0]
sub ecx, dword [ebp - 0xb8]
mov byte [ebp - 0x1119], 1
cmp edx, ecx
jbe 0x1001dff9
cmp edx, 0x7fffffff
ja 0x1001e62a
push edx
lea ecx, [ebp - 0xb8]
call fcn.10020a10
mov esi, dword [ebp - 0x44]
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x1001e033
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x1001e029
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001d27c
push ecx
push esi
call fcn.100252ab
add esp, 8
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp eax, 0x10
jb 0x1001e082
mov edx, dword [ebp - 0x1124]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001e078
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001d27c
push ecx
push edx
call fcn.100252ab
add esp, 8
mov esi, dword [ebp - 0x5c]
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x1001e0bc
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x1001e0b2
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001d27c
push ecx
push esi
call fcn.100252ab
add esp, 8
lea eax, [ebp - 0x2a]
mov dword [ebp - 0x1104], 0
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
push dword [ebp - 0x1114]
lea ecx, [ebp - 0x1104]
call fcn.10021990
mov esi, dword [ebp - 0x1104]
add esp, 0x10
cmp esi, edi
jne 0x1001daa0
cmp dword [ebp - 0x1128], 2
mov esi, dword [ebp - 0x1114]
jne 0x1001d9e6
cmp byte [ebp - 0x111a], 0
je 0x1001e375
mov eax, dword [ebp - 0x1118]
mov edx, dword [ebp - 0x112c]
nop dword [eax]
test edx, edx
je 0x1001e271
push dword [ebp - 0x1108]
mov eax, edi
mov ecx, edx
sub eax, esi
cmp eax, edx
cmovb ecx, eax
add esi, ecx
mov dword [ebp - 0x1138], ecx
push esi
push dword [ebp - 0x1114]
lea ecx, [ebp - 0xb8]
push dword [ebp - 0xb4]
call fcn.10022650
cmp dword [ebp - 0x1114], esi
je 0x1001e235
sub edi, esi
push edi
push esi
mov esi, dword [ebp - 0x1114]
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
add edi, esi
mov dword [ebp - 0x7c], edi
jmp 0x1001e23b
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x64]
cmp eax, 0x10
lea ecx, [ebp - 0x74]
cmovae ecx, esi
cmp edx, 0x11
jne 0x1001dff9
push edx
mov edx, str.Transfer_Encoding
call fcn.1001b720
add esp, 4
test eax, eax
jne 0x1001dff9
cmp dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x44]
mov esi, dword [ebp - 0x44]
cmovae ecx, esi
cmp dword [ebp - 0x34], 7
jne 0x1001e62f
push 7
mov edx, str.chunked
call fcn.1001b720
add esp, 4
test eax, eax
jne 0x1001e62f
mov byte [ebp - 0x111a], 1
jmp 0x1001dffc
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x1128], 2
cmp edx, 0x10
jb 0x1001e104
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001e226
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001d27c
push edx
push ecx
call fcn.100252ab
add esp, 8
jmp 0x1001e104
mov esi, dword [ebp - 0x1114]
mov edx, dword [ebp - 0x112c]
mov ecx, 1
sub edx, dword [ebp - 0x1138]
mov eax, dword [ebp - 0x1118]
movzx eax, al
cmove eax, ecx
mov dword [ebp - 0x112c], edx
mov dword [ebp - 0x1118], eax
cmp esi, edi
jne 0x1001e120
jmp 0x1001d9e6
test al, al
je 0x1001e2b2
mov eax, edi
sub eax, esi
cmp eax, 2
jb 0x1001d9e6
lea eax, [ebp - 0x2c]
mov ax, word [eax]
cmp ax, word [esi]
jne 0x1001e416
xor al, al
mov dword [ebp - 0x1118], eax
lea eax, [esi + 2]
cmp esi, eax
je 0x1001e2b2
sub edi, eax
push edi
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
add edi, esi
mov dword [ebp - 0x7c], edi
lea eax, [ebp - 0x2a]
mov dword [ebp - 0x1104], 0
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
push esi
lea ecx, [ebp - 0x1104]
call fcn.10021990
mov esi, dword [ebp - 0x1104]
add esp, 0x10
cmp esi, edi
je 0x1001d9e0
mov eax, esi
mov dword [ebp - 0x64], 0
sub eax, dword [ebp - 0x1114]
lea ecx, [ebp - 0x74]
push eax
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
call fcn.10022470
push dword [ebp - 0x1108]
lea ecx, [ebp - 0x74]
push esi
push dword [ebp - 0x1114]
call fcn.10022c30
add esi, 2
mov byte [ebp - 4], 0x18
cmp dword [ebp - 0x1114], esi
je 0x1001e343
sub edi, esi
push edi
push esi
mov esi, dword [ebp - 0x1114]
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
add edi, esi
mov dword [ebp - 0x7c], edi
jmp 0x1001e349
mov esi, dword [ebp - 0x1114]
push 0x10
lea ecx, [ebp - 0x74]
call fcn.1001c170
add esp, 4
mov dword [ebp - 0x112c], eax
test eax, eax
je 0x1001e42b
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x10
call fcn.1001c1e0
jmp 0x1001e111
push edi
push esi
push dword [ebp - 0xb4]
lea eax, [ebp - 0x116c]
push eax
lea ecx, [ebp - 0xb8]
call fcn.10021aa0
cmp byte [ebp - 0x1119], 0
mov edi, esi
mov dword [ebp - 0x7c], edi
je 0x1001d9e6
mov eax, dword [ebp - 0xb4]
sub eax, dword [ebp - 0xb8]
cmp eax, dword [ebp - 0x1120]
jb 0x1001d9e6
mov ecx, dword [ebp - 0x1148]
lea eax, [ebp - 0xe0]
push eax
call fcn.1001e7d0
jmp 0x1001e445
push str.stoi_argument_out_of_range
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__]
push str.invalid_stoi_argument
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const__]
push str.stoul_argument_out_of_range
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__]
push str.invalid_stoul_argument
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const__]
push eax
mov edx, str.Invalid_header:
lea ecx, [ebp - 0x1164]
call fcn.10021700
add esp, 4
mov byte [ebp - 4], 0x14
jmp 0x1001e64a
push str.Invalid_chunk
lea ecx, [ebp - 0x1144]
call fcn.1001c310
jmp 0x1001e656
mov ecx, dword [ebp - 0x1148]
lea eax, [ebp - 0xe0]
push eax
call fcn.1001e7d0
lea ecx, [ebp - 0x74]
call fcn.1001c1e0
lea ecx, [ebp - 0x80]
call fcn.100201a0
lea ecx, [ebp - 0xe0]
call fcn.1001e6c0
lea ecx, [ebp - 0x1130]
call fcn.1001c610
lea ecx, [ebp - 0x20]
call fcn.100201a0
lea ecx, [ebp - 0xa4]
call fcn.1001c1e0
lea ecx, [ebp - 0xac]
call fcn.10020160
mov eax, dword [ebp - 0x1148]
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.1002529a
mov esp, ebp
pop ebp
ret 0x18
mov edi, dword [ebp - 0x1148]
lea eax, [ebp - 0xe0]
push eax
mov ecx, edi
call fcn.1001e7d0
mov byte [ebp - 4], 0xf
test esi, esi
je 0x1001e4ef
mov ecx, dword [ebp - 0x78]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x1001e4e5
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001e4e5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.100252ab
add esp, 8
lea ecx, [ebp - 0xe0]
call fcn.1001e6c0
mov eax, dword [ebp - 0x1130]
cmp eax, 0xffffffff
je 0x1001e50c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x1001e546
mov ecx, dword [ebp - 0x18]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x1001e53c
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001e53c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100252ab
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x90]
cmp edx, 0x10
jb 0x1001e586
mov ecx, dword [ebp - 0xa4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001e57c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001e57c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100252ab
add esp, 8
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 0xa4], 0
mov dword [ebp - 4], 0x11
push dword [ebp - 0x114c]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
jmp 0x1001e487
push str.Unsupported_protocol
lea ecx, [ebp - 0x20]
call fcn.1001c2b0
push 0x10049040
lea eax, [ebp - 0x20]
jmp 0x1001e661
push str.Only_HTTP_scheme_is_supported
lea ecx, [ebp - 0x20]
call fcn.1001c2b0
push 0x10049040
lea eax, [ebp - 0x20]
jmp 0x1001e661
push esi
mov edx, str.Failed_to_get_address_info_of
lea ecx, [ebp - 0x1164]
call fcn.10021700
add esp, 4
push eax
mov dword [ebp - 4], 0
call fcn.1001c0a0
push eax
call sub.WS2_32.dll_WSAGetLastError
push eax
lea ecx, [ebp - 0x28]
call fcn.1001bbe0
push 0x10049064
lea eax, [ebp - 0x28]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.10020a00
lea eax, [ebp - 0x44]
mov edx, str.Unsupported_transfer_encoding:
push eax
lea ecx, [ebp - 0x1164]
call fcn.10021700
add esp, 4
mov byte [ebp - 4], 0x17
push eax
lea ecx, [ebp - 0x1144]
call fcn.1001c370
push 0x10048fe8
lea eax, [ebp - 0x1144]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.100210b0
int3