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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov ebx, dword [esi]
mov ecx, dword [esi + 0x5a0]
lea edi, [ebx + 0x50]
mov dword [esi + 0x5a0], 0
mov edx, dword [edi + 0xe8]
mov eax, edx
and al, 0x15
mov dword [ebp - 0x10], ecx
cmp al, 1
jne 0x4a7459
mov eax, dword [esi + 0x2cc]
mov dword [ebp - 0xc], eax
jmp 0x4a7460
mov dword [ebp - 0xc], 0xffffffff
and dl, 0x2a
cmp dl, 2
jne 0x4a7470
mov eax, dword [esi + 0x2d0]
jmp 0x4a7473
or eax, 0xffffffff
test ecx, ecx
jne 0x4a748c
push ecx
mov ecx, dword [ebp - 0xc]
or edx, 0xffffffff
push eax
call fcn.004965b0
mov ecx, eax
add esp, 8
mov dword [ebp - 0x10], ecx
cmp ecx, 4
jne 0x4a74ab
push str.select_poll_returned_error
push ebx
call fcn.00494100
add esp, 8
mov eax, 0x37
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [edi + 0xe8], 1
je 0x4a74ec
test cl, 1
jne 0x4a74c2
cmp dword [esi + 0x2a0], 0
je 0x4a74ec
push dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, esi
push eax
push edi
mov ecx, ebx
call fcn.004a6390
add esp, 0xc
test eax, eax
jne 0x4a77d6
mov ecx, dword [ebp - 8]
cmp dword [ecx], eax
jne 0x4a77d6
mov ecx, dword [ebp - 0x10]
mov eax, dword [edi + 0xe8]
and eax, ecx
test al, 2
je 0x4a7511
lea eax, [ebp - 4]
mov edx, esi
push eax
push edi
mov ecx, ebx
call fcn.004a6e10
add esp, 8
test eax, eax
jne 0x4a77d6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
mov dword [ebp - 0x10], edx
mov dword [edi + 0x40], edx
sub esi, ecx
imul ecx, esi, 0x3e8
cmp dword [ebp - 4], 0
mov dword [edi + 0x44], ecx
je 0x4a7566
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4a7552
mov eax, dword [edi + 0x20]
mov dword [ecx], eax
mov eax, dword [edi + 0x24]
mov dword [ecx + 4], eax
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x4a75bb
mov eax, dword [edi + 0x28]
mov dword [ecx], eax
mov eax, dword [edi + 0x2c]
mov dword [ecx + 4], eax
jmp 0x4a75bb
cmp dword [edi + 0x84], 1
jne 0x4a75bb
sub ecx, dword [edi + 0x80]
mov eax, 0x10624dd3
imul ecx
mov eax, dword [ebp - 0x10]
sub eax, dword [edi + 0x7c]
sar edx, 6
imul eax, eax, 0x3e8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, eax
cmp ecx, dword [ebx + 0x4bc]
jl 0x4a75bb
or dword [edi + 0xe8], 2
push str.Done_waiting_for_100_continue_n
push ebx
mov dword [edi + 0x84], 0
call fcn.00494040
add esp, 8
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.004ad0e0
test eax, eax
jne 0x4a77b1
push dword [edi + 0x44]
mov ecx, ebx
push dword [edi + 0x40]
call fcn.004ada40
add esp, 8
test eax, eax
jne 0x4a77d6
cmp dword [edi + 0xe8], eax
je 0x4a772a
mov ecx, dword [ebx + 0x220]
lea eax, [edi + 0x40]
mov edx, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov esi, 1
test ecx, ecx
cmovg eax, esi
sub eax, esi
je 0x4a762a
sub eax, esi
je 0x4a76e5
sub eax, esi
jne 0x4a77bd
mov eax, dword [ebx + 0x224]
cmp ecx, eax
cmovge ecx, eax
mov dword [ebp - 4], ecx
test edx, edx
jne 0x4a765d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
mov dword [ebp - 0x18], edx
lea edx, [ebp - 0x18]
mov dword [ebp - 0x10], edx
sub esi, ecx
imul eax, esi, 0x3e8
mov dword [ebp - 0x14], eax
mov ecx, dword [edx + 4]
mov eax, 0x10624dd3
sub ecx, dword [ebx + 0x57c]
mov esi, dword [ebx + 0x578]
imul ecx
mov eax, dword [ebp - 0x10]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
sub esi, dword [eax]
add ecx, edx
imul eax, esi, 0x3e8
sub eax, ecx
mov ecx, dword [ebp - 4]
add ecx, eax
je 0x4a7699
test ecx, ecx
jns 0x4a77bd
mov eax, dword [edi]
mov esi, dword [edi + 4]
and eax, esi
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
cmp eax, 0xffffffff
je 0x4a76f3
push esi
push dword [edi]
push ecx
push edx
push dword [ebx + 0x574]
push dword [ebx + 0x570]
push dword [edi + 0x44]
push dword [edi + 0x40]
call fcn.004a1690
add esp, 0x10
push eax
push str.Operation_timed_out_after__ld_milliseconds_with__I64d_out_of__I64d_bytes_received
push ebx
call fcn.00494100
add esp, 0x1c
mov eax, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x224]
mov dword [ebp - 4], eax
jmp 0x4a762d
push ecx
push edx
push dword [ebx + 0x574]
push dword [ebx + 0x570]
push dword [edi + 0x44]
push dword [edi + 0x40]
call fcn.004a1690
add esp, 0x10
push eax
push str.Operation_timed_out_after__ld_milliseconds_with__I64d_bytes_received
push ebx
call fcn.00494100
add esp, 0x14
mov eax, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x35c], 0
jne 0x4a77a6
mov edx, dword [edi]
mov eax, edx
mov ecx, dword [edi + 4]
and eax, ecx
cmp eax, 0xffffffff
je 0x4a777d
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x24]
cmp dword [edi + 0x20], edx
jne 0x4a7753
cmp eax, ecx
je 0x4a777d
cmp dword [ebx + 0x14c], 0
jne 0x4a777d
sub edx, dword [ebp - 0x14]
sbb ecx, eax
push ecx
push edx
push str.transfer_closed_with__I64d_bytes_remaining_to_read
push ebx
call fcn.00494100
add esp, 0x10
mov eax, 0x12
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x108], 0
je 0x4a77a6
cmp dword [esi + 0x20], 4
je 0x4a77a6
push str.transfer_closed_with_outstanding_read_data_remaining
push ebx
call fcn.00494100
add esp, 8
mov eax, 0x12
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.004ad0e0
test eax, eax
je 0x4a77bd
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dword [edi + 0xe8], 0x33
mov eax, 0
mov ecx, dword [ebp - 8]
sete al
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret