Function at 0x406450
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5370b0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x587be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, 1
add dword [edi + 0xabc], ebx
mov eax, dword [edi + 0xabc]
cmp eax, 0xf0
jle 0x4064ae
cmp ecx, ebx
je 0x4064c5
cmp dword [0x5921c8], 6
jge 0x4064c5
add eax, 0xffffffec
add dword [0x5921c8], ebx
mov dword [edi + 0xabc], eax
cmp ecx, 0xe
ja case.0x4064be.4
movzx edx, byte [ecx + 0x4067c8]
jmp dword [edx*4 + 0x4067a8]
xor ebx, ebx
push ebx
push ebx
push ebx
push 0x4094c0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 0x10]
push eax
lea esi, [ebx + 0x76]
call fcn.00401f60
add esp, 4
lea esi, [edi + 0xac0]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00402580
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40651d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
lea ecx, [edi + 0xac4]
call fcn.00402580
mov ecx, dword [edi + 0x20]
push 7
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.004083a0
mov dword [edi + 0xabc], ebx
mov dword [edi + 0xa68], ebx
mov dword [0x5921c8], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
mov esi, 0x6b
call fcn.00401f60
add esp, 4
lea esi, [edi + 0xac0]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00402580
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.00402650
lea ebx, [edi + 0xac4]
push esi
push ebx
call fcn.00408b00
add esp, 8
test al, al
je case.0x4064be.4
push esi
mov ecx, ebx
call fcn.00402580
mov ecx, edi
call fcn.00407c20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
push ecx
mov esi, 0x6b
call fcn.00401f60
add esp, 4
lea esi, [edi + 0xac0]
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.00402580
lea ecx, [ebp - 0x18]
jmp 0x406583
lea edx, [ebp - 0x1c]
push edx
mov esi, 0x71
call fcn.00401f60
add esp, 4
lea esi, [edi + 0xac0]
push eax
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.00402580
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00402650
lea ebx, [edi + 0xac4]
push esi
push ebx
call fcn.00408b00
add esp, 8
test al, al
je case.0x4064be.4
push esi
mov ecx, ebx
call fcn.00402580
call fcn.00407f10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
mov esi, 0x74
call fcn.00401f60
add esp, 4
lea esi, [edi + 0xac0]
push eax
mov ecx, esi
mov dword [ebp - 4], 4
call fcn.00402580
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.00402650
lea ebx, [edi + 0xac4]
push esi
push ebx
call fcn.00408b00
add esp, 8
test al, al
je case.0x4064be.4
push esi
mov ecx, ebx
call fcn.00402580
call fcn.00408090
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x24]
push ecx
mov esi, 0x74
call fcn.00401f60
add esp, 4
lea esi, [edi + 0xac0]
push eax
mov ecx, esi
mov dword [ebp - 4], 5
call fcn.00402580
lea ecx, [ebp - 0x24]
jmp 0x406688
lea edx, [ebp - 0x28]
push edx
mov esi, 0x74
call fcn.00401f60
add esp, 4
lea esi, [edi + 0xac0]
push eax
mov ecx, esi
mov dword [ebp - 4], 6
call fcn.00402580
lea ecx, [ebp - 0x28]
jmp 0x406688
lea eax, [ebp - 0x2c]
push eax
mov esi, 0x75
call fcn.00401f60
add esp, 4
lea esi, [edi + 0xac0]
push eax
mov ecx, esi
mov dword [ebp - 4], 7
call fcn.00402580
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00402650
push esi
lea ecx, [edi + 0xac4]
call fcn.00402580
call fcn.00408220
mov ecx, dword [edi + 0x20]
push 7
xor ebx, ebx
push ecx
mov dword [edi + 0xabc], ebx
mov dword [edi + 0xa68], ebx
call dword [sym.imp.USER32.dll_KillTimer]
mov edx, dword [edi + 0x20]
push ebx
push 0xbb8
push 0x66
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret