Function at 0x1000a452
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x10051125
call fcn.1004f6c8
mov eax, 0x1158
call fcn.10020060
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x94], 1
push edi
lea ecx, [ebp - 0xa4]
call fcn.1000963a
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.10013e70
test al, al
je 0x1000ac1e
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x160]
rep stosd dword es:[edi], eax
mov cl, byte [ebx + 1]
call fcn.100098b1
mov dword [ebp - 0x15c], eax
xor eax, eax
inc eax
cmp dword [ebx + 0x74], 0
mov dword [ebp - 0x158], eax
jne 0x1000a4e6
mov eax, 0x10060450
jmp 0x1000a4f1
lea eax, [ebx + 0x64]
cmp dword [eax + 0x14], 0x10
jb 0x1000a4f1
mov eax, dword [eax]
lea ecx, [ebx + 0x4c]
cmp dword [ecx + 0x14], 0x10
mov edx, ecx
mov dword [ebp - 0x40], ecx
jb 0x1000a501
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 0x1000a55f
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
call fcn.100097fe
push dword [ebp - 0x40]
mov edx, str.Failed_to_get_address_info_of
lea ecx, [ebp - 0x8c]
mov esi, eax
call fcn.10012220
pop ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0xb8]
push eax
push esi
push edi
call fcn.100096f3
push 0x1006a76c
lea eax, [ebp - 0xb8]
jmp 0x1000ac33
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.10011346
push dword [ebp + 0x10]
lea edx, [ebx + 4]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x5c]
call fcn.10009efe
add esp, 0x14
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
movzx eax, byte [ebx + 1]
push eax
call fcn.1000992d
mov byte [ebp - 4], 3
cmp dword [ebp + 0x1c], 0
jl 0x1000a5d1
jg 0x1000a5c3
cmp dword [ebp + 0x18], 0
jb 0x1000a5d1
mov ebx, dword [ebp - 0x44]
push ebx
push dword [ebp - 0x48]
call fcn.1000ac3f
jmp 0x1000a5d9
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.100099e2
mov esi, dword [ebp - 0x58]
mov edi, dword [ebp - 0x5c]
sub esi, edi
je 0x1000a623
cmp dword [ebp + 0x1c], 0
jl 0x1000a60c
jg 0x1000a601
cmp dword [ebp + 0x18], 0
jb 0x1000a60c
push ebx
push dword [ebp - 0x48]
call fcn.1000ac3f
jmp 0x1000a611
or eax, 0xffffffff
or edx, eax
push edx
push eax
push esi
push edi
lea ecx, [ebp - 0x14]
call fcn.10009ae4
add edi, eax
sub esi, eax
jne 0x1000a5f3
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 0x1000a6a1
mov bl, byte [ebp + 0x17]
xor edx, edx
cmp dword [ebp + 0x1c], edx
jl 0x1000a6ba
jg 0x1000a6ad
cmp dword [ebp + 0x18], edx
jb 0x1000a6ba
push dword [ebp - 0x44]
push dword [ebp - 0x48]
call fcn.1000ac3f
jmp 0x1000a6bf
or eax, 0xffffffff
or edx, eax
push edx
push eax
push 0x1000
lea eax, [ebp - 0x1164]
push eax
lea ecx, [ebp - 0x14]
call fcn.10009b55
lea ecx, [ebp - 0x20]
test eax, eax
je 0x1000abde
push eax
lea eax, [ebp - 0x1164]
push eax
push edi
call fcn.10014388
test bl, bl
jne 0x1000a989
mov edi, dword [ebp - 0x1c]
mov eax, edi
sub eax, dword [ebp - 0x20]
cmp eax, 4
jl 0x1000ab7c
push 4
push dword [ebp - 0x20]
lea eax, [ebp - 0x2c]
push eax
lea ebx, [edi - 4]
call fcn.10020fdd
mov esi, dword [ebp - 0x20]
add esp, 0xc
test eax, eax
jmp 0x1000a732
cmp esi, ebx
je 0x1000ab7c
inc esi
lea eax, [ebp - 0x2c]
mov eax, dword [eax]
cmp eax, dword [esi]
sete al
test al, al
je 0x1000a722
cmp esi, edi
je 0x1000ab7c
add esi, 2
lea ecx, [ebp - 0xdc]
push esi
push dword [ebp - 0x20]
mov dword [ebp - 0x98], esi
call fcn.10012719
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.10007540
push esi
push edi
lea ecx, [ebp - 0x110]
call fcn.10012819
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.1000515f
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 0x1000a7d5
add eax, ecx
jmp 0x1000a7dd
lea ecx, [ebp - 0x74]
add eax, ebx
mov dword [ebp + 0x14], ecx
mov dword [ebp - 0x4c], eax
cmp ecx, eax
je 0x1000a817
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 0x1000a7ee
mov esi, dword [ebp - 0x98]
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x8c]
call fcn.1000515f
push str.transfer_encoding
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0xa
call fcn.10013e70
test al, al
je 0x1000a85e
push str.chunked
lea ecx, [ebp - 0x8c]
call fcn.10013e70
test al, al
je 0x1000ab44
xor ebx, ebx
inc ebx
mov byte [ebp + 0x13], bl
jmp 0x1000a8d4
push str.content_length
lea ecx, [ebp - 0x74]
call fcn.10013e70
test al, al
je 0x1000a8d1
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.10012984
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 0x1000a8d4
cmp edx, 0x7fffffff
ja 0x1000ac39
push edx
mov ecx, eax
call fcn.10011bf1
jmp 0x1000a8d4
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x140]
call fcn.1000515f
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x128]
call fcn.1000515f
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x140]
push eax
mov byte [ebp - 4], 0xc
call fcn.10011306
lea ecx, [ebp - 0x128]
call fcn.10005738
lea ecx, [ebp - 0x140]
call fcn.10005738
lea ecx, [ebp - 0x8c]
call fcn.10005738
lea ecx, [ebp - 0x74]
call fcn.10005738
lea ecx, [ebp - 0xf4]
cmp edi, esi
je 0x1000a954
mov byte [ebp - 4], 7
call fcn.10005738
lea ecx, [ebp - 0x10c]
call fcn.10005738
jmp 0x1000a78a
call fcn.10005738
lea ecx, [ebp - 0x10c]
call fcn.10005738
add esi, 2
lea eax, [ebp + 0x14]
push esi
push dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
push eax
call fcn.100112d1
lea ecx, [ebp - 0xd0]
mov byte [ebp + 0x17], bl
mov byte [ebp - 4], 5
call fcn.10005738
cmp byte [ebp + 0x13], 0
mov edi, dword [ebp - 0x1c]
je 0x1000aab1
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x20]
test eax, eax
je 0x1000a9f3
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.10014388
lea eax, [ebx + esi]
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.100112d1
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 0x1000a99f
jmp 0x1000a69c
test cl, cl
je 0x1000aa34
mov eax, edi
sub eax, ebx
cmp eax, 2
jb 0x1000a69c
lea eax, [ebp - 0x24]
mov ax, word [eax]
cmp ax, word [ebx]
sete al
test al, al
je 0x1000aba4
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.100112d1
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov esi, edi
mov eax, esi
sub eax, ebx
cmp eax, 2
jl 0x1000aa79
lea eax, [esi - 2]
push 2
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.10020fdd
add esp, 0xc
mov ecx, ebx
test eax, eax
sete al
test al, al
jne 0x1000aa77
mov edx, dword [ebp - 0x28]
cmp ecx, edx
je 0x1000aa79
inc ecx
lea eax, [ebp - 0x24]
mov ax, word [eax]
cmp ax, word [ecx]
sete al
test al, al
je 0x1000aa62
mov esi, ecx
cmp esi, edi
je 0x1000a69c
push esi
push ebx
call fcn.100129d1
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.100112d1
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1000abb6
mov edi, dword [ebp - 0x1c]
jmp 0x1000a999
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.10014388
cmp esi, edi
push 0
cmovne edi, esi
cmp byte [ebp + 0xf], 0
mov dword [ebp - 0x1c], edi
pop edx
je 0x1000a6a1
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cmp eax, dword [ebp - 0x40]
jb 0x1000a69f
test esi, esi
je 0x1000ab21
mov eax, dword [ebp - 0x18]
sub eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], eax
cmp eax, 0x1000
jb 0x1000ab18
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.10001f24
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
pop ecx
pop ecx
push eax
push esi
call fcn.1001f3b6
pop ecx
pop ecx
cmp dword [ebp - 0x14], 0xffffffff
je 0x1000ab30
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp - 0x5c]
call fcn.10007e51
mov dword [ebp - 4], 0xe
jmp 0x1000ac01
lea eax, [ebp - 0x8c]
mov edx, str.Unsupported_transfer_encoding:
push eax
lea ecx, [ebp - 0x128]
call fcn.10012220
pop ecx
push eax
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0xb
call fcn.1000ad12
push 0x1006a8e4
lea eax, [ebp - 0xb0]
jmp 0x1000ac33
lea ecx, [ebp - 0x20]
call fcn.10007e51
cmp dword [ebp - 0x14], 0xffffffff
je 0x1000ab93
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp - 0x5c]
call fcn.10007e51
mov dword [ebp - 4], 0xf
jmp 0x1000ac01
push str.Invalid_chunk
lea ecx, [ebp - 0xb0]
call fcn.10009cea
jmp 0x1000ab6c
lea ecx, [ebp - 0x20]
call fcn.10007e51
cmp dword [ebp - 0x14], 0xffffffff
je 0x1000abcd
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp - 0x5c]
call fcn.10007e51
mov dword [ebp - 4], 0xd
jmp 0x1000ac01
call fcn.10007e51
cmp dword [ebp - 0x14], 0xffffffff
je 0x1000abf2
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp - 0x5c]
call fcn.10007e51
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.100098e5
push 0x1006a89c
lea eax, [ebp - 0x20]
push eax
call fcn.100207d2
call fcn.100086fd
int3