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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x364
push esi
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00542560
add esp, 0xc
test eax, eax
jne 0x5b141e
mov eax, dword [ebp + 0xc]
push eax
call fcn.00542b10
add esp, 4
mov dword [ebp - 0x32c], eax
mov dword [ebp - 0x114], 0xffffffff
mov dword [ebp - 0x338], 0
cmp dword [ebp - 0x32c], 0x2733
je 0x5b109e
cmp dword [ebp - 0x32c], 0x2734
je 0x5b109e
mov eax, 0xfffffff1
jmp 0x5b1420
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00542ae0
add esp, 4
mov dword [ebp - 0x114], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x13c]
and eax, 0x24
jne 0x5b10ef
mov word [ebp - 0x33c], 1
mov word [ebp - 0x33a], 0
push 4
lea ecx, [ebp - 0x33c]
push ecx
push 0x80
push 0xffff
mov edx, dword [ebp - 0x114]
push edx
call fcn.005446c0
mov eax, dword [ebp + 0x10]
push eax
call fcn.00538720
add esp, 4
mov dword [ebp - 0x338], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xd4]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x334], ecx
mov dword [ebp - 0x330], 0
mov edx, 1
test edx, edx
je 0x5b140e
mov dword [ebp - 0x110], 0
cmp dword [ebp - 0x110], 0x40
jae 0x5b116d
mov eax, dword [ebp - 0x110]
mov ecx, dword [ebp - 0x114]
mov dword [ebp + eax*4 - 0x10c], ecx
mov edx, dword [ebp - 0x110]
add edx, 1
mov dword [ebp - 0x110], edx
xor eax, eax
jne 0x5b1142
mov dword [ebp - 0x328], 0
mov dword [ebp - 0x220], 0
cmp dword [ebp - 0x220], 0x40
jae 0x5b11b0
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x114]
mov dword [ebp + ecx*4 - 0x21c], edx
mov eax, dword [ebp - 0x220]
add eax, 1
mov dword [ebp - 0x220], eax
xor ecx, ecx
jne 0x5b1185
lea edx, [ebp - 0x334]
push edx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x328]
push edx
push 0
call fcn.00544550
mov dword [ebp - 0x340], eax
cmp dword [ebp - 0x340], 0
jle 0x5b12ce
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.00544470
test eax, eax
je 0x5b12ab
mov dword [ebp - 0x348], 0
mov dword [ebp - 0x344], 4
lea edx, [ebp - 0x344]
push edx
lea eax, [ebp - 0x348]
push eax
push 0x1007
push 0xffff
mov ecx, dword [ebp - 0x114]
push ecx
call sub.WSOCK32.dll_getsockopt
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0
je 0x5b1263
mov eax, 1
test eax, eax
je 0x5b1263
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 0x34c], edx
jmp 0x5b126d
mov dword [ebp - 0x34c], 0xfffffff1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x34c]
mov dword [eax + 0x80], ecx
push 0
push 0xff
mov edx, dword [ebp - 0x338]
push edx
mov eax, dword [ebp - 0x348]
push eax
push 0xa
push 0xfffffffffffffff1
mov ecx, dword [ebp + 8]
push ecx
call fcn.0052cd20
add esp, 0x1c
mov eax, 0xfffffff1
jmp 0x5b1420
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x114]
push eax
call fcn.00544470
test eax, eax
je 0x5b12c9
xor eax, eax
jmp 0x5b1420
jmp 0x5b1409
cmp dword [ebp - 0x340], 0
jne 0x5b139c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
sub eax, dword [ebp - 8]
sbb ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0xd4]
mov edx, dword [edx + 0x1c]
imul edx, edx, 0x3cf
xor esi, esi
mov dword [ebp - 0x354], eax
mov dword [ebp - 0x350], ecx
mov dword [ebp - 0x35c], edx
mov dword [ebp - 0x358], esi
mov eax, dword [ebp - 0x350]
cmp eax, dword [ebp - 0x358]
jl 0x5b139a
jg 0x5b1333
mov ecx, dword [ebp - 0x354]
cmp ecx, dword [ebp - 0x35c]
jbe 0x5b139a
mov edx, dword [ebp + 8]
cmp dword [edx + 0x80], 0
je 0x5b1354
xor eax, eax
je 0x5b1354
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 0x360], edx
jmp 0x5b135e
mov dword [ebp - 0x360], 0xffffffa0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x360]
mov dword [eax + 0x80], ecx
push 0
push 0xff
mov edx, dword [ebp - 0x338]
push edx
push 0
push 0x1eb
push 0xffffffffffffffa0
mov eax, dword [ebp + 8]
push eax
call fcn.0052cd20
add esp, 0x1c
mov eax, 0xffffffa0
jmp 0x5b1420
jmp 0x5b1409
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x5b13c2
mov edx, 1
test edx, edx
je 0x5b13c2
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x364], ecx
jmp 0x5b13cc
mov dword [ebp - 0x364], 0xfffffff1
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x364]
mov dword [edx + 0x80], eax
push 0
push 0xff
mov ecx, dword [ebp - 0x338]
push ecx
call fcn.00544440
push eax
push 0x2730
push 0xfffffffffffffff1
mov edx, dword [ebp + 8]
push edx
call fcn.0052cd20
add esp, 0x1c
mov eax, 0xfffffff1
jmp 0x5b1420
jmp 0x5b112b
cmp dword [ebp - 0x114], 0xffffffff
jne 0x5b141e
mov eax, 0xffffffc7
jmp 0x5b1420
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret