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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
call ebx
push eax
mov eax, edi
call fcn.0041011e
lea eax, [edi + 0xbc]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [ebp + 8], 0
jl 0x410595
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x16d8]
push eax
mov dword [esp + 0x14], eax
call fcn.0043a142
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x50]
pop ecx
xor ecx, ecx
sub eax, ecx
mov esi, 0x259
je 0x41053a
dec eax
je 0x410323
dec eax
je 0x410351
dec eax
jne 0x410560
mov dword [esp + 0x14], ecx
call ebx
mov dword [esp + 0xc], eax
call ebx
push eax
mov eax, edi
call fcn.0041011e
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, esi
jne 0x41045e
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jmp 0x41047a
mov dword [esp + 0xc], ecx
call ebx
mov dword [esp + 0x14], eax
call ebx
push eax
mov eax, edi
call fcn.0041011e
mov ecx, dword [edi + 0x44]
lea eax, [esp + 0xc]
push eax
push dword [ebp + 8]
xor esi, esi
call fcn.00407dd1
push eax
push dword [esp + 0x10]
push esi
jmp 0x4103ec
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
call ebx
sub eax, dword [esp + 0x14]
push edi
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0xc8], eax
lea eax, [esp + 0x2c]
push eax
push dword [edi + 0x44]
mov eax, 0x1411
call fcn.00409f0d
test eax, eax
je 0x410560
inc dword [ebp + 8]
and dword [esp + 0xc], 0
call ebx
mov dword [esp + 0x14], eax
call ebx
push eax
mov eax, edi
call fcn.0041011e
mov ecx, dword [edi + 0x44]
lea eax, [esp + 0xc]
push eax
push dword [ebp + 8]
call fcn.00407dd1
push eax
push dword [esp + 0x10]
xor ecx, ecx
push ecx
mov eax, dword [ebp + 8]
push dword [esp + 0x20]
cdq
push edx
push eax
call fcn.0043b230
mov esi, dword [edi + 0x4c]
push edx
push eax
call fcn.0041e24b
mov esi, eax
call ebx
push eax
mov eax, edi
call fcn.0041011e
cmp esi, 0xc8
je 0x41037f
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
lea eax, [esp + 0x18]
push edi
push eax
push dword [edi + 0x44]
mov eax, 0x1412
call fcn.00409f0d
cmp eax, 1
jne 0x410560
mov esi, 0xc8
jmp 0x410560
xor ecx, ecx
push ecx
push dword [esp + 0x14]
cdq
push edx
push eax
call fcn.0043b230
sub eax, 1
sbb edx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov eax, dword [edi + 0x48]
mov esi, dword [eax]
mov ecx, dword [edi + 0x44]
lea eax, [esp + 0x14]
push eax
push dword [ebp + 8]
call fcn.00407dd1
push eax
push dword [esp + 0x10]
mov eax, dword [ebp + 8]
push dword [esp + 0x28]
xor ecx, ecx
push dword [esp + 0x28]
cdq
push ecx
push dword [esp + 0x28]
push edx
push eax
call fcn.0043b230
mov ecx, dword [edi + 0x48]
push edx
push eax
call dword [esi + 8]
mov esi, eax
call ebx
push eax
mov eax, edi
call fcn.0041011e
mov eax, esi
push 0x64
cdq
pop ecx
idiv ecx
cmp eax, 2
jne 0x410516
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
call ebx
sub eax, dword [esp + 0xc]
push edi
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0xc8], eax
lea eax, [esp + 0x2c]
push eax
push dword [edi + 0x44]
mov eax, 0x1411
mov dword [esp + 0x40], esi
call fcn.00409f0d
test eax, eax
je 0x410560
inc dword [ebp + 8]
xor ecx, ecx
jmp 0x410323
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], esi
lea eax, [esp + 0x28]
jmp 0x41043c
mov eax, dword [ebp + 8]
mov dword [esp + 0x38], eax
push edi
lea eax, [esp + 0x3c]
push eax
push dword [edi + 0x44]
mov eax, 0x1412
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
call fcn.00409f0d
push dword [esp + 8]
call fcn.0043b2b5
pop ecx
push 0
lea eax, [edi + 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call ebx
push eax
mov eax, edi
call fcn.0041011e
mov eax, dword [edi + 0x44]
push edi
push esi
push 0x1413
push dword [eax]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8