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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45c3b0
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x406369
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret 4
push ebp
lea eax, [esp + 0x10]
push edi
push eax
push ebx
push esi
push 0x406b30
push ebx
push ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x3c]
push ebx
push eax
lea ecx, [esp + 0x2c]
call fcn.004243f6
mov eax, dword [esp + 0x5c]
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x54], ebx
je 0x40652d
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edi, eax
push 1
push ebx
push ebx
lea ecx, [esp + 0x3c]
push ebx
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x406464
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [esp + 0x34], 0x12
jne 0x406464
mov ecx, dword [esi + 0x34]
cmp ecx, ebx
je 0x406404
mov edx, dword [ecx]
call dword [edx + 0x4c]
mov ecx, dword [esi + 0x34]
cmp ecx, ebx
je 0x406401
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x34], ebx
mov ecx, dword [esi + 0x38]
cmp ecx, ebx
je 0x406421
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [esi + 0x38]
cmp ecx, ebx
je 0x40641e
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x406434
push eax
call fcn.0044f31a
add esp, 4
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x40644d
push eax
call fcn.0044f31a
add esp, 4
mov dword [esi + 0x10], ebx
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x30], ebx
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x18]
mov dword [esi + 0x14], ebx
call fcn.0044ed8c
mov dword [esi + 0x20], ebx
mov edx, dword [esi + 0x1c]
push 0xa
push edx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, ebx
je 0x406588
cmp eax, 0xffffffff
je 0x406588
cmp dword [esi + 0x20], ebx
je 0x4063b2
cmp edi, ebx
je 0x4063b2
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [esi + 0x20]
sub eax, edi
cmp eax, ecx
jbe 0x4063b2
lea eax, [esi + 0x3c]
push ebx
push eax
lea ecx, [esp + 0x20]
call fcn.004243f6
push ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 1
call fcn.0042441d
test eax, eax
jne 0x4064da
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], bl
call fcn.00424432
xor edi, edi
jmp 0x4063b2
mov ecx, dword [esi + 0x34]
cmp ecx, ebx
je 0x4064f7
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov ecx, dword [esi + 0x34]
cmp ecx, ebx
je 0x4064f4
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x34], ebx
mov ecx, dword [esi + 0x38]
cmp ecx, ebx
je 0x406514
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esi + 0x38]
cmp ecx, ebx
je 0x406511
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x38], ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], bl
call fcn.00424432
xor edi, edi
mov ebp, 1
jmp 0x4063b2
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
mov edi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push eax
push ecx
call edi
cmp eax, 0x102
je 0x406549
cmp eax, 0xffffffff
jne 0x406588
cmp dword [esi + 0x20], ebx
je 0x406580
lea eax, [esi + 0x3c]
push ebx
push eax
lea ecx, [esp + 0x20]
call fcn.004243f6
push ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 2
call fcn.0042441d
test eax, eax
jne 0x40663e
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], bl
call fcn.00424432
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
push edx
call edi
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x4065a5
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp ebp, ebx
je 0x406609
cmp dword [esi + 0x30], ebx
je 0x406609
lea ecx, [esi + 0x2c]
mov dword [esi + 0x24], 7
call fcn.0044ed8c
mov edx, dword [0x4790e8]
mov dword [esp + 0x5c], edx
push 0xfa7d
lea ecx, [esp + 0x60]
mov byte [esp + 0x58], 3
call fcn.00452b9f
mov eax, dword [esi + 0x30]
push ebx
lea ecx, [esp + 0x60]
mov edi, dword [eax]
call fcn.0044f1bd
mov ecx, dword [esi + 0x30]
push eax
push 7
push 4
call dword [edi + 0x14]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x10], 0xffffffff
mov byte [esp + 0x54], bl
call fcn.0044ee01
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ecx
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x24]
mov dword [esp + 0x54], 0xffffffff
call fcn.00424432
mov ecx, dword [esp + 0x4c]
pop edi
mov eax, esi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret 4
mov ecx, dword [esi + 0x34]
cmp ecx, ebx
je 0x40665b
mov edx, dword [ecx]
call dword [edx + 0x4c]
mov ecx, dword [esi + 0x34]
cmp ecx, ebx
je 0x406658
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x34], ebx
mov ecx, dword [esi + 0x38]
cmp ecx, ebx
je 0x406678
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [esi + 0x38]
cmp ecx, ebx
je 0x406675
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x38], ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], bl
call fcn.00424432
mov ecx, dword [esi + 0x1c]
push 0xffffffffffffffff
push ecx
call edi
mov ebp, 1
jmp 0x406588