Function at 0x40c28a
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x40f014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x28]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0xc], edx
mov word [eax], si
xor ebx, ebx
mov eax, dword [ebp + 0x30]
mov esi, dword [ebp + 0x1c]
push edi
mov dword [ebp - 0x10], ecx
mov edi, ebx
mov byte [eax], bl
mov eax, dword [ebp + 0x18]
sub eax, ebx
je 0x40c306
sub eax, 1
je 0x40c2fd
sub eax, 1
je 0x40c2d7
sub eax, 1
jne 0x40c30f
push esi
call fcn.00407450
jmp 0x40c30d
test esi, esi
js 0x40c2f4
mov esi, 0x8007029c
push esi
push 2
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040c640
mov ecx, esi
call fcn.0040c1fa
jmp 0x40c30d
mov ecx, esi
call fcn.0040c1e7
jmp 0x40c30d
mov ecx, esi
call fcn.0040c1d4
mov edi, eax
mov ebx, dword [ebp + 0x38]
mov eax, dword [ebp + 0x18]
mov dword [ebx], eax
xor eax, eax
inc eax
mov dword [ebx + 4], esi
mov dword [ebp - 8], eax
lock xadd dword [0x40f4d0], eax
inc eax
mov dword [ebx + 8], eax
xor esi, esi
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x40c33a
cmp word [eax], si
jne 0x40c33c
mov eax, esi
mov dword [ebx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x24], edi
lea edi, [ebx + 0x2c]
mov dword [ebx + 0x4c], eax
xor eax, eax
push 6
pop ecx
mov dword [ebx + 0x28], esi
rep stosd dword es:[edi], eax
mov edi, dword [0x40f3c4]
test edi, edi
je 0x40c39f
mov ecx, edi
call dword [0x410370]
mov esi, esp
call edi
cmp esi, esp
je 0x40c39d
mov ecx, 4
int 0x29
jmp 0x40c3a1
mov eax, esi
mov edi, dword [0x40f3ac]
mov dword [ebx + 0x44], eax
test edi, edi
je 0x40c3ce
mov esi, esp
mov ecx, edi
push 0x400
push dword [ebp + 0x30]
push ebx
call dword [0x410370]
call edi
cmp esi, esp
je 0x40c3ce
mov ecx, 4
int 0x29
mov edi, dword [0x40f3a8]
test edi, edi
je 0x40c3f0
mov esi, esp
mov ecx, edi
push ebx
call dword [0x410370]
call edi
cmp esi, esp
je 0x40c3f0
mov ecx, 4
int 0x29
mov edi, dword [0x40f3b8]
test edi, edi
je 0x40c412
mov esi, esp
mov ecx, edi
push ebx
call dword [0x410370]
call edi
cmp esi, esp
je 0x40c412
mov ecx, 4
int 0x29
xor ecx, ecx
cmp dword [ebx + 4], ecx
jl 0x40c42a
cmp dword [ebp + 0x18], 3
jne 0x40c541
mov dword [ebx + 4], 0x8000ffff
cmp byte [0x40f398], cl
jne 0x40c471
mov edi, dword [0x40f394]
test edi, edi
je 0x40c458
mov ecx, edi
call dword [0x410370]
mov esi, esp
call edi
cmp esi, esp
je 0x40c453
mov ecx, 4
int 0x29
movzx eax, al
jmp 0x40c464
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb eax, eax
neg eax
xor ecx, ecx
test eax, eax
jne 0x40c471
mov al, cl
mov dword [ebp - 8], eax
jmp 0x40c474
xor eax, eax
inc eax
cmp byte [ebp + 0x24], 0
jne 0x40c4ac
test al, al
jne 0x40c4ac
mov edi, dword [0x40f39c]
test edi, edi
je 0x40c504
cmp byte [0x40f3a1], al
jne 0x40c504
mov esi, esp
push ecx
push ecx
push ebx
mov ecx, edi
call dword [0x410370]
call edi
cmp esi, esp
je 0x40c4aa
mov ecx, 4
int 0x29
jmp 0x40c504
mov edi, dword [0x40f39c]
test edi, edi
je 0x40c4df
cmp byte [0x40f3a1], 0
jne 0x40c4df
mov esi, esp
mov ecx, edi
push 0x800
push dword [ebp + 0x28]
push ebx
call dword [0x410370]
call edi
cmp esi, esp
je 0x40c4df
mov ecx, 4
int 0x29
mov ecx, dword [ebp + 0x28]
xor esi, esi
cmp word [ecx], si
jne 0x40c4f7
push ebx
mov edx, 0x800
call fcn.0040bfb7
mov ecx, dword [ebp + 0x28]
cmp byte [ebp - 8], 0
je 0x40c504
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x40f3a0], 0
je 0x40c52e
mov edi, dword [0x40f3b0]
test edi, edi
je 0x40c52e
mov ecx, edi
call dword [0x410370]
mov esi, esp
call edi
cmp esi, esp
je 0x40c52e
mov ecx, 4
int 0x29
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040dd40
mov esp, ebp
pop ebp
ret 0x34
call fcn.0040c776
int3