Function at 0x1000a500
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x10050bc3
call fcn.1004f148
mov eax, 0x1158
call fcn.1001f980
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x94], 1
push edi
lea ecx, [ebp - 0xa4]
call fcn.100096e8
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.100139db
test al, al
je 0x1000accc
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x160]
rep stosd dword es:[edi], eax
mov cl, byte [ebx + 1]
call fcn.1000995f
mov dword [ebp - 0x15c], eax
xor eax, eax
inc eax
cmp dword [ebx + 0x74], 0
mov dword [ebp - 0x158], eax
jne 0x1000a594
mov eax, 0x10060484
jmp 0x1000a59f
lea eax, [ebx + 0x64]
cmp dword [eax + 0x14], 0x10
jb 0x1000a59f
mov eax, dword [eax]
lea ecx, [ebx + 0x4c]
cmp dword [ecx + 0x14], 0x10
mov edx, ecx
mov dword [ebp - 0x40], ecx
jb 0x1000a5af
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 0x1000a60d
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
call fcn.100098ac
push dword [ebp - 0x40]
mov edx, str.Failed_to_get_address_info_of
lea ecx, [ebp - 0x8c]
mov esi, eax
call fcn.10011de7
pop ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0xb8]
push eax
push esi
push edi
call fcn.100097a1
push 0x1006a334
lea eax, [ebp - 0xb8]
jmp 0x1000ace1
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.10010f0d
push dword [ebp + 0x10]
lea edx, [ebx + 4]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x5c]
call fcn.10009fac
add esp, 0x14
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
movzx eax, byte [ebx + 1]
push eax
call fcn.100099db
mov byte [ebp - 4], 3
cmp dword [ebp + 0x1c], 0
jl 0x1000a67f
jg 0x1000a671
cmp dword [ebp + 0x18], 0
jb 0x1000a67f
mov ebx, dword [ebp - 0x44]
push ebx
push dword [ebp - 0x48]
call fcn.1000aced
jmp 0x1000a687
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.10009a90
mov esi, dword [ebp - 0x58]
mov edi, dword [ebp - 0x5c]
sub esi, edi
je 0x1000a6d1
cmp dword [ebp + 0x1c], 0
jl 0x1000a6ba
jg 0x1000a6af
cmp dword [ebp + 0x18], 0
jb 0x1000a6ba
push ebx
push dword [ebp - 0x48]
call fcn.1000aced
jmp 0x1000a6bf
or eax, 0xffffffff
or edx, eax
push edx
push eax
push esi
push edi
lea ecx, [ebp - 0x14]
call fcn.10009b92
add edi, eax
sub esi, eax
jne 0x1000a6a1
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 0x1000a74f
mov bl, byte [ebp + 0x17]
xor edx, edx
cmp dword [ebp + 0x1c], edx
jl 0x1000a768
jg 0x1000a75b
cmp dword [ebp + 0x18], edx
jb 0x1000a768
push dword [ebp - 0x44]
push dword [ebp - 0x48]
call fcn.1000aced
jmp 0x1000a76d
or eax, 0xffffffff
or edx, eax
push edx
push eax
push 0x1000
lea eax, [ebp - 0x1164]
push eax
lea ecx, [ebp - 0x14]
call fcn.10009c03
lea ecx, [ebp - 0x20]
test eax, eax
je 0x1000ac8c
push eax
lea eax, [ebp - 0x1164]
push eax
push edi
call fcn.10013ef3
test bl, bl
jne 0x1000aa37
mov edi, dword [ebp - 0x1c]
mov eax, edi
sub eax, dword [ebp - 0x20]
cmp eax, 4
jl 0x1000ac2a
push 4
push dword [ebp - 0x20]
lea eax, [ebp - 0x2c]
push eax
lea ebx, [edi - 4]
call fcn.100208fd
mov esi, dword [ebp - 0x20]
add esp, 0xc
test eax, eax
jmp 0x1000a7e0
cmp esi, ebx
je 0x1000ac2a
inc esi
lea eax, [ebp - 0x2c]
mov eax, dword [eax]
cmp eax, dword [esi]
sete al
test al, al
je 0x1000a7d0
cmp esi, edi
je 0x1000ac2a
add esi, 2
lea ecx, [ebp - 0xdc]
push esi
push dword [ebp - 0x20]
mov dword [ebp - 0x98], esi
call fcn.100122e0
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.10007590
push esi
push edi
lea ecx, [ebp - 0x110]
call fcn.100123e0
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.100051af
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 0x1000a883
add eax, ecx
jmp 0x1000a88b
lea ecx, [ebp - 0x74]
add eax, ebx
mov dword [ebp + 0x14], ecx
mov dword [ebp - 0x4c], eax
cmp ecx, eax
je 0x1000a8c5
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 0x1000a89c
mov esi, dword [ebp - 0x98]
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x8c]
call fcn.100051af
push str.transfer_encoding
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0xa
call fcn.100139db
test al, al
je 0x1000a90c
push str.chunked
lea ecx, [ebp - 0x8c]
call fcn.100139db
test al, al
je 0x1000abf2
xor ebx, ebx
inc ebx
mov byte [ebp + 0x13], bl
jmp 0x1000a982
push str.content_length
lea ecx, [ebp - 0x74]
call fcn.100139db
test al, al
je 0x1000a97f
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.1001254b
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 0x1000a982
cmp edx, 0x7fffffff
ja 0x1000ace7
push edx
mov ecx, eax
call fcn.100117b8
jmp 0x1000a982
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x140]
call fcn.100051af
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x128]
call fcn.100051af
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x140]
push eax
mov byte [ebp - 4], 0xc
call fcn.10010ecd
lea ecx, [ebp - 0x128]
call fcn.10005788
lea ecx, [ebp - 0x140]
call fcn.10005788
lea ecx, [ebp - 0x8c]
call fcn.10005788
lea ecx, [ebp - 0x74]
call fcn.10005788
lea ecx, [ebp - 0xf4]
cmp edi, esi
je 0x1000aa02
mov byte [ebp - 4], 7
call fcn.10005788
lea ecx, [ebp - 0x10c]
call fcn.10005788
jmp 0x1000a838
call fcn.10005788
lea ecx, [ebp - 0x10c]
call fcn.10005788
add esi, 2
lea eax, [ebp + 0x14]
push esi
push dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
push eax
call fcn.10010e98
lea ecx, [ebp - 0xd0]
mov byte [ebp + 0x17], bl
mov byte [ebp - 4], 5
call fcn.10005788
cmp byte [ebp + 0x13], 0
mov edi, dword [ebp - 0x1c]
je 0x1000ab5f
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x20]
test eax, eax
je 0x1000aaa1
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.10013ef3
lea eax, [ebx + esi]
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.10010e98
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 0x1000aa4d
jmp 0x1000a74a
test cl, cl
je 0x1000aae2
mov eax, edi
sub eax, ebx
cmp eax, 2
jb 0x1000a74a
lea eax, [ebp - 0x24]
mov ax, word [eax]
cmp ax, word [ebx]
sete al
test al, al
je 0x1000ac52
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.10010e98
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov esi, edi
mov eax, esi
sub eax, ebx
cmp eax, 2
jl 0x1000ab27
lea eax, [esi - 2]
push 2
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.100208fd
add esp, 0xc
mov ecx, ebx
test eax, eax
sete al
test al, al
jne 0x1000ab25
mov edx, dword [ebp - 0x28]
cmp ecx, edx
je 0x1000ab27
inc ecx
lea eax, [ebp - 0x24]
mov ax, word [eax]
cmp ax, word [ecx]
sete al
test al, al
je 0x1000ab10
mov esi, ecx
cmp esi, edi
je 0x1000a74a
push esi
push ebx
call fcn.10012598
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.10010e98
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1000ac64
mov edi, dword [ebp - 0x1c]
jmp 0x1000aa47
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.10013ef3
cmp esi, edi
push 0
cmovne edi, esi
cmp byte [ebp + 0xf], 0
mov dword [ebp - 0x1c], edi
pop edx
je 0x1000a74f
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cmp eax, dword [ebp - 0x40]
jb 0x1000a74d
test esi, esi
je 0x1000abcf
mov eax, dword [ebp - 0x18]
sub eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], eax
cmp eax, 0x1000
jb 0x1000abc6
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.10001f74
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
pop ecx
pop ecx
push eax
push esi
call fcn.1001ecd6
pop ecx
pop ecx
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.10007ea1
mov dword [ebp - 4], 0xe
jmp 0x1000acaf
lea eax, [ebp - 0x8c]
mov edx, str.Unsupported_transfer_encoding:
push eax
lea ecx, [ebp - 0x128]
call fcn.10011de7
pop ecx
push eax
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0xb
call fcn.1000adc0
push 0x1006a4ac
lea eax, [ebp - 0xb0]
jmp 0x1000ace1
lea ecx, [ebp - 0x20]
call fcn.10007ea1
cmp dword [ebp - 0x14], 0xffffffff
je 0x1000ac41
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp - 0x5c]
call fcn.10007ea1
mov dword [ebp - 4], 0xf
jmp 0x1000acaf
push str.Invalid_chunk
lea ecx, [ebp - 0xb0]
call fcn.10009d98
jmp 0x1000ac1a
lea ecx, [ebp - 0x20]
call fcn.10007ea1
cmp dword [ebp - 0x14], 0xffffffff
je 0x1000ac7b
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp - 0x5c]
call fcn.10007ea1
mov dword [ebp - 4], 0xd
jmp 0x1000acaf
call fcn.10007ea1
cmp dword [ebp - 0x14], 0xffffffff
je 0x1000aca0
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp - 0x5c]
call fcn.10007ea1
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.10009993
push 0x1006a464
lea eax, [ebp - 0x20]
push eax
call fcn.100200f2
call fcn.1000874d
int3