Function at 0x405995
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
and dword [esp], 0
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x28]
push esi
mov esi, dword [ebp + 0x38]
push edi
mov word [ebx], ax
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov byte [eax], 0
mov eax, dword [ebp + 0x1c]
mov edi, dword [eax]
mov dword [esi + 8], edi
mov eax, dword [eax + 4]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x18]
sub eax, 0
je 0x405a29
sub eax, 1
je 0x405a1e
sub eax, 1
je 0x4059ed
sub eax, 1
jne 0x405a32
push edi
call fcn.00405530
jmp 0x405a25
test edi, edi
js 0x405a15
mov edi, 0x8007029c
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406e2e
mov ecx, edi
mov dword [esi + 8], edi
call fcn.004056e1
mov dword [esi + 0xc], eax
mov ecx, edi
call fcn.00405516
jmp 0x405a25
mov ecx, edi
call fcn.004054fd
mov edi, eax
jmp 0x405a36
mov ecx, edi
call fcn.004054e4
jmp 0x405a25
mov edi, dword [esp + 0xc]
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov dword [esi], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 4], ecx
cmp byte [eax + 8], cl
je 0x405a4f
mov dword [esi + 4], 8
xor eax, eax
inc eax
lock xadd dword [0x41346c], eax
inc eax
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x405a6a
cmp word [eax], cx
jne 0x405a6c
mov eax, ecx
mov dword [esi + 0x14], eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
mov dword [esi + 0x18], eax
xor edx, edx
mov eax, dword [ebp + 8]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x2c], edi
lea edi, [esi + 0x34]
mov dword [esi + 0x54], eax
xor eax, eax
push 6
pop ecx
mov dword [esi + 0x30], edx
rep stosd dword es:[edi], eax
mov edi, dword [0x4134ec]
test edi, edi
je 0x405ac4
mov ecx, edi
call dword [0x414340]
call edi
mov edi, dword [0x4134f8]
mov dword [esi + 0x4c], eax
test edi, edi
je 0x405adc
push esi
mov ecx, edi
call dword [0x414340]
call edi
mov edi, dword [0x4134f4]
test edi, edi
je 0x405af9
push 0x400
push dword [ebp + 0x30]
mov ecx, edi
push esi
call dword [0x414340]
call edi
mov edi, dword [0x4134f0]
test edi, edi
je 0x405b0e
push esi
mov ecx, edi
call dword [0x414340]
call edi
mov edi, dword [0x4134d8]
test edi, edi
je 0x405b29
test byte [esi + 4], 2
jne 0x405b29
push esi
mov ecx, edi
call dword [0x414340]
call edi
xor eax, eax
cmp dword [esi + 8], eax
jl 0x405b4a
cmp dword [ebp + 0x18], 3
jne 0x405c11
mov ecx, 0x8000ffff
mov dword [esi + 8], ecx
call fcn.004056e1
mov dword [esi + 0xc], eax
cmp byte [0x41350d], 0
jne 0x405b7c
mov edi, dword [0x413510]
test edi, edi
je 0x405b6c
mov ecx, edi
call dword [0x414340]
call edi
movzx eax, al
jmp 0x405b78
call dword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x405b82
test byte [esi + 4], 2
je 0x405ba6
mov edi, dword [0x413514]
test edi, edi
je 0x405be5
cmp byte [0x413504], 0
jne 0x405be5
xor eax, eax
mov ecx, edi
push eax
push eax
push esi
call dword [0x414340]
call edi
jmp 0x405be5
mov edi, dword [0x413514]
test edi, edi
je 0x405bca
cmp byte [0x413504], 0
jne 0x405bca
push 0x800
push ebx
push esi
mov ecx, edi
call dword [0x414340]
call edi
xor eax, eax
cmp word [ebx], ax
jne 0x405bde
push esi
mov edx, 0x800
mov ecx, ebx
call fcn.00405217
push ebx
call dword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
test byte [esi + 4], 4
jne 0x405bf4
cmp byte [0x41350c], 0
je 0x405c08
mov esi, dword [0x4134e8]
test esi, esi
je 0x405c08
mov ecx, esi
call dword [0x414340]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
call fcn.00405dd6
int3