Function at 0x406140
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp 0x406480
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408d90
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1468
call fcn.00408980
mov eax, dword [0x40e00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x1478], ecx
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x1474], eax
mov edx, dword [ebx + 0x18]
xor eax, eax
mov dword [ebp - 4], 0
mov word [ebp - 0x1418], ax
mov byte [ebp - 0x418], al
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ebp - 0x1468], ecx
mov dword [ebp - 0x1464], eax
call fcn.00403340
xor ecx, ecx
mov dword [ebp - 0x1470], 1
cmp byte [edx + 8], cl
mov esi, eax
mov eax, 8
cmovne ecx, eax
mov dword [ebp - 0x146c], ecx
mov ecx, 1
lock xadd dword [0x40fae8], ecx
inc ecx
mov dword [ebp - 0x1460], ecx
mov dword [ebp - 0x145c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x1458], eax
xorps xmm0, xmm0
mov eax, dword [ebp - 0x1474]
mov dword [ebp - 0x1420], eax
mov eax, dword [ebp - 0x1478]
mov dword [ebp - 0x141c], eax
mov eax, dword [0x40fb64]
mov dword [ebp - 0x144c], 0x40a74c
mov dword [ebp - 0x1448], edi
mov dword [ebp - 0x1444], esi
mov dword [ebp - 0x1454], 0
mov dword [ebp - 0x1450], 0
movq qword [ebp - 0x1430], xmm0
mov dword [ebp - 0x1428], 0
movups xmmword [ebp - 0x1440], xmm0
test eax, eax
je 0x4065bf
call eax
mov dword [ebp - 0x1424], eax
jmp 0x4065c9
mov dword [ebp - 0x1424], 0
mov eax, dword [0x40fb24]
test eax, eax
je 0x4065db
lea ecx, [ebp - 0x1470]
push ecx
call eax
mov eax, dword [0x40fb40]
test eax, eax
je 0x4065f9
push 0x400
lea ecx, [ebp - 0x418]
push ecx
lea ecx, [ebp - 0x1470]
push ecx
call eax
mov eax, dword [0x40fb38]
test eax, eax
je 0x40660b
lea ecx, [ebp - 0x1470]
push ecx
call eax
mov eax, dword [0x40fb50]
test eax, eax
je 0x406626
test byte [ebp - 0x146c], 2
jne 0x406626
lea ecx, [ebp - 0x1470]
push ecx
call eax
cmp dword [ebp - 0x1468], 0
jge 0x406729
cmp byte [0x40fb18], 0
jne 0x40665c
mov eax, dword [0x40fb10]
test eax, eax
je 0x40664c
call eax
movzx eax, al
jmp 0x406658
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x406665
test byte [ebp - 0x146c], 2
je 0x406686
mov eax, dword [0x40fb1c]
test eax, eax
je 0x4066de
cmp byte [0x40fb2c], 0
jne 0x4066de
push 0
push 0
lea ecx, [ebp - 0x1470]
push ecx
call eax
jmp 0x4066de
mov eax, dword [0x40fb1c]
test eax, eax
je 0x4066ad
cmp byte [0x40fb2c], 0
jne 0x4066ad
push 0x800
lea ecx, [ebp - 0x1418]
push ecx
lea ecx, [ebp - 0x1470]
push ecx
call eax
cmp word [ebp - 0x1418], 0
jne 0x4066d1
lea eax, [ebp - 0x1470]
mov edx, 0x800
push eax
lea ecx, [ebp - 0x1418]
call fcn.00402fc0
add esp, 4
lea eax, [ebp - 0x1418]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test byte [ebp - 0x146c], 4
jne 0x4066f0
cmp byte [0x40fb20], 0
je 0x4066fb
mov eax, dword [0x40fb48]
test eax, eax
je 0x4066fb
call eax
mov dword [ebp - 4], 0xffffffff
test byte [ebp - 0x146c], 1
jne 0x40672e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004078bc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00404910
lea ecx, [ebp - 0x1470]
call fcn.00404690
int3