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

Disassembly:
sub esp, 0x330
mov eax, dword [0x100d95f0]
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 0x1004f07b
mov esi, dword [esp + 0x340]
xor eax, eax
cmp esi, edi
jbe 0x1004f07b
jmp 0x1004f070
cmp dword [ecx + eax*8], 0xffffffff
jne 0x1004f0c6
inc eax
cmp eax, esi
jb 0x1004f070
cmp edx, edi
je 0x1004f0ad
jge 0x1004f0a6
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.10088aee
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.10088aee
add esp, 0x330
ret
cmp edx, edi
jle 0x1004f0db
mov dword [esp + 8], edx
call fcn.100590a0
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 0x1004f1dd
movzx edx, word [eax + ebx*8 + 4]
test dl, 7
je 0x1004f1dd
cmp ecx, dword [esp + 0x18]
jbe 0x1004f12f
mov dword [esp + 0x18], ecx
test dl, 1
je 0x1004f161
xor eax, eax
test ebp, ebp
je 0x1004f14b
lea ebx, [ebx]
cmp dword [esp + eax*4 + 0x34], ecx
je 0x1004f14b
inc eax
cmp eax, ebp
jb 0x1004f140
cmp eax, ebp
jne 0x1004f161
cmp ebp, 0x40
jae 0x1004f161
mov dword [esp + eax*4 + 0x34], ecx
mov ebp, dword [esp + 0x30]
inc ebp
mov dword [esp + 0x30], ebp
test dl, 4
je 0x1004f19d
xor eax, eax
test edi, edi
je 0x1004f17e
lea esp, [esp]
cmp dword [esp + eax*4 + 0x138], ecx
je 0x1004f17e
inc eax
cmp eax, edi
jb 0x1004f170
cmp eax, edi
jne 0x1004f19d
cmp edi, 0x40
jae 0x1004f19d
mov dword [esp + eax*4 + 0x138], ecx
mov edi, dword [esp + 0x134]
inc edi
mov dword [esp + 0x134], edi
test dl, 2
je 0x1004f1dd
xor eax, eax
test esi, esi
je 0x1004f1be
jmp 0x1004f1b0
cmp dword [esp + eax*4 + 0x23c], ecx
je 0x1004f1be
inc eax
cmp eax, esi
jb 0x1004f1b0
cmp eax, esi
jne 0x1004f1dd
cmp esi, 0x40
jae 0x1004f1dd
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 0x1004f100
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 0x1004f245
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 0x1004f24b
jne 0x1004f24f
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 0x1004f2bd
call ebp
test eax, eax
je 0x1004f283
cmp dword [0x100dbf30], 0
jne 0x1004f2c1
cmp eax, 0x2714
jne 0x1004f2c1
cmp dword [esp + 0x14], 0
jle 0x1004f210
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
push eax
call fcn.100590a0
push edx
push eax
call fcn.100590d0
mov ecx, dword [esp + 0x24]
sub ecx, eax
add esp, 0x10
mov dword [esp + 0x10], ecx
test ecx, ecx
jg 0x1004f210
or eax, 0xffffffff
jmp 0x1004f341
test eax, eax
jns 0x1004f2c6
or eax, 0xffffffff
jmp 0x1004f341
jne 0x1004f2cc
xor eax, eax
jmp 0x1004f341
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 0x1004f339
lea edx, [esp + 0x30]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1004f300
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 0x1004f319
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 0x1004f332
or word [esi], 2
cmp word [esi], 0
je 0x1004f339
inc ebx
add esi, 8
dec edi
jne 0x1004f2e0
mov eax, ebx
mov ecx, dword [esp + 0x33c]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.10088aee
add esp, 0x330
ret