Function at 0x405c6b
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x28]
push ebx
push esi
xor esi, esi
mov dword [esp + 0xc], edx
mov word [eax], si
xor ebx, ebx
mov eax, dword [ebp + 0x30]
push edi
xor edi, edi
mov dword [esp + 0x14], ecx
mov byte [eax], bl
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x38]
mov esi, dword [eax]
mov dword [ebx + 8], esi
mov eax, dword [eax + 4]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0x18]
sub eax, edi
je 0x405cfb
sub eax, 1
je 0x405cf2
sub eax, 1
je 0x405cc1
sub eax, 1
jne 0x405d04
push esi
call fcn.004058fa
jmp 0x405d02
test esi, esi
js 0x405ce9
mov esi, 0x8007029c
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004098e4
mov ecx, esi
mov dword [ebx + 8], esi
call fcn.004059be
mov dword [ebx + 0xc], eax
mov ecx, esi
call fcn.004058e1
jmp 0x405d02
mov ecx, esi
call fcn.004058c8
jmp 0x405d02
mov ecx, esi
call fcn.004058af
mov edi, eax
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov dword [ebx], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 4], ecx
cmp byte [eax + 8], cl
je 0x405d1d
mov dword [ebx + 4], 8
xor eax, eax
inc eax
lock xadd dword [0x41a5bc], eax
inc eax
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x405d38
cmp word [eax], cx
jne 0x405d3a
mov eax, ecx
mov dword [ebx + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x18], eax
xor edx, edx
mov eax, dword [ebp + 8]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x50], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x2c], edi
lea edi, [ebx + 0x34]
mov dword [ebx + 0x54], eax
xor eax, eax
push 6
pop ecx
mov dword [ebx + 0x30], edx
rep stosd dword es:[edi], eax
mov edi, dword [0x41a514]
test edi, edi
je 0x405d9f
mov ecx, edi
call dword [0x41b38c]
mov esi, esp
call edi
cmp esi, esp
je 0x405d9f
mov ecx, 4
int 0x29
mov edi, dword [0x41a4a8]
mov dword [ebx + 0x4c], eax
test edi, edi
je 0x405dc4
mov esi, esp
mov ecx, edi
push ebx
call dword [0x41b38c]
call edi
cmp esi, esp
je 0x405dc4
mov ecx, 4
int 0x29
mov edi, dword [0x41a4bc]
test edi, edi
je 0x405dee
mov esi, esp
mov ecx, edi
push 0x400
push dword [ebp + 0x30]
push ebx
call dword [0x41b38c]
call edi
cmp esi, esp
je 0x405dee
mov ecx, 4
int 0x29
mov edi, dword [0x41a4b4]
test edi, edi
je 0x405e10
mov esi, esp
mov ecx, edi
push ebx
call dword [0x41b38c]
call edi
cmp esi, esp
je 0x405e10
mov ecx, 4
int 0x29
mov edi, dword [0x41a4c8]
test edi, edi
je 0x405e38
test byte [ebx + 4], 2
jne 0x405e38
mov esi, esp
mov ecx, edi
push ebx
call dword [0x41b38c]
call edi
cmp esi, esp
je 0x405e38
mov ecx, 4
int 0x29
xor eax, eax
cmp dword [ebx + 8], eax
jl 0x405e59
cmp dword [ebp + 0x18], 3
jne 0x405f59
mov ecx, 0x8000ffff
mov dword [ebx + 8], ecx
call fcn.004059be
mov dword [ebx + 0xc], eax
cmp byte [0x41a49c], 0
jne 0x405e98
mov edi, dword [0x41a498]
test edi, edi
je 0x405e88
mov ecx, edi
call dword [0x41b38c]
mov esi, esp
call edi
cmp esi, esp
je 0x405e83
mov ecx, 4
int 0x29
movzx eax, al
jmp 0x405e94
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x405e9e
test byte [ebx + 4], 2
je 0x405ecf
mov edi, dword [0x41a4a0]
test edi, edi
je 0x405f20
cmp byte [0x41a4ac], 0
jne 0x405f20
mov esi, esp
xor eax, eax
push eax
push eax
push ebx
mov ecx, edi
call dword [0x41b38c]
call edi
cmp esi, esp
je 0x405ecd
mov ecx, 4
int 0x29
jmp 0x405f20
mov edi, dword [0x41a4a0]
test edi, edi
je 0x405f02
cmp byte [0x41a4ac], 0
jne 0x405f02
mov esi, esp
mov ecx, edi
push 0x800
push dword [ebp + 0x28]
push ebx
call dword [0x41b38c]
call edi
cmp esi, esp
je 0x405f02
mov ecx, 4
int 0x29
mov esi, dword [ebp + 0x28]
xor eax, eax
cmp word [esi], ax
jne 0x405f19
push ebx
mov edx, 0x800
mov ecx, esi
call fcn.004055b5
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test byte [ebx + 4], 4
jne 0x405f2f
cmp byte [0x41a4a4], 0
je 0x405f50
mov edi, dword [0x41a4c4]
test edi, edi
je 0x405f50
mov ecx, edi
call dword [0x41b38c]
mov esi, esp
call edi
cmp esi, esp
je 0x405f50
mov ecx, 4
int 0x29
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
call fcn.00406165
int3