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

Disassembly:
sub esp, 0x330
mov eax, dword [0x5b4a28]
xor eax, esp
mov dword [esp + 0x32c], eax
mov ecx, dword [esp + 0x334]
mov edx, dword [esp + 0x33c]
push esi
push edi
xor edi, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 8], edi
cmp ecx, edi
je 0x481b7b
mov esi, dword [esp + 0x340]
xor eax, eax
cmp esi, edi
jbe 0x481b7b
jmp 0x481b70
cmp dword [ecx + eax*8], 0xffffffff
jne 0x481bc6
inc eax
cmp eax, esi
jb 0x481b70
cmp edx, edi
je 0x481bad
jge 0x481ba6
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x32c]
xor ecx, esp
call fcn.004b2f5a
add esp, 0x330
ret
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x32c]
xor ecx, esp
call fcn.004b2f5a
add esp, 0x330
ret
cmp edx, edi
jle 0x481bdb
mov dword [esp + 8], edx
call fcn.00482820
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
push ebx
push ebp
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x134], edi
mov dword [esp + 0x238], esi
mov dword [esp + 0x18], 0xffffffff
xor ebx, ebx
lea ecx, [ecx]
mov eax, dword [esp + 0x24]
xor ecx, ecx
mov word [eax + ebx*8 + 6], cx
mov ecx, dword [eax + ebx*8]
cmp ecx, 0xffffffff
je 0x481cdd
movzx edx, word [eax + ebx*8 + 4]
test dl, 7
je 0x481cdd
cmp ecx, dword [esp + 0x18]
jbe 0x481c2f
mov dword [esp + 0x18], ecx
test dl, 1
je 0x481c61
xor eax, eax
test ebp, ebp
je 0x481c4b
lea ebx, [ebx]
cmp dword [esp + eax*4 + 0x34], ecx
je 0x481c4b
inc eax
cmp eax, ebp
jb 0x481c40
cmp eax, ebp
jne 0x481c61
cmp ebp, 0x40
jae 0x481c61
mov dword [esp + eax*4 + 0x34], ecx
mov ebp, dword [esp + 0x30]
inc ebp
mov dword [esp + 0x30], ebp
test dl, 4
je 0x481c9d
xor eax, eax
test edi, edi
je 0x481c7e
lea esp, [esp]
cmp dword [esp + eax*4 + 0x138], ecx
je 0x481c7e
inc eax
cmp eax, edi
jb 0x481c70
cmp eax, edi
jne 0x481c9d
cmp edi, 0x40
jae 0x481c9d
mov dword [esp + eax*4 + 0x138], ecx
mov edi, dword [esp + 0x134]
inc edi
mov dword [esp + 0x134], edi
test dl, 2
je 0x481cdd
xor eax, eax
test esi, esi
je 0x481cbe
jmp 0x481cb0
cmp dword [esp + eax*4 + 0x23c], ecx
je 0x481cbe
inc eax
cmp eax, esi
jb 0x481cb0
cmp eax, esi
jne 0x481cdd
cmp esi, 0x40
jae 0x481cdd
mov dword [esp + eax*4 + 0x23c], ecx
mov esi, dword [esp + 0x238]
inc esi
mov dword [esp + 0x238], esi
inc ebx
cmp ebx, dword [esp + 0x348]
jb 0x481c00
mov ebx, dword [esp + 0x18]
mov edi, dword [sym.imp.WS2_32.dll_select]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor edx, edx
cmp dword [esp + 0x14], edx
lea eax, [esp + 0x28]
setl dl
lea esi, [edx - 1]
and esi, eax
inc ebx
mov edi, edi
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp eax, ecx
jle 0x481d45
mov ecx, dword [esp + 0x10]
mov eax, 0x10624dd3
imul dword [esp + 0x10]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x28], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
jmp 0x481d4b
jne 0x481d4f
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
push esi
lea edx, [esp + 0x23c]
push edx
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebx
call edi
cmp eax, 0xffffffff
jne 0x481dbd
call ebp
test eax, eax
je 0x481d83
cmp dword [0x5c2f90], 0
jne 0x481dc1
cmp eax, 0x2714
jne 0x481dc1
cmp dword [esp + 0x14], 0
jle 0x481d10
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
push eax
call fcn.00482820
push edx
push eax
call fcn.00482850
mov ecx, dword [esp + 0x24]
sub ecx, eax
add esp, 0x10
mov dword [esp + 0x10], ecx
test ecx, ecx
jg 0x481d10
or eax, 0xffffffff
jmp 0x481e41
test eax, eax
jns 0x481dc6
or eax, 0xffffffff
jmp 0x481e41
jne 0x481dcc
xor eax, eax
jmp 0x481e41
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x348]
xor ebx, ebx
add esi, 6
lea esp, [esp]
mov eax, dword [esi - 6]
xor ecx, ecx
mov word [esi], cx
cmp eax, 0xffffffff
je 0x481e39
lea edx, [esp + 0x30]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x481e00
or word [esi], 1
mov ecx, dword [esi - 6]
lea eax, [esp + 0x134]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x481e19
or word [esi], 4
mov eax, dword [esi - 6]
lea edx, [esp + 0x238]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x481e32
or word [esi], 2
cmp word [esi], 0
je 0x481e39
inc ebx
add esi, 8
dec edi
jne 0x481de0
mov eax, ebx
mov ecx, dword [esp + 0x33c]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.004b2f5a
add esp, 0x330
ret