Function at 0x51c350
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a5832
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x8ca144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x65
call fcn.006fa27b
lea eax, [ebp - 0x28]
push 0xb
push eax
call fcn.00407b10
mov ecx, eax
call fcn.00513180
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 0
jb 0x51c3a7
mov eax, dword [eax]
lea edi, [esi + 0x38]
push eax
mov ecx, edi
call fcn.006f4953
mov dword [esi + 0x4a0], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x51c3d4
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00402920
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004248b0
mov ecx, eax
call fcn.00605e40
call fcn.0050a3d0
mov ecx, eax
call fcn.00418a00
call fcn.00424830
mov ecx, eax
call fcn.00509fa0
mov ecx, esi
call fcn.0051e7f0
mov ecx, dword [esi + 0x4a4]
test ecx, ecx
je 0x51c4bf
push edi
call fcn.006e12d0
mov eax, dword [esi + 0x4a4]
test eax, eax
je 0x51c438
add eax, 0x508
jmp 0x51c43a
xor eax, eax
push eax
lea eax, [ebp - 0x40]
push 0xc
push eax
call fcn.00407b10
mov ecx, eax
call fcn.00513180
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 1
jb 0x51c45c
mov eax, dword [eax]
sub esp, 0x84
mov ecx, esp
push 0xffffffffffffffff
push eax
call fcn.006f2df3
lea ecx, [esi + 0x1c]
call fcn.006f992b
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00402680
lea eax, [ebp - 0x58]
push 0xc
push eax
call fcn.00407b10
mov ecx, eax
call fcn.00513180
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 2
jb 0x51c4a4
mov eax, dword [eax]
mov ecx, dword [esi + 0x4a4]
push eax
call fcn.006ff44a
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.00402680
mov ecx, dword [esi + 0x4a8]
test ecx, ecx
je 0x51c571
push edi
call fcn.006e3fa0
mov eax, dword [esi + 0x4a8]
test eax, eax
je 0x51c4e4
add eax, 0x508
jmp 0x51c4e6
xor eax, eax
push eax
lea eax, [ebp - 0x70]
push 0xd
push eax
call fcn.00407b10
mov ecx, eax
call fcn.00513180
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 3
jb 0x51c508
mov eax, dword [eax]
sub esp, 0x84
mov ecx, esp
push 0xffffffffffffffff
push eax
call fcn.006f2df3
lea ecx, [esi + 0x1c]
call fcn.006f992b
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0xffffffff
call fcn.00402680
lea eax, [ebp - 0x88]
push 0xd
push eax
call fcn.00407b10
mov ecx, eax
call fcn.00513180
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 4
jb 0x51c553
mov eax, dword [eax]
mov ecx, dword [esi + 0x4a8]
push eax
call fcn.006ff44a
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0xffffffff
call fcn.00402680
mov ecx, dword [esi + 0x4ac]
test ecx, ecx
je 0x51c629
push edi
call fcn.006ddfa0
mov eax, dword [esi + 0x4ac]
test eax, eax
je 0x51c596
add eax, 0x508
jmp 0x51c598
xor eax, eax
push eax
lea eax, [ebp - 0xa0]
push 0xe
push eax
call fcn.00407b10
mov ecx, eax
call fcn.00513180
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 5
jb 0x51c5bd
mov eax, dword [eax]
sub esp, 0x84
mov ecx, esp
push 0xffffffffffffffff
push eax
call fcn.006f2df3
lea ecx, [esi + 0x1c]
call fcn.006f992b
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0xffffffff
call fcn.00402680
lea eax, [ebp - 0xb8]
push 0xe
push eax
call fcn.00407b10
mov ecx, eax
call fcn.00513180
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 6
jb 0x51c60b
mov eax, dword [eax]
mov ecx, dword [esi + 0x4ac]
push eax
call fcn.006ff44a
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], 0xffffffff
call fcn.00402680
mov ecx, dword [esi + 0x4b0]
test ecx, ecx
je 0x51c6e1
push edi
call fcn.00511140
mov eax, dword [esi + 0x4b0]
test eax, eax
je 0x51c64e
add eax, 0x508
jmp 0x51c650
xor eax, eax
push eax
lea eax, [ebp - 0xd0]
push 0xf
push eax
call fcn.00407b10
mov ecx, eax
call fcn.00513180
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 7
jb 0x51c675
mov eax, dword [eax]
sub esp, 0x84
mov ecx, esp
push 0xffffffffffffffff
push eax
call fcn.006f2df3
lea ecx, [esi + 0x1c]
call fcn.006f992b
lea ecx, [ebp - 0xd0]
mov dword [ebp - 4], 0xffffffff
call fcn.00402680
lea eax, [ebp - 0xe8]
push 0xf
push eax
call fcn.00407b10
mov ecx, eax
call fcn.00513180
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 8
jb 0x51c6c3
mov eax, dword [eax]
mov ecx, dword [esi + 0x4b0]
push eax
call fcn.006ff44a
lea ecx, [ebp - 0xe8]
mov dword [ebp - 4], 0xffffffff
call fcn.00402680
mov ecx, esi
call fcn.0051f290
push 0xc
call fcn.006e707a
add esp, 4
test eax, eax
je 0x51c70c
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
jmp 0x51c70e
xor eax, eax
mov dword [esi + 0x4b4], eax
lea eax, [ebp - 0x100]
push 0x10
push eax
call fcn.00407b10
mov ecx, eax
call fcn.00513180
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 9
jb 0x51c738
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.0051f1d0
lea ecx, [ebp - 0x100]
call fcn.00402680
lea eax, [esi + 0x4cc]
push eax
push 0
push esi
push 0x518140
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0x3e8
push 0x64
mov dword [esi + 0x4c4], eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006e70bb
mov esp, ebp
pop ebp
ret