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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x494ce8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x320], ecx
mov dword [ebp - 0x314], edx
mov dword [ebp - 0x328], edi
mov dword [ebp - 0x324], edi
mov dword [ebp - 0x318], edi
cmp ecx, edi
je 0x42c9e3
mov esi, dword [ebp + 0xc]
xor eax, eax
cmp esi, edi
jbe 0x42c9e3
cmp dword [ecx + eax*8], 0xffffffff
jne 0x42ca20
inc eax
cmp eax, esi
jb 0x42c9d8
cmp edx, edi
je 0x42ca0e
jge 0x42ca07
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d571
mov esp, ebp
pop ebp
ret
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d571
mov esp, ebp
pop ebp
ret
cmp edx, edi
jle 0x42ca3b
mov dword [ebp - 0x318], edx
call fcn.004344b0
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x324], edx
xor esi, esi
push ebx
xor ebx, ebx
mov dword [ebp - 0x108], edi
mov dword [ebp - 0x310], edi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x31c], 0xffffffff
mov dword [ebp - 0x32c], ebx
mov eax, dword [ebp - 0x320]
xor ecx, ecx
mov word [eax + ebx*8 + 6], cx
mov ecx, dword [eax + ebx*8]
cmp ecx, 0xffffffff
je 0x42cb4b
movzx edx, word [eax + ebx*8 + 4]
test dl, 7
je 0x42cb4b
cmp ecx, dword [ebp - 0x31c]
jbe 0x42ca97
mov dword [ebp - 0x31c], ecx
test dl, 1
je 0x42cada
mov ebx, dword [ebp - 0x108]
xor eax, eax
test ebx, ebx
je 0x42cabe
jmp 0x42cab0
cmp dword [ebp + eax*4 - 0x104], ecx
je 0x42cabe
inc eax
cmp eax, ebx
jb 0x42cab0
cmp eax, ebx
jne 0x42cad4
cmp ebx, 0x40
jae 0x42cad4
mov dword [ebp + eax*4 - 0x104], ecx
inc dword [ebp - 0x108]
mov ebx, dword [ebp - 0x32c]
test dl, 4
je 0x42cb10
xor eax, eax
test edi, edi
je 0x42caf3
cmp dword [ebp + eax*4 - 0x30c], ecx
je 0x42caf3
inc eax
cmp eax, edi
jb 0x42cae5
cmp eax, edi
jne 0x42cb10
cmp edi, 0x40
jae 0x42cb10
mov dword [ebp + eax*4 - 0x30c], ecx
mov edi, dword [ebp - 0x310]
inc edi
mov dword [ebp - 0x310], edi
test dl, 2
je 0x42cb4b
xor eax, eax
test esi, esi
je 0x42cb2e
jmp 0x42cb20
cmp dword [ebp + eax*4 - 0x208], ecx
je 0x42cb2e
inc eax
cmp eax, esi
jb 0x42cb20
cmp eax, esi
jne 0x42cb4b
cmp esi, 0x40
jae 0x42cb4b
mov dword [ebp + eax*4 - 0x208], ecx
mov esi, dword [ebp - 0x20c]
inc esi
mov dword [ebp - 0x20c], esi
inc ebx
mov dword [ebp - 0x32c], ebx
cmp ebx, dword [ebp + 0xc]
jb 0x42ca62
mov ebx, dword [ebp - 0x31c]
mov edi, dword [sym.imp.WS2_32.dll_select]
xor edx, edx
cmp dword [ebp - 0x314], edx
lea eax, [ebp - 0x334]
setl dl
lea esi, [edx - 1]
and esi, eax
inc ebx
mov edi, edi
mov eax, dword [ebp - 0x314]
xor ecx, ecx
cmp eax, ecx
jle 0x42cbbd
mov ecx, dword [ebp - 0x318]
mov eax, 0x10624dd3
imul dword [ebp - 0x318]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x334], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
jmp 0x42cbc5
jne 0x42cbcb
mov dword [ebp - 0x334], ecx
mov dword [ebp - 0x330], ecx
push esi
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x108]
push ecx
push ebx
call edi
cmp eax, 0xffffffff
jne 0x42cc4e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x42cbfa
cmp eax, 0x2714
jne 0x42cc52
cmp dword [ebp - 0x314], 0
jle 0x42cb80
mov edx, dword [ebp - 0x324]
mov eax, dword [ebp - 0x328]
push edx
push eax
call fcn.004344b0
push edx
push eax
call fcn.004344e0
mov ecx, dword [ebp - 0x314]
sub ecx, eax
add esp, 0x10
mov dword [ebp - 0x318], ecx
test ecx, ecx
jg 0x42cb80
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d571
mov esp, ebp
pop ebp
ret
test eax, eax
jns 0x42cc66
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d571
mov esp, ebp
pop ebp
ret
jne 0x42cc7b
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d571
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x320]
mov edi, dword [ebp + 0xc]
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 0x42cce9
lea edx, [ebp - 0x108]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42ccb2
or word [esi], 1
mov ecx, dword [esi - 6]
lea eax, [ebp - 0x310]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42ccca
or word [esi], 4
mov eax, dword [esi - 6]
lea edx, [ebp - 0x20c]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42cce2
or word [esi], 2
cmp word [esi], 0
je 0x42cce9
inc ebx
add esi, 8
dec edi
jne 0x42cc90
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0045d571
mov esp, ebp
pop ebp
ret