Function at 0x413960
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x334
push ebp
push esi
push edi
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [ebx + 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 1
call fcn.00413000
mov eax, dword [eax + 0xa4]
cmp eax, edi
je 0x4139a0
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
add esp, 8
cmp dword [esp + 0x10], edi
je 0x413bd2
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xffffffffffffffff
mov esi, eax
sub esi, dword [esp + 0x20]
push 0xffffffffffffffff
lea eax, [ebx + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x413bc4
cmp esi, dword [esp + 0x344]
ja 0x413bc4
push 0x104
lea edx, [esp + 0x23c]
push edi
push edx
call fcn.004560e0
push 0x104
lea eax, [esp + 0x140]
push edi
push eax
call fcn.004560e0
push 0x104
lea ecx, [esp + 0x44]
push edi
push ecx
call fcn.004560e0
mov eax, dword [0x48ebc0]
mov esi, dword [ebx + 4]
add esp, 0x24
mov dword [esp + 0x238], edi
mov dword [esp + 0x130], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], 0xffffffff
cmp eax, edi
jne 0x413afc
push edi
push 1
push 0x48e758
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x413a9e
test byte [0x48e790], 1
jne 0x413a88
or dword [0x48e790], 1
push 0x48e798
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x475780
mov dword [0x48e7b0], edi
mov dword [0x48e7b4], edi
call fcn.00454158
add esp, 4
mov eax, 0x48e798
mov dword [0x48ebc0], eax
mov dword [0x48e758], 2
jmp 0x413afc
mov edx, dword [0x48e758]
cmp edx, 2
je 0x413abe
lea esp, [esp]
push 1
call ebp
mov eax, dword [0x48e758]
cmp eax, 2
jne 0x413ab0
test byte [0x48e790], 1
jne 0x413af2
or dword [0x48e790], 1
push 0x48e798
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x475780
mov dword [0x48e7b0], edi
mov dword [0x48e7b4], edi
call fcn.00454158
add esp, 4
mov eax, 0x48e798
mov dword [0x48ebc0], eax
mov eax, dword [eax + 0x98]
cmp eax, edi
je 0x413b26
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x138]
push ecx
lea edx, [esp + 0x244]
push edx
push esi
call eax
add esp, 0x14
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
jne 0x413b52
push 0x64
call ebp
mov esi, dword [ebx + 4]
call fcn.00413000
mov eax, dword [eax + 0xa4]
cmp eax, edi
je 0x413baa
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
add esp, 8
jmp 0x413baa
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x138]
push edx
lea ecx, [esp + 0x244]
push ecx
inc eax
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], 0x186a0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x413baa
mov esi, dword [ebx + 4]
call fcn.00413000
mov eax, dword [eax + 0xa4]
cmp eax, edi
je 0x413ba2
lea edx, [esp + 0x10]
push edx
push esi
call eax
add esp, 8
mov dword [esp + 0x18], 1
cmp dword [esp + 0x10], edi
jne 0x4139b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x334
ret 4
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x334
ret 4
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x334
ret 4