Function at 0x4102fe
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.00410164
lea eax, [edi + 0xbc]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [ebp + 8], 0
jl 0x4105db
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x16d8]
push eax
mov dword [esp + 0x14], eax
call fcn.0043a3d2
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x50]
pop ecx
xor ecx, ecx
sub eax, ecx
mov esi, 0x259
je 0x410580
dec eax
je 0x410369
dec eax
je 0x410397
dec eax
jne 0x4105a6
mov dword [esp + 0x14], ecx
call ebx
mov dword [esp + 0xc], eax
call ebx
push eax
mov eax, edi
call fcn.00410164
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, esi
jne 0x4104a4
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jmp 0x4104c0
mov dword [esp + 0xc], ecx
call ebx
mov dword [esp + 0x14], eax
call ebx
push eax
mov eax, edi
call fcn.00410164
mov ecx, dword [edi + 0x44]
lea eax, [esp + 0xc]
push eax
push dword [ebp + 8]
xor esi, esi
call fcn.0040810d
push eax
push dword [esp + 0x10]
push esi
jmp 0x410432
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.0040a259
test eax, eax
je 0x4105a6
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.00410164
mov ecx, dword [edi + 0x44]
lea eax, [esp + 0xc]
push eax
push dword [ebp + 8]
call fcn.0040810d
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.0043b4c0
mov esi, dword [edi + 0x4c]
push edx
push eax
call fcn.0041e28e
mov esi, eax
call ebx
push eax
mov eax, edi
call fcn.00410164
cmp esi, 0xc8
je 0x4103c5
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.0040a259
cmp eax, 1
jne 0x4105a6
mov esi, 0xc8
jmp 0x4105a6
xor ecx, ecx
push ecx
push dword [esp + 0x14]
cdq
push edx
push eax
call fcn.0043b4c0
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.0040810d
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.0043b4c0
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.00410164
mov eax, esi
push 0x64
cdq
pop ecx
idiv ecx
cmp eax, 2
jne 0x41055c
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.0040a259
test eax, eax
je 0x4105a6
inc dword [ebp + 8]
xor ecx, ecx
jmp 0x410369
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 0x410482
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.0040a259
push dword [esp + 8]
call fcn.0043b545
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.00410164
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