Function at 0x4800ec
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x4800f5
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004057f4
xor eax, eax
push ebp
push 0x480484
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4a81d4]
cmp dword [eax], 2
je 0x48013c
mov eax, dword [ebp - 4]
call fcn.00405804
push eax
call sub.kernel32.dll_OutputDebugStringA
jmp 0x48045c
lea eax, [ebp - 0xc]
call fcn.00405374
cmp byte [0x4ae2b9], 1
je 0x4801d6
cmp byte [0x4ae2b9], 3
je 0x4801d6
push 0x48049c
lea edx, [ebp - 0x2c]
mov eax, esi
call fcn.0040973c
push dword [ebp - 0x2c]
push 0x4804a8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405708
test bl, bl
je 0x4801d6
call sub.kernel32.dll_GetCurrentThreadId_1
mov ebx, eax
xor eax, eax
push ebp
push 0x4801af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x10]
call fcn.00409828
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4801b9
push dword [ebp - 0xc]
push 0x4804b4
push dword [ebp - 0x10]
push 0x4804a8
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00405708
cmp byte [0x4a7ac4], 0
je 0x4803ca
xor eax, eax
push ebp
push 0x4803b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [0x4a7acc]
cdq
cmp edx, dword [esp + 4]
jne 0x480211
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x4803af
jmp 0x480219
pop edx
pop eax
jle 0x4803af
cmp byte [0x4a7ad0], 0
jne 0x4802cb
cmp dword [0x4a7ac8], 0
jne 0x48024b
lea edx, [ebp - 0x30]
xor eax, eax
call fcn.00403328
mov edx, dword [ebp - 0x30]
mov eax, 0x4a7ac8
mov ecx, 0x4804c0
call fcn.0040568c
mov edx, dword [0x4a7ac8]
mov eax, 0x4ae2d4
call fcn.00403700
mov eax, dword [0x4a7ac8]
call fcn.00409d5c
test al, al
je 0x480275
mov eax, 0x4ae2d4
call fcn.0040349c
jmp 0x48027f
mov eax, 0x4ae2d4
call fcn.00403490
mov byte [0x4a7ad0], 1
call fcn.0040b748
fstp qword [ebp - 0x20]
wait
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.0040c348
push 0x4804d0
push dword [ebp - 0x14]
push 0x480500
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00405708
mov edx, dword [ebp - 0x34]
mov eax, 0x4ae2d4
call fcn.00405af8
call fcn.00403d68
cmp byte [0x4a7ad0], 0
je 0x4803af
cmp byte [0x4a7ad4], 0
je 0x480345
call fcn.0040b748
fstp qword [ebp - 0x28]
wait
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x18]
mov edx, 0x480518
call fcn.0040c348
push dword [ebp - 0x18]
push 0x480530
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x3c]
call fcn.00409828
push dword [ebp - 0x3c]
push 0x4804a8
push dword [ebp - 0xc]
push dword [ebp - 4]
lea eax, [ebp - 0x38]
mov edx, 6
call fcn.00405708
mov edx, dword [ebp - 0x38]
mov eax, 0x4ae2d4
call fcn.00405af8
call fcn.00403d68
jmp 0x48039c
call sub.kernel32.dll_GetTickCount
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x44]
call fcn.00409828
push dword [ebp - 0x44]
push 0x480530
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x48]
call fcn.00409828
push dword [ebp - 0x48]
push 0x4804a8
push dword [ebp - 0xc]
push dword [ebp - 4]
lea eax, [ebp - 0x40]
mov edx, 6
call fcn.00405708
mov edx, dword [ebp - 0x40]
mov eax, 0x4ae2d4
call fcn.00405af8
call fcn.00403d68
cmp byte [0x4a7ad8], 0
je 0x4803af
mov eax, 0x4ae2d4
call fcn.004037b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4803ca
cmp byte [0x4a7ab8], 0
je 0x48045c
mov eax, dword [ebp - 4]
test eax, eax
je 0x4803e3
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x1f4
jge 0x480456
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.0040568c
mov eax, dword [ebp - 0x4c]
call fcn.0047fdc0
jmp 0x48045c
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x1f4
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040586c
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.0040568c
lea eax, [ebp - 4]
mov ecx, 0x1f4
mov edx, 1
call fcn.004058ac
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.00409580
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 4]
call fcn.0040540c
mov eax, dword [ebp - 8]
call fcn.0047fdc0
cmp dword [ebp - 4], 0
jne 0x480402
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48048b
lea eax, [ebp - 0x54]
mov edx, 0xb
call fcn.00405398
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00405398
ret