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

Disassembly:
sub esp, 0x2c
push ebx
push esi
push edi
mov esi, 1
push ebp
mov dword [0x45f5c0], esi
call fcn.00412ac0
call fcn.0043dbb0
mov byte [0x4b64d0], 0
mov ecx, esi
call fcn.00445b20
call fcn.0043e7d0
mov ecx, esi
call fcn.00445b20
call fcn.0043e7d0
mov al, byte [0x4763e0]
test al, al
je 0x412bdf
push 0x4a9ac0
mov eax, dword [0x46bf0c]
push 0x100
push 0
push 0
mov ebx, dword [eax]
push eax
call dword [ebx + 0x18]
jmp 0x412be9
mov ecx, 0x412540
call fcn.00412720
call fcn.00430b00
mov al, byte [0x4b6450]
mov cl, byte [0x4b6449]
or al, cl
je 0x412c0c
xor ecx, ecx
mov cl, byte [0x4aa4a0]
call fcn.0042bf50
jmp 0x412c14
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 0x412c40
mov eax, dword [esp + 0x28]
cmp eax, 8
je 0x412c50
lea eax, [esp + 0x20]
push eax
call ebx
lea eax, [esp + 0x20]
push eax
call ebp
jmp 0x412c26
push closesocket
mov edi, dword [sym.imp.ADVAPI32.dll_RegFlushKey]
call edi
push closesocket
call edi
push reloc.WSOCK32.dll_bind
call edi
push reloc.WSOCK32.dll_closesocket
call edi
push getsockname
call edi
push reloc.WSOCK32.dll_getsockname
call edi
mov al, byte [0x4b6449]
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test al, al
je 0x412ccb
lea eax, [esp + 0x18]
push eax
call edi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
sub eax, ecx
mov ecx, dword [0x46bed0]
lea edx, [eax + eax*4]
lea eax, [edx + edx*4]
lea edx, [eax + eax*4]
lea ebx, [edx*8]
mov edx, dword [0x46bed4]
push edx
push ecx
push 0
push ebx
call fcn.00451b80
cmp eax, 0x42
jl 0x412c8f
mov ecx, dword [0x475fd0]
call fcn.00435fd0
mov eax, dword [0x46bed0]
mov ecx, dword [0x46bed4]
push 0
push 0x3c
push ecx
xor ebx, ebx
push eax
mov ebp, 0xffffffff
call fcn.00451b80
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
call fcn.00412b60
cmp byte [0x4b65d1], 0
mov ecx, 1
jne 0x412d10
mov ecx, esi
call fcn.0043dbf0
test eax, eax
jne 0x412dce
call fcn.0043e7d0
mov eax, dword [0x4763e4]
mov cl, byte [0x4b6450]
add eax, esi
test cl, cl
mov dword [0x4763e4], eax
je 0x412d71
xor eax, eax
mov ecx, dword [0x4a995c]
mov al, byte [0x464af0]
mov edx, dword [0x4b4520]
sub eax, ecx
add eax, edx
test eax, eax
jle 0x412d60
add dword [esp + 0x10], 0xffffffff
mov ecx, dword [esp + 0x14]
adc ecx, ebp
jmp 0x412d6d
jge 0x412d71
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 [0x4763d8]
mov esi, dword [0x4763dc]
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.00451b80
sub eax, dword [0x4763e4]
lea esi, [eax + 1]
test esi, esi
jle 0x412d71
mov al, byte [0x4b65d1]
test al, al
jne 0x412d07
cmp esi, 0x14
jle 0x412d00
mov esi, 0x14
jmp 0x412d00
mov al, byte [0x4b6450]
mov cl, byte [0x4b6449]
or al, cl
je 0x412df5
call fcn.0042c340
mov eax, dword [0x463224]
cmp eax, 0x184
jne 0x412df5
mov byte [0x4763e0], 1
mov al, byte [0x4763e0]
test al, al
je 0x412e19
push 0x475fd8
mov eax, dword [0x46bf0c]
push 0x100
push 0
push 0
mov ebx, dword [eax]
push eax
call dword [ebx + 0x18]
jmp 0x412e23
mov ecx, 0x412640
call fcn.00412720
mov dword [0x45f5c0], 0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x2c
ret