Function at 0x406f01
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x40a064]
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 0x406f7d
sub eax, 1
je 0x406f74
sub eax, 1
je 0x406f4e
sub eax, 1
jne 0x406f86
push esi
call fcn.00406d00
jmp 0x406f84
test esi, esi
js 0x406f6b
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.00403282
mov ecx, esi
call fcn.00406cdf
jmp 0x406f84
mov ecx, esi
call fcn.00406ccc
jmp 0x406f84
mov ecx, esi
call fcn.00406cb9
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 [0x40a48c], eax
inc eax
mov dword [ebx + 8], eax
xor esi, esi
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x406fb1
cmp word [eax], si
jne 0x406fb3
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 [0x40a420]
test edi, edi
je 0x407016
mov ecx, edi
call dword [0x40b1b4]
mov esi, esp
call edi
cmp esi, esp
je 0x407014
mov ecx, 4
int 0x29
jmp 0x407018
mov eax, esi
mov edi, dword [0x40a408]
mov dword [ebx + 0x44], eax
test edi, edi
je 0x407045
mov esi, esp
mov ecx, edi
push 0x400
push dword [ebp + 0x30]
push ebx
call dword [0x40b1b4]
call edi
cmp esi, esp
je 0x407045
mov ecx, 4
int 0x29
mov edi, dword [0x40a404]
test edi, edi
je 0x407067
mov esi, esp
mov ecx, edi
push ebx
call dword [0x40b1b4]
call edi
cmp esi, esp
je 0x407067
mov ecx, 4
int 0x29
mov edi, dword [0x40a414]
test edi, edi
je 0x407089
mov esi, esp
mov ecx, edi
push ebx
call dword [0x40b1b4]
call edi
cmp esi, esp
je 0x407089
mov ecx, 4
int 0x29
xor ecx, ecx
cmp dword [ebx + 4], ecx
jl 0x4070a1
cmp dword [ebp + 0x18], 3
jne 0x4071b8
mov dword [ebx + 4], 0x8000ffff
cmp byte [0x40a3ec], cl
jne 0x4070e8
mov edi, dword [0x40a3e4]
test edi, edi
je 0x4070cf
mov ecx, edi
call dword [0x40b1b4]
mov esi, esp
call edi
cmp esi, esp
je 0x4070ca
mov ecx, 4
int 0x29
movzx eax, al
jmp 0x4070db
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb eax, eax
neg eax
xor ecx, ecx
test eax, eax
jne 0x4070e8
mov al, cl
mov dword [ebp - 8], eax
jmp 0x4070eb
xor eax, eax
inc eax
cmp byte [ebp + 0x24], 0
jne 0x407123
test al, al
jne 0x407123
mov edi, dword [0x40a3f0]
test edi, edi
je 0x40717b
cmp byte [0x40a3fc], al
jne 0x40717b
mov esi, esp
push ecx
push ecx
push ebx
mov ecx, edi
call dword [0x40b1b4]
call edi
cmp esi, esp
je 0x407121
mov ecx, 4
int 0x29
jmp 0x40717b
mov edi, dword [0x40a3f0]
test edi, edi
je 0x407156
cmp byte [0x40a3fc], 0
jne 0x407156
mov esi, esp
mov ecx, edi
push 0x800
push dword [ebp + 0x28]
push ebx
call dword [0x40b1b4]
call edi
cmp esi, esp
je 0x407156
mov ecx, 4
int 0x29
mov ecx, dword [ebp + 0x28]
xor esi, esi
cmp word [ecx], si
jne 0x40716e
push ebx
mov edx, 0x800
call fcn.00406a9c
mov ecx, dword [ebp + 0x28]
cmp byte [ebp - 8], 0
je 0x40717b
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x40a3f4], 0
je 0x4071a5
mov edi, dword [0x40a40c]
test edi, edi
je 0x4071a5
mov ecx, edi
call dword [0x40b1b4]
mov esi, esp
call edi
cmp esi, esp
je 0x4071a5
mov ecx, 4
int 0x29
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004092a0
mov esp, ebp
pop ebp
ret 0x34
call fcn.00403282
int3