Function at 0x10006760
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100176c8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x10021568]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x54], eax
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp + 0x18], edi
jne 0x100067b1
cmp dword [ebp + 0x1c], 0x10
jb 0x100069ab
mov ecx, dword [ebp + 8]
push ecx
jmp 0x100069a2
mov eax, dword [ebp + 8]
mov ebx, 0x10
cmp dword [ebp + 0x1c], ebx
jae 0x100067c1
lea eax, [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll__strdup]
mov esi, eax
push str.http:__
push esi
call dword [sym.imp.MSVCR100.dll_strstr]
add esp, 0xc
cmp eax, esi
jne 0x10006999
add esi, 7
push 0x2f
push esi
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
cmp eax, edi
je 0x100067f7
mov byte [eax], 0
mov eax, esi
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], edi
mov byte [ebp - 0x30], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10006810
sub eax, edx
mov edi, eax
mov eax, esi
lea esi, [ebp - 0x30]
call fcn.10003390
push 1
lea edx, [ebp - 0x50]
push edx
mov eax, esi
mov byte [ebp - 4], 1
mov bl, 0x3a
push eax
mov byte [ebp - 0x50], bl
call fcn.10003170
test eax, eax
je 0x10006880
push 1
lea ecx, [ebp - 0x50]
push ecx
mov edx, esi
push edx
mov byte [ebp - 0x50], bl
call fcn.10003170
push eax
mov eax, esi
push eax
xor ebx, ebx
lea esi, [ebp - 0x4c]
call fcn.10002f00
mov edi, eax
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.10001280
cmp dword [ebp - 0x38], 0x10
jb 0x10006880
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x30]
jae 0x10006890
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
xor edi, edi
cmp ebx, edi
jne 0x100068d6
mov esi, 0x10
cmp dword [ebp - 0x1c], esi
jb 0x100068b6
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], edi
mov byte [ebp - 0x30], 0
cmp dword [ebp + 0x1c], esi
jb 0x100069ab
mov eax, dword [ebp + 8]
push eax
jmp 0x100069a2
mov dword [ebp - 0x58], edi
lea esp, [esp]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp - 0x58]
cmp dword [ecx + edx*4], 0
lea eax, [ecx + edx*4]
je 0x10006934
movsx ecx, word [ebx + 0xa]
mov edx, dword [eax]
push ecx
push edx
lea eax, [ebp - 0x3c]
push eax
call sub.MSVCR100.dll_memcpy
mov ecx, dword [ebp - 0x3c]
add esp, 0xc
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10006912
sub ecx, esi
mov esi, dword [ebp - 0x54]
mov edi, ecx
call fcn.10003390
mov edx, dword [ebp - 0x3e]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
inc dword [ebp - 0x58]
jmp 0x100068e0
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x10], 0
jne 0x1000694e
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x54]
or eax, 0xffffffff
xor ebx, ebx
call fcn.10001300
mov esi, 0x10
cmp dword [ebp - 0x1c], esi
jb 0x10006965
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
cmp dword [ebp + 0x1c], esi
jb 0x100069ab
mov ecx, dword [ebp + 8]
push ecx
jmp 0x100069a2
cmp dword [ebp + 0x1c], ebx
jb 0x100069ab
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10015f75
mov esp, ebp
pop ebp
ret 0x20