Function at 0x411670
Capabilities:
Check for time delay via gettickcount
Terminate thread

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
mov edi, dword [esp + 0x34]
test ebp, ebp
mov eax, dword [edi + 0x40]
mov ebx, dword [edi + 0x34]
mov esi, dword [edi + 0x4c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], 0
jl 0x411812
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [esp + 0x38], eax
call edi
sub eax, dword [esp + 0x38]
cmp eax, ebp
jae 0x41170b
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x411742
cmp dword [esp + 0x34], 0x103
jne 0x4117a2
push 1
push 0
push 0
lea eax, [esp + 0x20]
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x411701
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
call edi
sub eax, dword [esp + 0x38]
cmp eax, ebp
jb 0x4116b2
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x4118f4
mov eax, ebx
xor edx, edx
shr eax, 4
div dword [esi + 0x20]
mov edx, dword [ecx + edx*4]
test edx, edx
je 0x4118f4
cmp dword [edx + 8], ebx
je 0x4117d9
mov edx, dword [edx]
test edx, edx
jne 0x41172b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x4118f4
mov eax, ebx
xor edx, edx
shr eax, 4
div dword [esi + 0x20]
mov edx, dword [ecx + edx*4]
test edx, edx
je 0x4118f4
cmp dword [edx + 8], ebx
je 0x411775
mov edx, dword [edx]
test edx, edx
jne 0x411762
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edx, edx
je 0x4118f4
mov edx, dword [edx + 0xc]
test edx, edx
je 0x4118f4
mov ecx, dword [edx + 0x5c]
test ecx, ecx
je 0x4118f4
mov eax, dword [ecx]
push 1
call dword [eax + 4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x4118f4
mov eax, ebx
xor edx, edx
shr eax, 4
div dword [esi + 0x20]
mov edx, dword [ecx + edx*4]
test edx, edx
je 0x4118f4
cmp dword [edx + 8], ebx
je 0x41188f
mov edx, dword [edx]
test edx, edx
jne 0x4117c2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edx, edx
je 0x4118f4
mov esi, dword [edx + 0xc]
test esi, esi
je 0x4118f4
mov eax, dword [esi + 0x40]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x4118f4
mov edx, dword [ecx]
push 1
call dword [edx + 4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
mov ecx, dword [edi + 0x40]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x411860
cmp dword [esp + 0x34], 0x103
jne 0x4118b0
push 1
push 0
push 0
lea edx, [esp + 0x20]
push 0
push edx
call ebp
test eax, eax
je 0x411818
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x411818
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x4118f4
mov eax, ebx
xor edx, edx
shr eax, 4
div dword [esi + 0x20]
mov edx, dword [ecx + edx*4]
test edx, edx
je 0x4118f4
cmp dword [edx + 8], ebx
je 0x41188f
mov edx, dword [edx]
test edx, edx
jne 0x41187c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edx, edx
je 0x4118f4
mov edx, dword [edx + 0xc]
test edx, edx
je 0x4118f4
mov ecx, dword [edx + 0x5c]
test ecx, ecx
je 0x4118f4
mov edx, dword [ecx]
push 1
call dword [edx + 4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x4118f4
mov eax, ebx
xor edx, edx
shr eax, 4
div dword [esi + 0x20]
mov edx, dword [ecx + edx*4]
test edx, edx
je 0x4118f4
cmp dword [edx + 8], ebx
je 0x4118db
mov edx, dword [edx]
test edx, edx
jne 0x4118c8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edx, edx
je 0x4118f4
mov edx, dword [edx + 0xc]
test edx, edx
je 0x4118f4
mov ecx, dword [edx + 0x5c]
test ecx, ecx
je 0x4118f4
mov eax, dword [ecx]
push 1
call dword [eax + 4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret