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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b26a0
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 0x407b98
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 [0x4e641c]
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.004a784c
cmp eax, esi
je 0x407bd9
mov eax, dword [ebp - 0x20]
cmp eax, 3
je 0x407be2
cmp eax, 0x100b
je 0x407be2
push esi
call fcn.00408f90
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.00491b55
mov ecx, dword [ebx + 0x20]
push 1
call fcn.004a7adf
mov ecx, dword [ebx + 0x20]
push ebx
call fcn.00409120
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.004a7a78
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 0x407c38
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.004a8469
mov ecx, dword [ebp - 0x20]
mov dword [ebx + 0x24], eax
cmp ecx, edi
jne 0x407c81
lea ecx, [ebp + 0xc]
push ecx
push 0x1f
mov ecx, eax
call fcn.004a7c04
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.004a7c26
mov eax, dword [ebp + 0x1c]
push eax
mov dword [ebx + 0xc], eax
call fcn.0049170d
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 0x407d19
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
push edi
push ebx
push 0x407e90
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 0x407dcd
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 0x407d7f
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 0x407e0d
mov eax, dword [ebx + 4]
test eax, eax
je 0x407d55
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 0x18]
sub eax, edx
cmp eax, ecx
jbe 0x407d55
mov edx, dword [ebx + 0x14]
push 0
push edx
call esi
mov ecx, ebx
call fcn.00407ab0
mov ecx, dword [ebx + 0x20]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebx + 4], 0
mov edi, 1
jmp 0x407d55
mov ecx, dword [ebx + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
push eax
call esi
cmp eax, 0x102
jne 0x407dff
mov ecx, ebx
call fcn.00407ab0
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 0x407e0d
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 0x407e4e
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x407e4e
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x14], 0xffffffff
test eax, eax
je 0x407e40
mov edx, dword [ecx]
push 0x4dc7bc
push 7
push 4
call dword [edx + 0x14]
jmp 0x407e4e
mov eax, dword [ecx]
push 0x4dc7ac
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.004919cc
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.004919cc
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