Function at 0x5bdb44
Capabilities:
Check for time delay via gettickcount
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0x5bdb4c
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5be6f2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0xc], eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
cmp eax, 0xc8
jbe 0x5bde8c
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], eax
xor eax, eax
push ebp
push 0x5bde3d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 4
push eax
call sub.kernel32.dll_EnterCriticalSection
xor eax, eax
push ebp
push 0x5bdd56
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x5bdd31
inc ebx
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
test esi, esi
je 0x5bdd27
mov eax, dword [ebp - 4]
call fcn.005c478c
test al, al
je 0x5bdcdd
mov eax, dword [0x6c0740]
mov eax, dword [eax]
call fcn.005ad32c
test al, al
jne 0x5bdcdd
push ebp
lea ecx, [ebp - 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
mov edx, esi
call fcn.004055f8
mov eax, dword [ebp - 0x3c]
pop edx
call fcn.005bcda8
pop ecx
test al, al
jne 0x5bdcdd
push ebp
mov eax, esi
call fcn.005bce94
pop ecx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x5bdd1b
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0xcac], 0xffffffff
jne 0x5bdca8
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x1088], 1
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x1081], 1
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x4828], 1
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x20]
add edx, 0x15
call fcn.004055f8
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ecx, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0x3c]
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov ecx, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ed8]
mov edx, dword [ebp - 0x20]
call fcn.0041fa54
jmp 0x5bdd1b
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.005c1944
mov edx, dword [esi + 0x7c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1edc]
call fcn.0041fa54
mov edx, dword [esi + 0x74]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ee0]
call fcn.0041fa54
mov edx, 0xacf9
mov eax, esi
call fcn.00402fb0
inc dword [ebp - 0x24]
dec ebx
jne 0x5bdbdb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bdd5d
mov eax, dword [ebp - 4]
add eax, 4
push eax
call sub.kernel32.dll_LeaveCriticalSection
ret
xor eax, eax
push ebp
push 0x5bdf3d
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x1ef8]
jbe 0x5bdf33
call sub.kernel32.dll_GetTickCount_1
add eax, 0xea60
mov edx, dword [ebp - 4]
mov dword [edx + 0x1ef8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
cmp eax, 0
jl 0x5bdf33
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x5bdef8
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x2e4], 0
je 0x5bdf08
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x48]
jmp 0x5bdf2a
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x2ec], 0
je 0x5bdf2a
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x50]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x48]
dec dword [ebp - 0x24]
cmp dword [ebp - 0x24], 0xffffffff
jne 0x5bded5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5bdf5c
xor eax, eax
push ebp
push 0x5be025
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x5be01b
inc ebx
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov edx, dword [ebp - 0x24]
call fcn.0041fbfc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x5be011
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x20]
sub eax, dword [edx + 0x2e8]
mov edx, dword [setsockopt]
cmp eax, dword [edx + 0x1aa8]
jbe 0x5be011
xor eax, eax
push ebp
push 0x5bdfe2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov edx, dword [ebp - 0x24]
call fcn.0041fbfc
call fcn.00404430
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5be001
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov edx, dword [ebp - 0x24]
call fcn.0041faa0
jmp 0x5be01b
inc dword [ebp - 0x24]
dec ebx
jne 0x5bdf84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5be044
mov byte [ebp - 0x15], 0
xor eax, eax
push ebp
push 0x5be63d
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 0x1c]
jle 0x5be625
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x5be61d
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
sub edx, dword [eax + 0x370]
mov eax, dword [ebp - 0x20]
cmp edx, dword [eax + 0x374]
jle 0x5be5f5
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x370], edx
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x2e4], 0
jne 0x5be48d
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x1088], 0
jne 0x5be120
xor eax, eax
push ebp
push 0x5be0fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x20]
call fcn.005e37a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5be5f5
xor eax, eax
push ebp
push 0x5be432
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x4829], 0
je 0x5be14e
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x4829], 0
mov eax, dword [ebp - 0x20]
call fcn.005e8ce8
jmp 0x5be1ba
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0xca8], 0
jne 0x5be16e
mov eax, dword [ebp - 0x20]
mov byte [eax + 0xca8], 1
mov eax, dword [ebp - 0x20]
call fcn.005e9254
jmp 0x5be1ba
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x20]
sub eax, dword [edx + 0x36c]
mov edx, dword [ebp - 0x20]
cmp eax, dword [edx + 0x368]
jbe 0x5be1ba
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x36c], eax
mov dword [ebp - 0x14], 0xa
mov eax, dword [ebp - 0x20]
call fcn.006015e0
mov dword [ebp - 0x14], 0xb
mov eax, dword [ebp - 0x20]
call fcn.005e4fdc
mov dword [ebp - 0x14], 0xc
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x20]
sub eax, dword [edx + 0x108c]
mov edx, dword [setsockopt]
cmp eax, dword [edx + 0x1a08]
jbe 0x5be3a6
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x108c], eax
mov eax, dword [0x6c0e30]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, dword [ebp - 0x20]
cmp eax, dword [edx + 0x1090]
jle 0x5be37b
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x6c]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x1090]
mov eax, dword [0x6c0e30]
mov eax, dword [eax]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x6c]
mov eax, dword [0x6c0a94]
mov eax, dword [eax]
mov edx, dword [ebp - 0x20]
call fcn.0062e904
mov dword [ebp - 0x14], 0xd
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
sub al, 0x42
je 0x5be2db
sub al, 5
je 0x5be29b
sub al, 0xb
je 0x5be25b
sub al, 2
je 0x5be318
jmp 0x5be361
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x5be272
mov eax, dword [ebp - 0x28]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
push 0
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x28]
dec ecx
mov edx, 2
mov eax, dword [ebp - 8]
call fcn.0040588c
mov edx, dword [ebp - 0x70]
xor ecx, ecx
mov eax, dword [ebp - 0x20]
call fcn.0060cf8c
jmp 0x5be37b
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x5be2b2
mov eax, dword [ebp - 0x2c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
push 0
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x2c]
dec ecx
mov edx, 2
mov eax, dword [ebp - 8]
call fcn.0040588c
mov edx, dword [ebp - 0x74]
mov cl, 1
mov eax, dword [ebp - 0x20]
call fcn.0060cf8c
jmp 0x5be37b
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x5be2f2
mov eax, dword [ebp - 0x30]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
push 0
lea eax, [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x30]
dec ecx
mov edx, 2
mov eax, dword [ebp - 8]
call fcn.0040588c
mov edx, dword [ebp - 0x78]
mov cl, 2
mov eax, dword [ebp - 0x20]
call fcn.0060cf8c
jmp 0x5be37b
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x5be32f
mov eax, dword [ebp - 0x34]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x34]
dec ecx
mov edx, 2
mov eax, dword [ebp - 8]
call fcn.0040588c
mov eax, dword [ebp - 0x7c]
push eax
mov cx, 0x14df
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
call fcn.00609fdc
jmp 0x5be37b
push 0
mov ecx, dword [setsockopt]
movzx ecx, byte [ecx + 0x1a0c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
call fcn.0060cf8c
mov eax, dword [ebp - 0x20]
inc dword [eax + 0x1090]
mov eax, dword [0x6c0e30]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, dword [ebp - 0x20]
cmp eax, dword [edx + 0x1090]
jg 0x5be3a6
mov eax, dword [ebp - 0x20]
xor edx, edx
mov dword [eax + 0x1090], edx
mov dword [ebp - 0x14], 0xe
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x4c]
mov dword [ebp - 0x14], 0xf
mov eax, dword [0x6c0740]
mov eax, dword [eax]
call fcn.005ad32c
test al, al
jne 0x5be425
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x20]
sub eax, dword [edx + 0x107c]
mov edx, dword [setsockopt]
cmp eax, dword [edx + 0x1aa4]
jbe 0x5be425
mov dword [ebp - 0x14], 0x10
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x107c], eax
mov dword [ebp - 0x14], 0x11
mov eax, dword [ebp - 0x20]
call fcn.005e46cc
mov dword [ebp - 0x14], 0x12
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.005c19ec
mov dword [ebp - 0x14], 0x13
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5be5f5
xor eax, eax
push ebp
push 0x5be4f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x35a4]
xor edx, edx
call fcn.00641330
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov dword [ebp - 0x14], 2
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x44]
mov dword [ebp - 0x14], 3
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0x4828], 0
je 0x5be4e6
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.005bcbf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5be54c
xor eax, eax
push ebp
push 0x5be5aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.005c1ae4
mov dword [ebp - 0x14], 4
mov eax, dword [ebp - 0x20]
call fcn.005e46cc
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.005c19ec
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xb94]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0xb9c]
mov eax, dword [0x6c12b8]
mov eax, dword [eax]
call fcn.0050d328
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5be067
inc dword [ebp - 0x1c]
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0xc]
mov edx, dword [0x6c101c]
cmp eax, dword [edx]
jbe 0x5be067
mov byte [ebp - 0x15], 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x60], edx
jmp 0x5be625
inc dword [ebp - 0x1c]
jmp 0x5be067
cmp byte [ebp - 0x15], 0
jne 0x5be633
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x60], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5be662
mov eax, dword [ebp - 4]
inc dword [eax + 0x64]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
mov edx, dword [0x6c0d68]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x60], 0
jne 0x5be68f
mov edx, dword [ebp - 4]
xor eax, eax
mov dword [edx + 0x64], eax
mov edx, dword [0x6c0d68]
mov dword [edx], eax
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0xc]
mov edx, dword [0x6c0a8c]
mov dword [edx], eax
mov eax, dword [0x6c0a18]
mov eax, dword [eax]
mov edx, dword [0x6c0a8c]
cmp eax, dword [edx]
jge 0x5be6bf
mov eax, dword [0x6c0a8c]
mov eax, dword [eax]
mov edx, dword [0x6c0a18]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5be6f9
lea eax, [ebp - 0x98]
mov edx, 0x10
call fcn.004053b8
lea eax, [ebp - 0x50]
mov edx, 7
call fcn.004053b8
lea eax, [ebp - 8]
call fcn.00405394
ret