Function at 0x41be30
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov edx, dword [eax + 4]
push edi
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 8]
mov dword [edx + 0x94], eax
push str.HTTP_1.1_404_Not_Found
push dword [ebx]
call fcn.004d0580
add esp, 8
test eax, eax
jne 0x41c0f8
push str.HTTP_1.1_200_OK
push dword [ebx]
call fcn.004d0580
add esp, 8
test eax, eax
je 0x41c0f8
push str.Content_Length:_0
push dword [ebx]
call fcn.004d0580
add esp, 8
test eax, eax
jne 0x41bf62
push str.Transfer_Encoding:_chunked
push dword [ebx]
call fcn.004d0580
add esp, 8
test eax, eax
je 0x41bf62
push str._r_n_r_n
push dword [ebx]
call fcn.004d0580
add esp, 8
test eax, eax
je 0x41bf62
mov edi, dword [ebx]
lea esi, [eax + 4]
nop dword [eax]
push 0x50bdf0
push esi
call fcn.004d0580
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x41bf5f
mov ecx, esi
call fcn.004a6b90
mov esi, eax
test esi, esi
je 0x41bf55
add ebx, 2
test edi, edi
jne 0x41bf14
call fcn.004dd388
mov dword [eax], 0x16
call fcn.004d2a8c
add edi, esi
add esi, 2
add esi, ebx
mov byte [edi], 0
jmp 0x41bed0
test ebx, ebx
je 0x41bef8
lea eax, [esi + 1]
cmp eax, esi
jae 0x41bf3b
call fcn.004dd388
mov dword [eax], 0x22
call fcn.004d2a8c
add edi, esi
add esi, 2
add esi, ebx
mov byte [edi], 0
jmp 0x41bed0
push esi
push ebx
push edi
call fcn.004d21c0
add edi, esi
add esi, 2
add esp, 0xc
add esi, ebx
mov byte [edi], 0
jmp 0x41bed0
mov ebx, dword [ebp + 8]
sub edi, dword [ebx]
mov dword [ebx + 8], edi
jmp 0x41bf62
mov ebx, dword [ebp + 8]
cmp dword [0x58a3c8], 0
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov esi, dword [eax + 4]
jne 0x41bf88
cmp dword [0x58a3cc], 0
jne 0x41bf88
push 0x58a3c8
call edi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
call fcn.004ee0e0
mov edx, dword [0x58a3cc]
mov ecx, dword [0x58a3c8]
movsd qword [esp + 0x18], xmm0
call fcn.004ee0e0
movsd xmm1, qword [esp + 0x18]
lea edx, [esp + 0x10]
divsd xmm1, xmm0
mov dword [esi + 0x98], 0
mov ecx, ebx
mov eax, dword [ebx]
mov dword [esp + 0x10], eax
movsd qword [esp + 0x18], xmm1
call fcn.0041d870
push eax
call fcn.004d63a9
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
je 0x41c07c
mov ecx, 0x1000
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.004cf60b
mov dword [esp + 0x28], eax
lea ecx, [esi + 4]
mov dword [esp + 0x2c], eax
mov edx, ebx
mov eax, dword [esp + 0x30]
mov dword [esi + 0x98], eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0041d8e0
add esp, 0xc
test al, al
je 0x41c048
mov eax, dword [esi]
mov ecx, esi
push 0
push dword [esi + 0x70]
call dword [eax]
xor eax, eax
jmp 0x41c04d
mov eax, 3
mov dword [esi + 0x6c], eax
call fcn.004aa860
subsd xmm0, qword [esp + 0x18]
comisd xmm0, xmmword [esi + 0xa8]
jbe 0x41c0ed
movsd qword [esi + 0xa8], xmm0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 0x6c], 3
cmp dword [0x58a3c8], 0
jne 0x41c09c
cmp dword [0x58a3cc], 0
jne 0x41c09c
push 0x58a3c8
call edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
call fcn.004ee0e0
mov edx, dword [0x58a3cc]
mov ecx, dword [0x58a3c8]
movsd qword [esp + 0x10], xmm0
call fcn.004ee0e0
movsd xmm1, qword [esp + 0x10]
divsd xmm1, xmm0
subsd xmm1, qword [esp + 0x18]
comisd xmm1, xmmword [esi + 0xa8]
jbe 0x41c0ed
movsd qword [esi + 0xa8], xmm1
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov eax, dword [eax + 4]
mov dword [eax + 0x6c], 3
xor al, al
mov esp, ebp
pop ebp
ret 4