Function at 0x417a64
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.00420990
mov eax, dword [ebp + 0x1c]
push ebx
push esi
push edi
xor ebx, ebx
push str._HttpQueryInfo_HEADERS__
mov dword [ebp - 8], ecx
push ebx
mov byte [eax], bl
call fcn.00419c05
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
call fcn.004180a2
test eax, eax
je 0x417dc5
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push ebx
push esi
dec dword [esi]
mov eax, dword [0x43c77c]
push edi
push 0x16
push dword [ebp + 8]
call dword [eax + 0x48]
mov ecx, dword [esi]
cmp eax, ebx
mov byte [ecx + edi], bl
jne 0x417aed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HTTP_Query_Headers:_error__d._n
push 1
call fcn.00419c05
push 0x44386c
push edi
call fcn.00421870
mov eax, dword [ebp + 0x14]
mov dword [esi], ebx
add esp, 0x14
mov dword [eax], 0x2f78
jmp 0x417dc5
push edi
push str.Headers:__s.
push ebx
call fcn.00419c05
add esp, 0xc
mov dword [ebp - 4], 0x1000
push str._HttpQueryInfo_STATUS_CODE__
push ebx
call fcn.00419c05
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
call fcn.004180a2
test eax, eax
je 0x417dc5
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x1018]
push eax
mov eax, dword [0x43c77c]
push 0x13
push dword [ebp + 8]
call dword [eax + 0x48]
test eax, eax
mov edi, 0x4399b4
je 0x417b6d
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x1018]
push esi
push edi
push eax
call fcn.00421777
add esp, 0xc
cmp eax, 1
je 0x417b5d
mov dword [esi], ebx
push dword [esi]
push str.HTTP_Status___d.
push ebx
call fcn.00419c05
add esp, 0xc
mov esi, dword [ebp + 0x18]
push str._HttpQueryInfo_CONTENT_LENGTH__
push ebx
mov byte [ebp - 0x1018], bl
mov dword [esi], ebx
mov dword [ebp - 4], 0x1000
call fcn.00419c05
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
call fcn.004180a2
test eax, eax
je 0x417dc5
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x1018]
push eax
mov eax, dword [0x43c77c]
push 5
push dword [ebp + 8]
call dword [eax + 0x48]
test eax, eax
je 0x417be5
push esi
lea eax, [ebp - 0x1018]
push edi
push eax
call fcn.00421777
add esp, 0xc
cmp eax, 1
jne 0x417be1
push dword [esi]
push str.Content_Length___d.
push ebx
call fcn.00419c05
add esp, 0xc
jmp 0x417c08
mov dword [esi], ebx
jmp 0x417c08
push str.Content_Length__Unknown.
push ebx
mov dword [esi], ebx
call fcn.00419c05
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x417c08
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp - 8]
mov esi, 0x43d424
push esi
lea eax, [edi + 0xb0]
push eax
call fcn.00420480
pop ecx
test eax, eax
pop ecx
je 0x417d33
push str._HttpQueryInfo_VERSION__
push ebx
mov byte [ebp - 0x1018], bl
mov dword [ebp - 4], 0x1000
call fcn.00419c05
pop ecx
pop ecx
mov ecx, edi
call fcn.004180a2
test eax, eax
je 0x417dc5
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x1018]
push eax
mov eax, dword [0x43c77c]
push 0x12
push dword [ebp + 8]
call dword [eax + 0x48]
test eax, eax
je 0x417d12
lea eax, [ebp - 0x1018]
push 0x2f
push eax
call fcn.00420be0
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
je 0x417d33
push esi
call fcn.00421960
push eax
inc edi
push esi
push edi
call fcn.0042a2d0
mov esi, dword [ebp + 0x1c]
add esp, 0x10
test eax, eax
setne al
push str._HttpQueryInfo_CONNECTION__
push ebx
mov byte [esi], al
mov byte [ebp - 0x1018], bl
mov dword [ebp - 4], 0x1000
call fcn.00419c05
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
call fcn.004180a2
test eax, eax
je 0x417dc5
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x1018]
push eax
mov eax, dword [0x43c77c]
push 0x17
push dword [ebp + 8]
call dword [eax + 0x48]
test eax, eax
je 0x417d0b
lea eax, [ebp - 0x1018]
push str.keep_alive
push eax
call fcn.00421240
neg eax
sbb al, al
pop ecx
inc al
pop ecx
mov byte [esi], al
jmp 0x417d33
push str.Connection__Unknown.
jmp 0x417d17
push str.Version__Unknown.
push ebx
call fcn.00419c05
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x417d33
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp - 8]
sub eax, dword [edi + 0x30]
cmp eax, 0xea60
ja 0x417e08
mov esi, 0x1000
push str._HttpQueryInfo_HTTP_QUERY_SERVER__
push ebx
mov byte [ebp - 0x1018], bl
mov dword [ebp - 4], esi
call fcn.00419c05
pop ecx
pop ecx
mov ecx, edi
call fcn.004180a2
test eax, eax
je 0x417dc5
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x1018]
push eax
mov eax, dword [0x43c77c]
push 0x25
push dword [ebp + 8]
call dword [eax + 0x48]
test eax, eax
je 0x417e08
lea eax, [ebp - 0x1018]
push str.Apache
push eax
call fcn.004214f0
pop ecx
test eax, eax
pop ecx
je 0x417e08
push str._HttpQueryInfo_HTTP_QUERY_DATE__
push ebx
mov byte [ebp - 0x1018], bl
mov dword [ebp - 4], esi
call fcn.00419c05
pop ecx
pop ecx
mov ecx, edi
call fcn.004180a2
test eax, eax
jne 0x417dc9
xor al, al
jmp 0x417e0a
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x1018]
push eax
mov eax, dword [0x43c77c]
push 9
push dword [ebp + 8]
call dword [eax + 0x48]
test eax, eax
je 0x417e08
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x1018]
push eax
mov eax, dword [0x43c77c]
call dword [eax + 0x5c]
test eax, eax
je 0x417e08
lea eax, [ebp - 0x18]
push eax
call fcn.0041d560
pop ecx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0x1c