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

Disassembly:
push ebp
lea ebp, [esp - 0x29c]
sub esp, 0x31c
mov eax, dword [0x42ea70]
xor eax, ebp
mov dword [ebp + 0x298], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0xc], 0
jne 0x40d72d
mov eax, dword [0x430520]
cmp eax, 3
je 0x40d72d
test eax, eax
je 0x40d72d
push esi
push edi
xor eax, eax
push 0xfe
push eax
mov word [ebp + 0x198], ax
lea eax, [ebp + 0x19a]
push eax
call fcn.004140e0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
call esi
sub eax, dword [0x430540]
mov edi, 0x3e8
xor edx, edx
mov ecx, edi
div ecx
mov dword [ebp - 0x6c], eax
call esi
sub eax, dword [0x430544]
xor edx, edx
div edi
and dword [0x430548], 0
mov edi, 0x430524
push edi
mov dword [ebp - 0x78], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [ebx + 0x230]
mov eax, dword [esi + 0x14]
push esi
push dword [eax]
lea ecx, [ebp - 0x74]
call fcn.0040cd6b
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x70]
push esi
push dword [esi + 0x14]
mov dword [ebp - 0x7c], eax
jmp 0x40d5ec
lea ecx, [ebp - 0x80]
call fcn.0040cd02
mov eax, dword [eax + 4]
add dword [0x430548], eax
lea ecx, [ebp - 0x80]
call fcn.0040c4fb
push esi
push dword [esi + 0x14]
lea ecx, [ebp - 0x74]
call fcn.0040cd6b
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x80]
call fcn.0040c4a5
test al, al
je 0x40d5cf
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x430958]
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
test eax, eax
jle 0x40d63c
cmp eax, 0xffffffff
je 0x40d63c
push eax
push dword [0x430548]
push 0x64
call esi
mov ecx, dword [0x430958]
mov edi, eax
mov eax, dword [ebx + 0x24c]
mov dword [eax], ecx
jmp 0x40d63e
xor edi, edi
mov eax, dword [0x430548]
test eax, eax
jbe 0x40d689
lea ecx, [ebp + 0x98]
push ecx
push eax
call fcn.0040b29c
cmp dword [ebp - 0x6c], 1
pop ecx
pop ecx
jbe 0x40d699
lea eax, [ebp + 0x198]
push eax
mov eax, dword [0x430548]
xor edx, edx
div dword [ebp - 0x6c]
push eax
call fcn.0040b29c
pop ecx
pop ecx
push str._sec
lea eax, [ebp + 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x40d699
xor eax, eax
mov word [ebp + 0x198], ax
mov word [ebp + 0x98], ax
mov eax, dword [ebp - 0x78]
push 0x3c
pop ecx
xor edx, edx
div ecx
push edx
xor edx, edx
div ecx
mov eax, dword [ebp - 0x78]
mov ecx, 0xe10
push edx
xor edx, edx
div ecx
push eax
lea eax, [ebp - 0x68]
push str._d:_02d:_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [0x430958]
add esp, 0x14
test eax, eax
jle 0x40d705
cmp eax, 0xffffffff
je 0x40d705
lea ecx, [ebp - 0x68]
push ecx
push eax
call fcn.0040b29c
mov eax, dword [0x430548]
pop ecx
pop ecx
cmp eax, 0x1388
jbe 0x40d6ff
mov ecx, dword [0x430958]
push eax
push dword [ebp - 0x6c]
sub ecx, eax
push ecx
call esi
jmp 0x40d705
xor eax, eax
mov word [ebp - 0x68], ax
mov eax, dword [ebx]
xor ecx, ecx
cmp dword [0x430958], 0xffffffff
setne cl
push ecx
push edi
lea ecx, [ebp + 0x98]
push ecx
lea ecx, [ebp + 0x198]
push ecx
lea ecx, [ebx + 0x10]
push ecx
mov ecx, ebx
call dword [eax]
pop edi
pop esi
mov ecx, dword [ebp + 0x298]
xor ecx, ebp
pop ebx
call fcn.004144c5
add ebp, 0x29c
leave
ret