Function at 0x1000a572
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x1004860f
call fcn.10046b78
mov eax, 0x1158
call fcn.1001beb0
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x94], 1
push edi
lea ecx, [ebp - 0xa4]
call fcn.1000975a
mov esi, eax
mov edi, 0xf4240
mov eax, dword [ebp + 0x1c]
mul edi
mov ecx, eax
mov eax, dword [ebp + 0x18]
mul edi
add ecx, edx
add eax, dword [esi]
mov edx, str.http
mov dword [ebp - 0x48], eax
adc ecx, dword [esi + 4]
mov dword [ebp - 0x44], ecx
lea ecx, [ebx + 4]
call fcn.10010025
test al, al
je 0x1000ad3e
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x160]
rep stosd dword es:[edi], eax
mov cl, byte [ebx + 1]
call fcn.100099d1
mov dword [ebp - 0x15c], eax
xor eax, eax
inc eax
cmp dword [ebx + 0x74], 0
mov dword [ebp - 0x158], eax
jne 0x1000a606
mov eax, 0x100572a4
jmp 0x1000a611
lea eax, [ebx + 0x64]
cmp dword [eax + 0x14], 0x10
jb 0x1000a611
mov eax, dword [eax]
lea ecx, [ebx + 0x4c]
cmp dword [ecx + 0x14], 0x10
mov edx, ecx
mov dword [ebp - 0x40], ecx
jb 0x1000a621
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 0x1000a67f
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
call fcn.1000991e
push dword [ebp - 0x40]
mov edx, str.Failed_to_get_address_info_of
lea ecx, [ebp - 0x8c]
mov esi, eax
call fcn.1000f8c1
pop ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0xb8]
push eax
push esi
push edi
call fcn.10009813
push 0x1005e294
lea eax, [ebp - 0xb8]
jmp 0x1000ad53
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.1000ee6e
push dword [ebp + 0x10]
lea edx, [ebx + 4]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x5c]
call fcn.1000a01e
add esp, 0x14
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
movzx eax, byte [ebx + 1]
push eax
call fcn.10009a4d
mov byte [ebp - 4], 3
cmp dword [ebp + 0x1c], 0
jl 0x1000a6f1
jg 0x1000a6e3
cmp dword [ebp + 0x18], 0
jb 0x1000a6f1
mov ebx, dword [ebp - 0x44]
push ebx
push dword [ebp - 0x48]
call fcn.1000ad5f
jmp 0x1000a6f9
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.10009b02
mov esi, dword [ebp - 0x58]
mov edi, dword [ebp - 0x5c]
sub esi, edi
je 0x1000a743
cmp dword [ebp + 0x1c], 0
jl 0x1000a72c
jg 0x1000a721
cmp dword [ebp + 0x18], 0
jb 0x1000a72c
push ebx
push dword [ebp - 0x48]
call fcn.1000ad5f
jmp 0x1000a731
or eax, 0xffffffff
or edx, eax
push edx
push eax
push esi
push edi
lea ecx, [ebp - 0x14]
call fcn.10009c04
add edi, eax
sub esi, eax
jne 0x1000a713
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 0x1000a7c1
mov bl, byte [ebp + 0x17]
xor edx, edx
cmp dword [ebp + 0x1c], edx
jl 0x1000a7da
jg 0x1000a7cd
cmp dword [ebp + 0x18], edx
jb 0x1000a7da
push dword [ebp - 0x44]
push dword [ebp - 0x48]
call fcn.1000ad5f
jmp 0x1000a7df
or eax, 0xffffffff
or edx, eax
push edx
push eax
push 0x1000
lea eax, [ebp - 0x1164]
push eax
lea ecx, [ebp - 0x14]
call fcn.10009c75
lea ecx, [ebp - 0x20]
test eax, eax
je 0x1000acfe
push eax
lea eax, [ebp - 0x1164]
push eax
push edi
call fcn.10011368
test bl, bl
jne 0x1000aaa9
mov edi, dword [ebp - 0x1c]
mov eax, edi
sub eax, dword [ebp - 0x20]
cmp eax, 4
jl 0x1000ac9c
push 4
push dword [ebp - 0x20]
lea eax, [ebp - 0x2c]
push eax
lea ebx, [edi - 4]
call fcn.1001ce2d
mov esi, dword [ebp - 0x20]
add esp, 0xc
test eax, eax
jmp 0x1000a852
cmp esi, ebx
je 0x1000ac9c
inc esi
lea eax, [ebp - 0x2c]
mov eax, dword [eax]
cmp eax, dword [esi]
sete al
test al, al
je 0x1000a842
cmp esi, edi
je 0x1000ac9c
add esi, 2
lea ecx, [ebp - 0xdc]
push esi
push dword [ebp - 0x20]
mov dword [ebp - 0x98], esi
call fcn.1000fdba
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.10007617
push esi
push edi
lea ecx, [ebp - 0x110]
call fcn.1000feba
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.10005233
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 0x1000a8f5
add eax, ecx
jmp 0x1000a8fd
lea ecx, [ebp - 0x74]
add eax, ebx
mov dword [ebp + 0x14], ecx
mov dword [ebp - 0x4c], eax
cmp ecx, eax
je 0x1000a937
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 0x1000a90e
mov esi, dword [ebp - 0x98]
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x8c]
call fcn.10005233
mov edx, str.transfer_encoding
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x74]
call fcn.10010025
test al, al
je 0x1000a97e
mov edx, str.chunked
lea ecx, [ebp - 0x8c]
call fcn.10010025
test al, al
je 0x1000ac64
xor ebx, ebx
inc ebx
mov byte [ebp + 0x13], bl
jmp 0x1000a9f4
mov edx, str.content_length
lea ecx, [ebp - 0x74]
call fcn.10010025
test al, al
je 0x1000a9f1
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.1001005b
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 0x1000a9f4
cmp edx, 0x7fffffff
ja 0x1000ad59
push edx
mov ecx, eax
call fcn.1000f313
jmp 0x1000a9f4
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x140]
call fcn.10005233
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x128]
call fcn.10005233
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x140]
push eax
mov byte [ebp - 4], 0xc
call fcn.1000ee2e
lea ecx, [ebp - 0x128]
call fcn.1000580c
lea ecx, [ebp - 0x140]
call fcn.1000580c
lea ecx, [ebp - 0x8c]
call fcn.1000580c
lea ecx, [ebp - 0x74]
call fcn.1000580c
lea ecx, [ebp - 0xf4]
cmp edi, esi
je 0x1000aa74
mov byte [ebp - 4], 7
call fcn.1000580c
lea ecx, [ebp - 0x10c]
call fcn.1000580c
jmp 0x1000a8aa
call fcn.1000580c
lea ecx, [ebp - 0x10c]
call fcn.1000580c
add esi, 2
lea eax, [ebp + 0x14]
push esi
push dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
push eax
call fcn.1000edf9
lea ecx, [ebp - 0xd0]
mov byte [ebp + 0x17], bl
mov byte [ebp - 4], 5
call fcn.1000580c
cmp byte [ebp + 0x13], 0
mov edi, dword [ebp - 0x1c]
je 0x1000abd1
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x20]
test eax, eax
je 0x1000ab13
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.10011368
lea eax, [ebx + esi]
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.1000edf9
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 0x1000aabf
jmp 0x1000a7bc
test cl, cl
je 0x1000ab54
mov eax, edi
sub eax, ebx
cmp eax, 2
jb 0x1000a7bc
lea eax, [ebp - 0x24]
mov ax, word [eax]
cmp ax, word [ebx]
sete al
test al, al
je 0x1000acc4
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.1000edf9
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov esi, edi
mov eax, esi
sub eax, ebx
cmp eax, 2
jl 0x1000ab99
lea eax, [esi - 2]
push 2
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.1001ce2d
add esp, 0xc
mov ecx, ebx
test eax, eax
sete al
test al, al
jne 0x1000ab97
mov edx, dword [ebp - 0x28]
cmp ecx, edx
je 0x1000ab99
inc ecx
lea eax, [ebp - 0x24]
mov ax, word [eax]
cmp ax, word [ecx]
sete al
test al, al
je 0x1000ab82
mov esi, ecx
cmp esi, edi
je 0x1000a7bc
push esi
push ebx
call fcn.100100a8
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.1000edf9
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1000acd6
mov edi, dword [ebp - 0x1c]
jmp 0x1000aab9
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.10011368
cmp esi, edi
push 0
cmovne edi, esi
cmp byte [ebp + 0xf], 0
mov dword [ebp - 0x1c], edi
pop edx
je 0x1000a7c1
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cmp eax, dword [ebp - 0x40]
jb 0x1000a7bf
test esi, esi
je 0x1000ac41
mov eax, dword [ebp - 0x18]
sub eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], eax
cmp eax, 0x1000
jb 0x1000ac38
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.10001f64
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
pop ecx
pop ecx
push eax
push esi
call fcn.1001b1b9
pop ecx
pop ecx
cmp dword [ebp - 0x14], 0xffffffff
je 0x1000ac50
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp - 0x5c]
call fcn.10007f13
mov dword [ebp - 4], 0xe
jmp 0x1000ad21
lea eax, [ebp - 0x8c]
mov edx, str.Unsupported_transfer_encoding:
push eax
lea ecx, [ebp - 0x128]
call fcn.1000f8c1
pop ecx
push eax
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0xb
call fcn.1000ae32
push 0x1005e40c
lea eax, [ebp - 0xb0]
jmp 0x1000ad53
lea ecx, [ebp - 0x20]
call fcn.10007f13
cmp dword [ebp - 0x14], 0xffffffff
je 0x1000acb3
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp - 0x5c]
call fcn.10007f13
mov dword [ebp - 4], 0xf
jmp 0x1000ad21
push str.Invalid_chunk
lea ecx, [ebp - 0xb0]
call fcn.10009e0a
jmp 0x1000ac8c
lea ecx, [ebp - 0x20]
call fcn.10007f13
cmp dword [ebp - 0x14], 0xffffffff
je 0x1000aced
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp - 0x5c]
call fcn.10007f13
mov dword [ebp - 4], 0xd
jmp 0x1000ad21
call fcn.10007f13
cmp dword [ebp - 0x14], 0xffffffff
je 0x1000ad12
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp - 0x5c]
call fcn.10007f13
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.10009a05
push 0x1005e3c4
lea eax, [ebp - 0x20]
push eax
call fcn.1001c622
call fcn.100087bf
int3