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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456f50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x444
push ebx
mov ebx, ecx
push esi
xor esi, esi
mov eax, dword [ebx + 0x14]
push edi
cmp eax, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ebx
je 0x406d78
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [0x475730]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push edx
push eax
push ecx
mov byte [ebp - 4], 2
call fcn.0044d090
cmp eax, esi
je 0x406db9
mov eax, dword [ebp - 0x20]
cmp eax, 3
je 0x406dc2
cmp eax, 0x100b
je 0x406dc2
push esi
call fcn.004080a0
add esp, 4
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
push eax
lea ecx, [ebx + 0x10]
mov dword [ebx + 0x20], edx
call fcn.0043bb38
mov ecx, dword [ebx + 0x20]
push 1
call fcn.0044d323
mov ecx, dword [ebx + 0x20]
push ebx
call fcn.00408230
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
push esi
push esi
push ecx
mov ecx, dword [ebx + 0x20]
push edx
call fcn.0044d2bc
mov edx, dword [ebp - 0x20]
mov edi, 0x100b
mov ecx, 0x20000000
cmp edx, edi
mov dword [ebx + 0x28], eax
mov dword [ebp + 0xc], ecx
jne 0x406e18
mov ecx, 0x2080f000
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x1c]
push esi
push esi
push 1
push esi
push ecx
push edx
mov ecx, eax
call fcn.0044dcad
mov ecx, dword [ebp - 0x20]
mov dword [ebx + 0x24], eax
cmp ecx, edi
jne 0x406e61
lea ecx, [ebp + 0xc]
push ecx
push 0x1f
mov ecx, eax
call fcn.0044d448
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x24]
push esi
lea edx, [ebp + 0x14]
push 4
or ah, 1
push edx
push 0x1f
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x14], eax
call fcn.0044d46a
mov eax, dword [ebp + 0x1c]
push eax
mov dword [ebx + 0xc], eax
call fcn.0043b6f0
mov ecx, dword [ebx + 0xc]
mov esi, dword [ebp + 0x18]
mov dword [ebx + 8], eax
mov edi, eax
mov eax, ecx
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x406ef9
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
push edi
push ebx
push 0x407070
push edi
push edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x2c], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 0x20]
mov dword [ebx + 0x14], eax
cmp ecx, edi
je 0x406fad
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [ebx + 4], eax
push 1
push 0
push 0
lea ecx, [ebp - 0x50]
push 0
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x406f5f
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov ecx, dword [ebx + 0x14]
push 0xa
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x406fed
mov eax, dword [ebx + 4]
test eax, eax
je 0x406f35
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 0x18]
sub eax, edx
cmp eax, ecx
jbe 0x406f35
mov edx, dword [ebx + 0x14]
push 0
push edx
call esi
mov ecx, ebx
call fcn.00406c90
mov ecx, dword [ebx + 0x20]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebx + 4], 0
mov edi, 1
jmp 0x406f35
mov ecx, dword [ebx + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
push eax
call esi
cmp eax, 0x102
jne 0x406fdf
mov ecx, ebx
call fcn.00406c90
mov ecx, dword [ebx + 0x20]
mov edx, dword [ecx]
call dword [edx + 0xc]
mov eax, dword [ebx + 0x14]
push 0xffffffffffffffff
push eax
call esi
mov edi, 1
jmp 0x406fed
mov edx, dword [ebx + 0x14]
lea ecx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40702e
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40702e
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x14], 0xffffffff
test eax, eax
je 0x407020
mov edx, dword [ecx]
push 0x47038c
push 7
push 4
call dword [edx + 0x14]
jmp 0x40702e
mov eax, dword [ecx]
push 0x47037c
push 7
push 4
call dword [eax + 0x14]
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
mov dword [ebx + 0x14], 0
mov byte [ebp - 4], 0
call fcn.0043b9af
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0043b9af
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x1c