Function at 0x1000a463
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x10050d55
call fcn.1004f2f8
mov eax, 0x1158
call fcn.1001fc90
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x94], 1
push edi
lea ecx, [ebp - 0xa4]
call fcn.1000964b
mov esi, eax
mov edi, 0xf4240
mov eax, dword [ebp + 0x1c]
mul edi
push str.http
mov ecx, eax
mov eax, dword [ebp + 0x18]
mul edi
add ecx, edx
add eax, dword [esi]
mov dword [ebp - 0x48], eax
adc ecx, dword [esi + 4]
mov dword [ebp - 0x44], ecx
lea ecx, [ebx + 4]
call fcn.10013cb8
test al, al
je 0x1000ac2f
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x160]
rep stosd dword es:[edi], eax
mov cl, byte [ebx + 1]
call fcn.100098c2
mov dword [ebp - 0x15c], eax
xor eax, eax
inc eax
cmp dword [ebx + 0x74], 0
mov dword [ebp - 0x158], eax
jne 0x1000a4f7
mov eax, 0x10060454
jmp 0x1000a502
lea eax, [ebx + 0x64]
cmp dword [eax + 0x14], 0x10
jb 0x1000a502
mov eax, dword [eax]
lea ecx, [ebx + 0x4c]
cmp dword [ecx + 0x14], 0x10
mov edx, ecx
mov dword [ebp - 0x40], ecx
jb 0x1000a512
mov edx, dword [ecx]
lea ecx, [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x160]
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1000a570
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
call fcn.1000980f
push dword [ebp - 0x40]
mov edx, str.Failed_to_get_address_info_of
lea ecx, [ebp - 0x8c]
mov esi, eax
call fcn.100120c4
pop ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0xb8]
push eax
push esi
push edi
call fcn.10009704
push 0x1006a34c
lea eax, [ebp - 0xb8]
jmp 0x1000ac44
mov edi, dword [ebp - 0x90]
mov eax, dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0xa0], edi
sub esp, 0xc
xor eax, eax
inc eax
mov ecx, esp
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
call fcn.100111ea
push dword [ebp + 0x10]
lea edx, [ebx + 4]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x5c]
call fcn.10009f0f
add esp, 0x14
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
movzx eax, byte [ebx + 1]
push eax
call fcn.1000993e
mov byte [ebp - 4], 3
cmp dword [ebp + 0x1c], 0
jl 0x1000a5e2
jg 0x1000a5d4
cmp dword [ebp + 0x18], 0
jb 0x1000a5e2
mov ebx, dword [ebp - 0x44]
push ebx
push dword [ebp - 0x48]
call fcn.1000ac50
jmp 0x1000a5ea
mov ebx, dword [ebp - 0x44]
or eax, 0xffffffff
or edx, eax
push edx
push eax
push dword [edi + 0x10]
lea ecx, [ebp - 0x14]
push dword [edi + 0x18]
call fcn.100099f3
mov esi, dword [ebp - 0x58]
mov edi, dword [ebp - 0x5c]
sub esi, edi
je 0x1000a634
cmp dword [ebp + 0x1c], 0
jl 0x1000a61d
jg 0x1000a612
cmp dword [ebp + 0x18], 0
jb 0x1000a61d
push ebx
push dword [ebp - 0x48]
call fcn.1000ac50
jmp 0x1000a622
or eax, 0xffffffff
or edx, eax
push edx
push eax
push esi
push edi
lea ecx, [ebp - 0x14]
call fcn.10009af5
add edi, eax
sub esi, eax
jne 0x1000a604
mov ebx, dword [ebp + 8]
xor eax, eax
xor edx, edx
mov word [ebp - 0x24], 0xa0d
mov dword [ebp - 0x2c], 0xa0d0a0d
lea edi, [ebx + 8]
stosd dword es:[edi], eax
lea ecx, [ebx + 0x2c]
mov dword [ebp - 0x38], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebx + 0x20]
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], 0xf
mov byte [ebx + 8], dl
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [ebp - 0x50], eax
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], edx
xor eax, eax
mov dword [ebp - 0x20], edx
inc eax
mov dword [ebp - 0x18], edx
mov edi, edx
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x1c], edi
mov eax, edx
mov dword [ebp - 4], 5
mov dword [ebp - 0x30], eax
mov bl, dl
mov al, dl
mov byte [ebp + 0x17], bl
mov byte [ebp + 0xf], dl
mov dword [ebp - 0x40], edx
mov byte [ebp + 0x13], dl
mov dword [ebp - 0x34], eax
jmp 0x1000a6b2
mov bl, byte [ebp + 0x17]
xor edx, edx
cmp dword [ebp + 0x1c], edx
jl 0x1000a6cb
jg 0x1000a6be
cmp dword [ebp + 0x18], edx
jb 0x1000a6cb
push dword [ebp - 0x44]
push dword [ebp - 0x48]
call fcn.1000ac50
jmp 0x1000a6d0
or eax, 0xffffffff
or edx, eax
push edx
push eax
push 0x1000
lea eax, [ebp - 0x1164]
push eax
lea ecx, [ebp - 0x14]
call fcn.10009b66
lea ecx, [ebp - 0x20]
test eax, eax
je 0x1000abef
push eax
lea eax, [ebp - 0x1164]
push eax
push edi
call fcn.100141d0
test bl, bl
jne 0x1000a99a
mov edi, dword [ebp - 0x1c]
mov eax, edi
sub eax, dword [ebp - 0x20]
cmp eax, 4
jl 0x1000ab8d
push 4
push dword [ebp - 0x20]
lea eax, [ebp - 0x2c]
push eax
lea ebx, [edi - 4]
call fcn.10020c0d
mov esi, dword [ebp - 0x20]
add esp, 0xc
test eax, eax
jmp 0x1000a743
cmp esi, ebx
je 0x1000ab8d
inc esi
lea eax, [ebp - 0x2c]
mov eax, dword [eax]
cmp eax, dword [esi]
sete al
test al, al
je 0x1000a733
cmp esi, edi
je 0x1000ab8d
add esi, 2
lea ecx, [ebp - 0xdc]
push esi
push dword [ebp - 0x20]
mov dword [ebp - 0x98], esi
call fcn.100125bd
pop ecx
pop ecx
mov byte [ebp - 4], 7
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0xd8]
mov edi, dword [ebp - 0xdc]
mov dword [ecx], eax
lea ecx, [ecx + 8]
mov ax, word [ebp - 0xd4]
mov word [ecx - 4], ax
lea eax, [ebp - 0xd0]
push eax
call fcn.10007530
push esi
push edi
lea ecx, [ebp - 0x110]
call fcn.100126bd
pop ecx
pop ecx
mov edi, dword [ebp - 0x110]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x28], edi
call fcn.1000514f
cmp dword [ebp - 0x60], 0x10
lea edx, [ebp - 0x74]
mov ecx, dword [ebp - 0x74]
lea ebx, [ebp - 0x74]
sbb al, al
mov dword [ebp + 0x14], ecx
cmp dword [ebp - 0x60], 0x10
cmovae edx, ecx
add al, 1
mov eax, dword [ebp - 0x64]
je 0x1000a7e6
add eax, ecx
jmp 0x1000a7ee
lea ecx, [ebp - 0x74]
add eax, ebx
mov dword [ebp + 0x14], ecx
mov dword [ebp - 0x4c], eax
cmp ecx, eax
je 0x1000a828
mov esi, dword [ebp + 0x14]
mov edi, eax
sub edx, esi
mov dword [ebp + 0x14], edx
mov bl, byte [esi]
mov al, bl
add al, 0x20
movzx ecx, al
lea edx, [ebx - 0x41]
movzx eax, bl
cmp dl, 0x19
cmova ecx, eax
mov eax, dword [ebp + 0x14]
mov byte [esi + eax], cl
inc esi
cmp esi, edi
jne 0x1000a7ff
mov esi, dword [ebp - 0x98]
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x8c]
call fcn.1000514f
push str.transfer_encoding
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0xa
call fcn.10013cb8
test al, al
je 0x1000a86f
push str.chunked
lea ecx, [ebp - 0x8c]
call fcn.10013cb8
test al, al
je 0x1000ab55
xor ebx, ebx
inc ebx
mov byte [ebp + 0x13], bl
jmp 0x1000a8e5
push str.content_length
lea ecx, [ebp - 0x74]
call fcn.10013cb8
test al, al
je 0x1000a8e2
cmp dword [ebp - 0x78], 0x10
lea ecx, [ebp - 0x8c]
mov eax, dword [ebp - 0x7c]
sbb dl, dl
cmp dword [ebp - 0x78], 0x10
cmovae ecx, dword [ebp - 0x8c]
add eax, ecx
add dl, 1
lea ecx, [ebp - 0x8c]
cmovne ecx, dword [ebp - 0x8c]
push eax
push ecx
call fcn.10012828
mov edx, eax
xor ebx, ebx
mov eax, dword [ebp - 0x38]
inc ebx
pop ecx
pop ecx
mov dword [ebp - 0x40], edx
mov ecx, dword [eax + 8]
sub ecx, dword [eax]
mov byte [ebp + 0xf], bl
cmp edx, ecx
jbe 0x1000a8e5
cmp edx, 0x7fffffff
ja 0x1000ac4a
push edx
mov ecx, eax
call fcn.10011a95
jmp 0x1000a8e5
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x140]
call fcn.1000514f
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x128]
call fcn.1000514f
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x140]
push eax
mov byte [ebp - 4], 0xc
call fcn.100111aa
lea ecx, [ebp - 0x128]
call fcn.10005728
lea ecx, [ebp - 0x140]
call fcn.10005728
lea ecx, [ebp - 0x8c]
call fcn.10005728
lea ecx, [ebp - 0x74]
call fcn.10005728
lea ecx, [ebp - 0xf4]
cmp edi, esi
je 0x1000a965
mov byte [ebp - 4], 7
call fcn.10005728
lea ecx, [ebp - 0x10c]
call fcn.10005728
jmp 0x1000a79b
call fcn.10005728
lea ecx, [ebp - 0x10c]
call fcn.10005728
add esi, 2
lea eax, [ebp + 0x14]
push esi
push dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
push eax
call fcn.10011175
lea ecx, [ebp - 0xd0]
mov byte [ebp + 0x17], bl
mov byte [ebp - 4], 5
call fcn.10005728
cmp byte [ebp + 0x13], 0
mov edi, dword [ebp - 0x1c]
je 0x1000aac2
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x20]
test eax, eax
je 0x1000aa04
mov ecx, dword [ebp - 0x38]
sub edi, ebx
cmp edi, eax
mov esi, eax
mov eax, dword [ebp + 8]
cmovb esi, edi
push esi
push ebx
push dword [eax + 0x30]
call fcn.100141d0
lea eax, [ebx + esi]
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.10011175
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
sub eax, esi
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
push 1
movzx ecx, cl
pop edx
cmove ecx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
cmp ebx, edi
jne 0x1000a9b0
jmp 0x1000a6ad
test cl, cl
je 0x1000aa45
mov eax, edi
sub eax, ebx
cmp eax, 2
jb 0x1000a6ad
lea eax, [ebp - 0x24]
mov ax, word [eax]
cmp ax, word [ebx]
sete al
test al, al
je 0x1000abb5
xor al, al
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x34], eax
lea eax, [ebx + 2]
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
call fcn.10011175
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov esi, edi
mov eax, esi
sub eax, ebx
cmp eax, 2
jl 0x1000aa8a
lea eax, [esi - 2]
push 2
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.10020c0d
add esp, 0xc
mov ecx, ebx
test eax, eax
sete al
test al, al
jne 0x1000aa88
mov edx, dword [ebp - 0x28]
cmp ecx, edx
je 0x1000aa8a
inc ecx
lea eax, [ebp - 0x24]
mov ax, word [eax]
cmp ax, word [ecx]
sete al
test al, al
je 0x1000aa73
mov esi, ecx
cmp esi, edi
je 0x1000a6ad
push esi
push ebx
call fcn.10012875
pop ecx
pop ecx
add esi, 2
mov dword [ebp - 0x30], eax
push esi
push ebx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.10011175
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1000abc7
mov edi, dword [ebp - 0x1c]
jmp 0x1000a9aa
mov esi, dword [ebp - 0x20]
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp - 0x38]
mov ecx, eax
push esi
push dword [eax + 4]
call fcn.100141d0
cmp esi, edi
push 0
cmovne edi, esi
cmp byte [ebp + 0xf], 0
mov dword [ebp - 0x1c], edi
pop edx
je 0x1000a6b2
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cmp eax, dword [ebp - 0x40]
jb 0x1000a6b0
test esi, esi
je 0x1000ab32
mov eax, dword [ebp - 0x18]
sub eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], eax
cmp eax, 0x1000
jb 0x1000ab29
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.10001f14
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
pop ecx
pop ecx
push eax
push esi
call fcn.1001efe6
pop ecx
pop ecx
cmp dword [ebp - 0x14], 0xffffffff
je 0x1000ab41
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp - 0x5c]
call fcn.10007e41
mov dword [ebp - 4], 0xe
jmp 0x1000ac12
lea eax, [ebp - 0x8c]
mov edx, str.Unsupported_transfer_encoding:
push eax
lea ecx, [ebp - 0x128]
call fcn.100120c4
pop ecx
push eax
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0xb
call fcn.1000ad23
push 0x1006a4c4
lea eax, [ebp - 0xb0]
jmp 0x1000ac44
lea ecx, [ebp - 0x20]
call fcn.10007e41
cmp dword [ebp - 0x14], 0xffffffff
je 0x1000aba4
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp - 0x5c]
call fcn.10007e41
mov dword [ebp - 4], 0xf
jmp 0x1000ac12
push str.Invalid_chunk
lea ecx, [ebp - 0xb0]
call fcn.10009cfb
jmp 0x1000ab7d
lea ecx, [ebp - 0x20]
call fcn.10007e41
cmp dword [ebp - 0x14], 0xffffffff
je 0x1000abde
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp - 0x5c]
call fcn.10007e41
mov dword [ebp - 4], 0xd
jmp 0x1000ac12
call fcn.10007e41
cmp dword [ebp - 0x14], 0xffffffff
je 0x1000ac03
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp - 0x5c]
call fcn.10007e41
mov dword [ebp - 4], 6
push dword [ebp - 0x3c]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x18
push str.Only_HTTP_scheme_is_supported
lea ecx, [ebp - 0x20]
call fcn.100098f6
push 0x1006a47c
lea eax, [ebp - 0x20]
push eax
call fcn.10020402
call fcn.100086ed
int3