Function at 0x513090
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a6dc2
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x8cf144]
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.006fbb95
lea eax, [ebp - 0x28]
push 0xb
push eax
call fcn.00407660
mov ecx, eax
call fcn.00509f80
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 0
jb 0x5130e7
mov eax, dword [eax]
lea edi, [esi + 0x38]
push eax
mov ecx, edi
call fcn.006f6918
mov dword [esi + 0x4a0], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x513114
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.00423da0
mov ecx, eax
call fcn.005fcc00
call fcn.00500d20
mov ecx, eax
call fcn.00418790
call fcn.00423d20
mov ecx, eax
call fcn.00500940
mov ecx, esi
call fcn.00515540
mov ecx, dword [esi + 0x4a4]
test ecx, ecx
je 0x5131ff
push edi
call fcn.006e0240
mov eax, dword [esi + 0x4a4]
test eax, eax
je 0x513178
add eax, 0x508
jmp 0x51317a
xor eax, eax
push eax
lea eax, [ebp - 0x58]
push 0xc
push eax
call fcn.00407660
mov ecx, eax
call fcn.00509f80
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 1
jb 0x51319c
mov eax, dword [eax]
sub esp, 0x84
mov ecx, esp
push 0xffffffffffffffff
push eax
call fcn.006f5019
lea ecx, [esi + 0x1c]
call fcn.006fb304
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.00402680
lea eax, [ebp - 0x70]
push 0xc
push eax
call fcn.00407660
mov ecx, eax
call fcn.00509f80
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 2
jb 0x5131e4
mov eax, dword [eax]
mov ecx, dword [esi + 0x4a4]
push eax
call fcn.00700b32
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0xffffffff
call fcn.00402680
mov ecx, dword [esi + 0x4a8]
test ecx, ecx
je 0x5132b7
push edi
call fcn.006e2e50
mov eax, dword [esi + 0x4a8]
test eax, eax
je 0x513224
add eax, 0x508
jmp 0x513226
xor eax, eax
push eax
lea eax, [ebp - 0x88]
push 0xd
push eax
call fcn.00407660
mov ecx, eax
call fcn.00509f80
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 3
jb 0x51324b
mov eax, dword [eax]
sub esp, 0x84
mov ecx, esp
push 0xffffffffffffffff
push eax
call fcn.006f5019
lea ecx, [esi + 0x1c]
call fcn.006fb304
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0xffffffff
call fcn.00402680
lea eax, [ebp - 0xa0]
push 0xd
push eax
call fcn.00407660
mov ecx, eax
call fcn.00509f80
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 4
jb 0x513299
mov eax, dword [eax]
mov ecx, dword [esi + 0x4a8]
push eax
call fcn.00700b32
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0xffffffff
call fcn.00402680
mov ecx, dword [esi + 0x4ac]
test ecx, ecx
je 0x51336f
push edi
call fcn.006dca80
mov eax, dword [esi + 0x4ac]
test eax, eax
je 0x5132dc
add eax, 0x508
jmp 0x5132de
xor eax, eax
push eax
lea eax, [ebp - 0xb8]
push 0xe
push eax
call fcn.00407660
mov ecx, eax
call fcn.00509f80
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 5
jb 0x513303
mov eax, dword [eax]
sub esp, 0x84
mov ecx, esp
push 0xffffffffffffffff
push eax
call fcn.006f5019
lea ecx, [esi + 0x1c]
call fcn.006fb304
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], 0xffffffff
call fcn.00402680
lea eax, [ebp - 0xd0]
push 0xe
push eax
call fcn.00407660
mov ecx, eax
call fcn.00509f80
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 6
jb 0x513351
mov eax, dword [eax]
mov ecx, dword [esi + 0x4ac]
push eax
call fcn.00700b32
lea ecx, [ebp - 0xd0]
mov dword [ebp - 4], 0xffffffff
call fcn.00402680
mov ecx, dword [esi + 0x4b0]
test ecx, ecx
je 0x513427
push edi
call fcn.00507db0
mov eax, dword [esi + 0x4b0]
test eax, eax
je 0x513394
add eax, 0x508
jmp 0x513396
xor eax, eax
push eax
lea eax, [ebp - 0xe8]
push 0xf
push eax
call fcn.00407660
mov ecx, eax
call fcn.00509f80
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 7
jb 0x5133bb
mov eax, dword [eax]
sub esp, 0x84
mov ecx, esp
push 0xffffffffffffffff
push eax
call fcn.006f5019
lea ecx, [esi + 0x1c]
call fcn.006fb304
lea ecx, [ebp - 0xe8]
mov dword [ebp - 4], 0xffffffff
call fcn.00402680
lea eax, [ebp - 0x100]
push 0xf
push eax
call fcn.00407660
mov ecx, eax
call fcn.00509f80
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 8
jb 0x513409
mov eax, dword [eax]
mov ecx, dword [esi + 0x4b0]
push eax
call fcn.00700b32
lea ecx, [ebp - 0x100]
mov dword [ebp - 4], 0xffffffff
call fcn.00402680
mov ecx, esi
call fcn.00516030
push 0xc
call fcn.006e611b
add esp, 4
test eax, eax
je 0x513452
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
jmp 0x513454
xor eax, eax
mov dword [esi + 0x4b4], eax
lea eax, [ebp - 0x40]
push 0x10
push eax
call fcn.00407660
mov ecx, eax
call fcn.00509f80
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 9
jb 0x51347b
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.00515f70
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x513498
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00402920
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea eax, [esi + 0x4cc]
push eax
push 0
push esi
push 0x50eef0
push 0
push 0
mov dword [ebp - 0x30], 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.006e615c
mov esp, ebp
pop ebp
ret