Function at 0x404240
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421290
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x430034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp + 0x28]
xor eax, eax
mov esi, dword [ebp + 0x38]
mov edx, dword [ebp + 0x18]
mov dword [ebp + 0x28], 0
mov word [edi], ax
mov eax, dword [ebp + 0x30]
mov byte [eax], 0
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0xc], eax
cmp edx, 3
ja case.default.0x40429b
jmp dword [edx*4 + 0x4044ac]
call fcn.00403160
jmp 0x4042fc
call fcn.00403180
jmp 0x4042fc
test ecx, ecx
js 0x4042ec
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push 0x8007029c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00409430
add esp, 0x14
mov dword [esi + 8], 0x8007029c
mov ecx, 0x8007029c
call fcn.004033a0
mov dword [esi + 0xc], eax
mov ecx, 0x8007029c
call fcn.004031a0
jmp 0x4042fc
push ecx
call fcn.004031c0
add esp, 4
mov dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [esi], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 4], 0
cmp byte [eax + 8], 0
je 0x40431b
mov dword [esi + 4], 8
mov eax, 1
lock xadd dword [0x454558], eax
inc eax
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x404339
cmp word [eax], 0
jne 0x40433b
xor eax, eax
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x18], eax
xorps xmm0, xmm0
mov eax, dword [ebp + 8]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x28]
mov dword [esi + 0x2c], 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 [ebp - 0x14]
mov dword [esi + 0x54], eax
mov eax, dword [0x4544f4]
mov dword [esi + 0x30], 0
movups xmmword [esi + 0x34], xmm0
movq qword [esi + 0x44], xmm0
test eax, eax
je 0x404391
call eax
jmp 0x404393
xor eax, eax
mov dword [esi + 0x4c], eax
mov eax, dword [0x4544b8]
test eax, eax
je 0x4043a2
push esi
call eax
mov eax, dword [0x4544d0]
test eax, eax
je 0x4043b6
push 0x400
push dword [ebp + 0x30]
push esi
call eax
mov eax, dword [0x4544cc]
test eax, eax
je 0x4043c2
push esi
call eax
mov eax, dword [0x4544e0]
test eax, eax
je 0x4043d4
test byte [esi + 4], 2
jne 0x4043d4
push esi
call eax
cmp dword [esi + 8], 0
jl 0x4043f8
cmp dword [ebp + 0x18], 3
jne 0x4044a5
mov ecx, 0x8000ffff
mov dword [esi + 8], 0x8000ffff
call fcn.004033a0
mov dword [esi + 0xc], eax
cmp byte [0x4544ac], 0
jne 0x404421
mov eax, dword [0x4544a4]
test eax, eax
je 0x404411
call eax
movzx eax, al
jmp 0x40441d
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x404427
test byte [esi + 4], 2
je 0x404442
mov eax, dword [0x4544b0]
test eax, eax
je 0x40447a
cmp byte [0x4544c0], 0
jne 0x40447a
push 0
push 0
push esi
call eax
jmp 0x40447a
mov eax, dword [0x4544b0]
test eax, eax
je 0x40445d
cmp byte [0x4544c0], 0
jne 0x40445d
push 0x800
push edi
push esi
call eax
cmp word [edi], 0
jne 0x404473
push esi
mov edx, 0x800
mov ecx, edi
call fcn.00402e00
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test byte [esi + 4], 4
jne 0x404489
cmp byte [0x4544b4], 0
je 0x404494
mov eax, dword [0x4544d8]
test eax, eax
je 0x404494
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00404750
nop
mov byte [0xa9004042], al
inc edx
inc eax
add byte [eax - 0xcffbfbe], dh
inc edx
inc eax
add ah, cl
int3