Function at 0x540f60
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00406b90
mov eax, dword [ebp - 8]
call fcn.00406b90
mov eax, dword [ebp + 0x10]
call fcn.00406b90
xor eax, eax
push ebp
push 0x54119b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00406bfc
cmp byte [ebp + 0xc], 0
je 0x540ff4
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0x11
lea edx, [ebp - 0x34]
mov ecx, 1
mov eax, 0x5411b8
call fcn.00472ef8
mov eax, dword [ebp - 0x24]
call fcn.00406c34
push eax
call sub.kernel32.dll_OutputDebugStringW
cmp dword [0x6db6bc], 0
je 0x541160
mov eax, dword [0x6db6bc]
cmp byte [eax + 0x40], 0
je 0x541160
mov eax, dword [0x6db6bc]
cmp byte [eax + 0x41], 0
je 0x541160
xor eax, eax
push ebp
push 0x54105e
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004752c4
fstp qword [ebp - 0x20]
wait
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov edx, 0x5411f4
call fcn.00475f84
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x18]
call fcn.00406bfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x541075
lea eax, [ebp - 0x14]
push eax
call sub.kernel32.dll_GetCurrentThreadId_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x38]
call fcn.004714bc
mov eax, dword [ebp - 0x38]
mov ecx, 4
mov edx, 1
call fcn.0040720c
cmp dword [ebp + 0x10], 0
je 0x5410bf
push 0x541238
push dword [ebp + 0x10]
push 0x541248
push dword [ebp - 8]
lea eax, [ebp - 8]
mov edx, 4
call fcn.0040705c
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0x11
mov eax, dword [0x6db6c0]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0x11
mov eax, dword [ebp - 4]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0x11
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0x11
lea edx, [ebp - 0x60]
mov ecx, 4
mov eax, 0x541258
call fcn.00472ef8
lea edx, [ebp - 0x64]
mov eax, dword [ebp + 8]
call fcn.004712b0
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
call fcn.00406f8c
call fcn.00540b4c
test al, al
je 0x541160
xor eax, eax
push ebp
push 0x541159
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x10]
mov eax, dword [0x6db6dc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x541160
call fcn.00540b90
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5411a2
lea eax, [ebp - 0x64]
call fcn.00406b98
lea eax, [ebp - 0x38]
call fcn.00406b98
lea eax, [ebp - 0x24]
call fcn.00406b98
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00406ba0
lea eax, [ebp + 0x10]
call fcn.00406b98
ret