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

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push ebx
xor ebx, ebx
mov dword [eax], ebx
push ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], 0x64
mov dword [ecx], ebx
jmp 0x5c4df0
mov edx, dword [esp + 0x28]
mov ebp, dword [edx + 0x4d0]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x5c4e21
cmp dword [esi + 0x48], ebx
jne 0x5c4e21
sub eax, dword [esi + 0x20]
sbb ecx, dword [esi + 0x24]
xor edx, edx
cmp ecx, edx
jg 0x5c4e21
jl 0x5c4e1f
cmp eax, ebp
jae 0x5c4e21
mov ebp, eax
cmp ebp, ebx
je 0x5c4e59
mov ecx, dword [esi + 0x98]
mov edx, dword [edi + 0x31c]
lea eax, [esp + 8]
push eax
push ebp
push ecx
push edx
push edi
call fcn.005bfb00
add esp, 0x14
mov dword [esp + 0xc], eax
cmp eax, 0x51
je 0x5c542a
cmp eax, ebx
jg 0x5c5469
jmp 0x5c4e5d
mov dword [esp + 8], ebx
mov eax, dword [esi + 0x20]
or eax, dword [esi + 0x24]
jne 0x5c4e94
mov ecx, dword [esi + 0x28]
or ecx, dword [esi + 0x2c]
jne 0x5c4e94
mov ebp, dword [esp + 0x28]
push 7
push ebp
call fcn.005c74e0
add esp, 8
cmp dword [esi + 0x84], ebx
jle 0x5c4e98
call fcn.005bf820
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], edx
jmp 0x5c4e98
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
or dword [eax], 1
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x5c4eb9
cmp dword [esi + 0x94], ebx
jne 0x5c4eb9
mov dword [esp + 0x14], 1
jmp 0x5c4ec5
mov dword [esp + 0x14], ebx
cmp eax, ebx
jle 0x5c5311
mov edx, dword [esi + 0x98]
mov byte [eax + edx], 0
mov eax, dword [esi + 0x98]
mov dword [esi + 0x5c], eax
mov ecx, dword [edi + 0x310]
mov eax, dword [ecx + 0x34]
cmp eax, ebx
je 0x5c4f0c
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0xc]
push ecx
push edi
push ebp
call eax
add esp, 0x10
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x5c5469
cmp dword [esp + 0x10], ebx
jne 0x5c542a
cmp dword [esi + 0x48], ebx
je 0x5c4fc8
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0xc]
push eax
push edi
push ebp
mov dword [esp + 0x30], ebx
call fcn.005cba70
add esp, 0x10
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x5c5469
mov ecx, dword [edi + 0x310]
mov eax, dword [ecx + 0x34]
cmp eax, ebx
je 0x5c4f85
cmp dword [esi + 0x14], ebx
jg 0x5c4f85
jl 0x5c4f52
cmp dword [esi + 0x10], ebx
ja 0x5c4f85
mov ebp, dword [esp + 8]
cmp ebp, ebx
jle 0x5c4f89
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0xc]
push ecx
push edi
push edx
call eax
add esp, 0x10
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x5c5469
cmp dword [esp + 0x10], ebx
jne 0x5c542a
mov ebp, dword [esp + 8]
cmp dword [esp + 0x20], ebx
je 0x5c4fcc
cmp ebp, ebx
jle 0x5c542a
mov edx, dword [edi]
mov eax, dword [edx + 0x64]
push 1
push eax
call fcn.005b3950
add esp, 8
test eax, eax
je 0x5c542a
mov ecx, dword [esp + 8]
sub dword [edi + 0x378], ecx
mov dword [edi + 0x2d4], 1
jmp 0x5c542a
mov ebp, dword [esp + 8]
cmp dword [esi + 0x5c], ebx
je 0x5c52b8
cmp dword [esi + 0x48], 0
jne 0x5c52b8
test ebp, ebp
jg 0x5c4fee
cmp dword [esp + 0x14], 0
je 0x5c52b8
mov ebx, dword [esp + 0x28]
cmp dword [ebx + 0x53c], 0
jne 0x5c531d
cmp dword [esi + 0x94], 0
jne 0x5c509a
cmp dword [esp + 0x14], 0
jne 0x5c509a
mov eax, dword [edi + 0x310]
test dword [eax + 0x40], 0x40003
je 0x5c509a
cmp dword [ebx + 0x124], 0
je 0x5c5046
cmp dword [edi + 0x274], 0
jne 0x5c535d
mov dword [esi + 0xa8], 1
mov ecx, dword [ebx + 0x10a80]
or ecx, dword [ebx + 0x10a84]
je 0x5c5070
cmp dword [esi + 0x6c], 0
jne 0x5c5070
cmp dword [ebx + 0x3e8], 1
jne 0x5c5070
cmp dword [esi + 0xa8], 0
je 0x5c533d
cmp dword [ebx + 0x3e0], 0
je 0x5c509a
cmp dword [ebx + 0x10a78], 0
jne 0x5c509a
mov edx, dword [esi + 0x90]
push edx
push ebx
call fcn.005c4d80
add esp, 8
test eax, eax
je 0x5c538f
inc dword [esi + 0x94]
cmp dword [ebx + 0x548], 0
je 0x5c50ec
cmp dword [esi + 0x4c], 0
push edi
je 0x5c50d8
mov eax, dword [esi + 0x58]
mov ecx, dword [ebx + 0x844]
push eax
push ecx
push 3
push ebx
call fcn.005bfc90
add esp, 0x14
cmp dword [esi + 0x4c], 1
jne 0x5c50e8
mov edx, dword [esp + 8]
mov eax, dword [esi + 0x5c]
push edi
push edx
push eax
jmp 0x5c50dd
mov ecx, dword [esi + 0x5c]
push ebp
push ecx
push 3
push ebx
call fcn.005bfc90
add esp, 0x14
mov ebp, dword [esp + 8]
cmp dword [esi + 0xc0], 0
je 0x5c514b
mov eax, dword [esi + 0x5c]
lea edx, [esp + 8]
push edx
push ebp
push eax
push edi
call fcn.005d4000
add esp, 0x10
test eax, eax
jg 0x5c53b6
cmp eax, 0xffffffff
jne 0x5c5147
and dword [esi + 0xa0], 0xfffffffe
mov ebp, dword [edi + 0x38]
test ebp, ebp
je 0x5c5147
mov ecx, dword [edi]
mov edx, dword [ecx + 0x64]
push 1
push edx
call fcn.005b3950
add esp, 8
test eax, eax
je 0x5c5147
sub dword [edi + 0x378], ebp
mov dword [edi + 0x2d4], 1
mov ebp, dword [esp + 8]
cmp dword [esi + 0x4c], 0
je 0x5c5164
cmp dword [esi + 0xa8], 0
jne 0x5c5164
mov eax, dword [esi + 0x58]
add dword [esi + 0x20], eax
adc dword [esi + 0x24], 0
mov ebx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp ebx, 0xffffffff
jne 0x5c5173
cmp ecx, ebx
je 0x5c51da
mov eax, ebp
cdq
add eax, dword [esi + 0x20]
adc edx, dword [esi + 0x24]
cmp edx, ecx
jl 0x5c51da
jg 0x5c5186
cmp eax, ebx
jb 0x5c51da
sub ebp, dword [esi + 0x10]
add ebp, dword [esi + 0x20]
mov dword [esp + 0x18], ebp
je 0x5c51c1
cmp dword [esi + 0xa8], 0
jne 0x5c51c1
mov ecx, dword [edi]
mov edx, dword [ecx + 0x64]
push 1
push edx
call fcn.005b3950
add esp, 8
test eax, eax
je 0x5c51c1
mov eax, ebp
sub dword [edi + 0x378], eax
mov dword [edi + 0x2d4], 1
mov ebp, dword [esi + 0x10]
sub ebp, dword [esi + 0x20]
mov dword [esp + 8], ebp
jns 0x5c51d3
xor ebp, ebp
mov dword [esp + 8], ebp
and dword [esi + 0xa0], 0xfffffffe
mov ebx, dword [esp + 0x28]
mov eax, ebp
cdq
add dword [esi + 0x20], eax
adc dword [esi + 0x24], edx
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
push ecx
push edx
push ebx
call fcn.005c76e0
mov ebp, dword [esp + 0x14]
add esp, 0xc
cmp dword [esi + 0xc0], 0
jne 0x5c52b8
test ebp, ebp
jne 0x5c521c
cmp dword [esi + 0x4c], ebp
jne 0x5c5222
cmp dword [esp + 0x14], ebp
je 0x5c52b8
cmp dword [esi + 0x4c], 0
je 0x5c527e
cmp dword [esi + 0xa8], 0
jne 0x5c527e
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
mov ecx, edx
and ecx, eax
cmp ecx, 0xffffffff
je 0x5c5256
mov ebp, dword [esi + 0x58]
xor ecx, ecx
cmp ecx, eax
jl 0x5c5256
jg 0x5c5249
cmp ebp, edx
jbe 0x5c5256
mov edx, dword [esi + 0x10]
mov eax, dword [ebx + 0x844]
push edx
push eax
jmp 0x5c5261
mov ecx, dword [esi + 0x58]
mov edx, dword [ebx + 0x844]
push ecx
push edx
push 1
push edi
call fcn.005c03f0
add esp, 0x10
mov dword [esp + 0xc], eax
test eax, eax
jne 0x5c5469
mov ebp, dword [esp + 8]
jmp 0x5c5282
mov eax, dword [esp + 0xc]
cmp dword [esi + 0x4c], 2
jge 0x5c52a9
cmp dword [esi + 0xa8], 0
jne 0x5c52a9
mov eax, dword [esi + 0x5c]
push ebp
push eax
push 1
push edi
call fcn.005c03f0
mov ebp, dword [esp + 0x18]
add esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esi + 0x4c], 0
test eax, eax
jne 0x5c5469
mov ecx, dword [edi + 0x310]
cmp dword [ecx + 0x34], 0
je 0x5c52d9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5c52d9
cmp dword [edi + 0x2d4], 0
je 0x5c53f4
cmp dword [esp + 0x14], 0
je 0x5c52e7
and dword [esi + 0xa0], 0xfffffffe
mov edx, dword [edi + 0x310]
test byte [edx + 0x40], 0x30
je 0x5c542a
mov eax, dword [esp + 0x1c]
mov ecx, eax
dec eax
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x5c542a
xor ebx, ebx
jmp 0x5c4df0
and dword [esi + 0xa0], 0xfffffffe
jmp 0x5c542a
push 2
push edi
call fcn.005c3350
mov edx, dword [esp + 0x38]
add esp, 8
pop ebp
mov dword [edx], 1
mov eax, 8
pop ebx
add esp, 0x1c
ret
mov ecx, dword [esi]
cmp ecx, dword [ebx + 0x10a80]
jne 0x5c5376
mov edx, dword [esi + 4]
cmp edx, dword [ebx + 0x10a84]
jne 0x5c5376
push 1
push edi
call fcn.005c3350
add esp, 8
mov eax, dword [esp + 0x30]
and dword [esi + 0xa0], 0xfffffffe
pop ebp
mov dword [eax], 1
xor eax, eax
pop ebx
add esp, 0x1c
ret
push str.HTTP_server_doesnt_seem_to_support_byte_ranges._Cannot_resume.
push ebx
call fcn.005bfec0
add esp, 8
pop ebp
mov eax, 0x21
pop ebx
add esp, 0x1c
ret
mov ecx, dword [esp + 0x30]
push 1
mov dword [ecx], 1
push edi
mov dword [ebx + 0x10ae8], 0x130
call fcn.005c3350
add esp, 8
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
cmp eax, 4
jne 0x5c53d4
push str.Failed_writing_data
push ebx
call fcn.005bfec0
add esp, 8
pop ebp
mov eax, 0x17
pop ebx
add esp, 0x1c
ret
push eax
call fcn.005d4450
push eax
push str._s_in_chunked_encoding
push ebx
call fcn.005bfec0
add esp, 0x10
pop ebp
mov eax, 0x38
pop ebx
add esp, 0x1c
ret
add dword [esi + 0x5c], ebp
mov edx, dword [edi + 0x310]
mov dword [esp + 8], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [edx + 0x34]
push edi
push eax
call ecx
add esp, 0x10
test eax, eax
jne 0x5c5469
cmp dword [esp + 0x10], eax
je 0x5c542a
or dword [esi + 0xa0], 1
cmp dword [esp + 0x1c], 0
jg 0x5c5445
mov edx, dword [esp + 0x34]
mov dword [edi + 0x558], 1
mov dword [edx], 1
mov eax, dword [esi + 0xa0]
mov ecx, eax
and cl, 3
cmp cl, 2
jne 0x5c5467
cmp dword [edi + 0x274], 0
je 0x5c5467
and eax, 0xfffffffd
mov dword [esi + 0xa0], eax
xor eax, eax
pop ebp
pop ebx
add esp, 0x1c
ret