Function at 0x406320
Capabilities:
Create thread
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x48ea0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x42c
mov eax, dword [0x4afd08]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
push 1
lea ecx, [esp + 0x1c]
push 0x18
push ecx
push 0x22202c
mov ecx, esi
mov dword [esp + 0x454], ebx
call fcn.00406050
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, 1
mov ecx, esi
push edi
push 0x18
push edx
push 0x22202c
call fcn.00406050
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x4063d4
cmp dword [esi + 0x2c5c], ebx
jne 0x4063d4
cmp dword [esp + 0x14], 0xa
jl 0x4063ce
push 0x4ade24
lea ecx, [esi + 0x1f4]
call fcn.00404040
mov dword [esp + 0x14], ebx
inc dword [esp + 0x14]
jmp 0x406372
mov ecx, dword [esi + 0x2a50]
mov dword [esp + 0x14], ebx
cmp ecx, ebx
mov dword [esi + 0x2c5c], edi
jne 0x406666
mov edx, dword [esi + 0x2a3c]
cmp edx, edi
jne 0x406523
mov ecx, dword [esi + 0x2a40]
cmp eax, ecx
jbe 0x406523
push ecx
push eax
lea eax, [esp + 0x18]
push 0x4addf8
push eax
mov dword [esi + 0x2a3c], 2
call fcn.0047a92c
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esi + 0x250], 0xaa701d
push ebx
call fcn.004813de
push eax
lea ecx, [esi + 0x1f4]
call fcn.00404040
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x13d]
mov byte [esp + 0x13c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x23d]
mov byte [esp + 0x23c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x13c]
push 0x100
push ecx
mov ecx, esi
stosb byte es:[edi], al
call fcn.00480b4e
lea edx, [esp + 0x13c]
push 0x4addf4
push edx
call fcn.004245a0
lea edi, [esp + eax + 0x145]
push 0x4addf4
push edi
call fcn.004245a0
lea edi, [edi + eax + 1]
push 0x4addf4
push edi
call fcn.004245a0
add esp, 0x18
lea eax, [edi + eax + 1]
push eax
lea eax, [esp + 0x240]
push 0x4addd0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x23c]
push ecx
mov ecx, esi
call fcn.00480b27
cmp dword [esi + 0x2a0c], ebx
je 0x406514
cmp dword [esi + 0x2a4c], ebx
jne 0x406514
push ebx
push ebx
push ebx
push 0x405370
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x2a4c], eax
mov dword [esi + 0x2a48], 0xc8
jmp 0x406666
cmp edx, 2
jne 0x406666
cmp dword [esp + 0x1c], ebx
jne 0x406666
cmp eax, dword [esi + 0x2a44]
jae 0x406666
push ebx
lea edx, [esp + 0x34]
push 0xc
push edx
push 0x222038
mov ecx, esi
mov dword [esi + 0x2a3c], edi
call fcn.00406050
mov eax, dword [esi + 0x2a44]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x4adda4
push edx
call fcn.0047a92c
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esi + 0x250], 0x2e231f
push ebx
call fcn.004813de
push eax
lea ecx, [esi + 0x1f4]
call fcn.00404040
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x3d]
mov byte [esp + 0x3c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x33d]
mov byte [esp + 0x33c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x3c]
push 0x100
push eax
mov ecx, esi
call fcn.00480b4e
lea ecx, [esp + 0x3c]
push 0x4addf4
push ecx
call fcn.004245a0
lea edi, [esp + eax + 0x45]
push 0x4addf4
push edi
call fcn.004245a0
lea edi, [edi + eax + 1]
push 0x4addf4
push edi
call fcn.004245a0
add esp, 0x18
lea eax, [edi + eax + 1]
lea edx, [esp + 0x33c]
push eax
push 0x4add80
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x33c]
mov ecx, esi
push eax
call fcn.00480b27
cmp dword [esi + 0x2a0c], ebx
je 0x406660
mov eax, dword [esi + 0x2a4c]
cmp eax, ebx
je 0x406660
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x2a4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x2a4c], ebx
mov dword [esi + 0x2a48], ebx
mov ecx, dword [esi + 0x1f0]
call fcn.00417570
push eax
lea edx, [esp + 0x14]
push str.CPU
push edx
mov dword [esi + 0x5104], eax
call fcn.0047a92c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x50c8]
add esp, 0xc
push eax
push ebx
push 0x401
push ecx
call ebp
mov eax, dword [esp + 0x1c]
cmp eax, 0x14
ja 0x4066b8
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push edx
push eax
push 0x4add4c
jmp 0x406737
cmp eax, 0x1f4
ja 0x4066f0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0x18]
push 0x4add24
push eax
call fcn.0047a92c
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x508c]
add esp, 0x10
push ecx
push 2
push 0x401
push edx
jmp 0x406757
cmp eax, 0xbb8
ja 0x406728
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x4adcfc
push edx
call fcn.0047a92c
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x508c]
add esp, 0x10
push eax
push 2
push 0x401
push ecx
jmp 0x406757
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push edx
push eax
push 0x4adcd4
lea ecx, [esp + 0x1c]
push ecx
call fcn.0047a92c
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x508c]
add esp, 0x10
push edx
push 2
push 0x401
push eax
call ebp
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push 0x4adcc4
push edx
call fcn.0047a92c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x508c]
add esp, 0xc
push eax
push ebx
push 0x401
push ecx
call ebp
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push 0x4adcb4
push eax
call fcn.0047a92c
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x508c]
add esp, 0xc
push ecx
push 1
push 0x401
push edx
call ebp
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.004067d0
jmp 0x406372