Function at 0x4163d0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 0x2c
push ebx
push esi
push edi
mov esi, 1
push ebp
mov dword [0x466680], esi
call fcn.00416310
call fcn.00442dd0
mov byte [0x4c5bd0], 0
mov ecx, esi
call fcn.0044b2e0
call fcn.004439f0
mov ecx, esi
call fcn.0044b2e0
call fcn.004439f0
mov al, byte [0x482b68]
test al, al
je 0x41642f
push 0x4b8030
mov eax, dword [0x475424]
push 0x100
push 0
push 0
mov ebx, dword [eax]
push eax
call dword [ebx + 0x18]
jmp 0x416439
mov ecx, 0x415d90
call fcn.00415f70
call fcn.00435da0
mov al, byte [0x4c5b00]
mov cl, byte [0x4c5af9]
or al, cl
je 0x41645c
xor ecx, ecx
mov cl, byte [0x4b8a10]
call fcn.004309f0
jmp 0x416464
push 8
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x20]
push 0
push 0
push 0
push eax
call edi
test eax, eax
jne 0x416490
mov eax, dword [esp + 0x28]
cmp eax, 8
je 0x4164a0
lea eax, [esp + 0x20]
push eax
call ebx
lea eax, [esp + 0x20]
push eax
call ebp
jmp 0x416476
push connect
mov edi, dword [sym.imp.ADVAPI32.dll_RegFlushKey]
call edi
push connect
call edi
push reloc.WSOCK32.dll_bind
call edi
push reloc.WSOCK32.dll_closesocket
call edi
push htonl
call edi
push reloc.WSOCK32.dll_getsockname
call edi
mov al, byte [0x4c5af9]
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test al, al
je 0x41651b
lea eax, [esp + 0x18]
push eax
call edi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
sub eax, ecx
mov ecx, dword [0x4753e8]
lea edx, [eax + eax*4]
lea eax, [edx + edx*4]
lea edx, [eax + eax*4]
lea ebx, [edx*8]
mov edx, dword [0x4753ec]
push edx
push ecx
push 0
push ebx
call fcn.00457500
cmp eax, 0x42
jl 0x4164df
mov ecx, dword [0x482758]
call fcn.0043b270
mov eax, dword [0x4753e8]
mov ecx, dword [0x4753ec]
push 0
push 0x3c
push ecx
xor ebx, ebx
push eax
mov ebp, 0xffffffff
call fcn.00457500
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
call fcn.004163b0
cmp byte [0x4c5cd1], 0
mov ecx, 1
jne 0x416560
mov ecx, esi
call fcn.00442e10
test eax, eax
jne 0x41661e
call fcn.004439f0
mov eax, dword [0x482b6c]
mov cl, byte [0x4c5b00]
add eax, esi
test cl, cl
mov dword [0x482b6c], eax
je 0x4165c1
xor eax, eax
mov ecx, dword [0x4b7ecc]
mov al, byte [0x46ddd8]
mov edx, dword [0x4c3990]
sub eax, ecx
add eax, edx
test eax, eax
jle 0x4165b0
add dword [esp + 0x10], 0xffffffff
mov ecx, dword [esp + 0x14]
adc ecx, ebp
jmp 0x4165bd
jge 0x4165c1
add dword [esp + 0x10], 1
mov ecx, dword [esp + 0x14]
adc ecx, ebx
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x18]
push eax
call edi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x482b60]
mov esi, dword [0x482b64]
sub eax, edx
mov edx, dword [esp + 0x10]
sbb ecx, esi
mov esi, dword [esp + 0x14]
push esi
push edx
push ecx
push eax
call fcn.00457500
sub eax, dword [0x482b6c]
lea esi, [eax + 1]
test esi, esi
jle 0x4165c1
mov al, byte [0x4c5cd1]
test al, al
jne 0x416557
cmp esi, 0x14
jle 0x416550
mov esi, 0x14
jmp 0x416550
mov al, byte [0x4c5b00]
mov cl, byte [0x4c5af9]
or al, cl
je 0x416645
call fcn.00430e00
mov eax, dword [0x46c4cc]
cmp eax, 0x184
jne 0x416645
mov byte [0x482b68], 1
mov al, byte [0x482b68]
test al, al
je 0x416669
push 0x482760
mov eax, dword [0x475424]
push 0x100
push 0
push 0
mov ebx, dword [eax]
push eax
call dword [ebx + 0x18]
jmp 0x416673
mov ecx, 0x415e90
call fcn.00415f70
mov dword [0x466680], 0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x2c
ret