Function at 0x409490
Capabilities:
Print debug messages

Disassembly:
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 0x421400
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1468
call fcn.00420f70
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 - 0x146c], edx
mov dword [ebp - 0x1474], ecx
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x1470], eax
mov esi, dword [ebx + 0x18]
xor eax, eax
mov dword [ebp - 4], 0
mov word [ebp - 0x1410], ax
mov byte [ebp - 0x410], al
mov ecx, dword [esi]
mov eax, dword [esi + 4]
push ecx
mov dword [ebp - 0x1460], ecx
mov dword [ebp - 0x145c], eax
call fcn.004031c0
xor ecx, ecx
mov dword [ebp - 0x1468], 3
add esp, 4
mov edi, eax
cmp byte [esi + 8], cl
mov eax, 8
cmovne ecx, eax
mov dword [ebp - 0x1464], ecx
mov ecx, 1
lock xadd dword [0x454558], ecx
inc ecx
mov dword [ebp - 0x1458], ecx
mov dword [ebp - 0x1454], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x1450], eax
xorps xmm0, xmm0
mov eax, dword [ebp - 0x146c]
mov dword [ebp - 0x1440], eax
mov eax, dword [ebp - 0x1470]
mov dword [ebp - 0x1418], eax
mov eax, dword [ebp - 0x1474]
mov dword [ebp - 0x1414], eax
mov eax, dword [0x4544f4]
mov dword [ebp - 0x1444], str.C:UsersdevlifeDocumentsAPTWithindowwithindowpackagesMicrosoft.Windows.ImplementationLibrary.1.0.220914.1includewil_resource.h
mov dword [ebp - 0x143c], edi
mov dword [ebp - 0x144c], 0
mov dword [ebp - 0x1448], 0
movq qword [ebp - 0x1428], xmm0
mov dword [ebp - 0x1420], 0
movups xmmword [ebp - 0x1438], xmm0
test eax, eax
je 0x4095da
call eax
mov dword [ebp - 0x141c], eax
jmp 0x4095e4
mov dword [ebp - 0x141c], 0
mov eax, dword [0x4544b8]
test eax, eax
je 0x4095f6
lea ecx, [ebp - 0x1468]
push ecx
call eax
mov eax, dword [0x4544d0]
test eax, eax
je 0x409614
push 0x400
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x1468]
push ecx
call eax
mov eax, dword [0x4544cc]
test eax, eax
je 0x409626
lea ecx, [ebp - 0x1468]
push ecx
call eax
mov eax, dword [0x4544e0]
test eax, eax
je 0x409641
test byte [ebp - 0x1464], 2
jne 0x409641
lea ecx, [ebp - 0x1468]
push ecx
call eax
cmp dword [ebp - 0x1460], 0
jl 0x409664
mov ecx, 0x8000ffff
mov dword [ebp - 0x1460], 0x8000ffff
call fcn.004033a0
mov dword [ebp - 0x145c], eax
cmp byte [0x4544ac], 0
jne 0x40968d
mov eax, dword [0x4544a4]
test eax, eax
je 0x40967d
call eax
movzx eax, al
jmp 0x409689
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x409696
test byte [ebp - 0x1464], 2
je 0x4096b7
mov eax, dword [0x4544b0]
test eax, eax
je 0x40970f
cmp byte [0x4544c0], 0
jne 0x40970f
push 0
push 0
lea ecx, [ebp - 0x1468]
push ecx
call eax
jmp 0x40970f
mov eax, dword [0x4544b0]
test eax, eax
je 0x4096de
cmp byte [0x4544c0], 0
jne 0x4096de
push 0x800
lea ecx, [ebp - 0x1410]
push ecx
lea ecx, [ebp - 0x1468]
push ecx
call eax
cmp word [ebp - 0x1410], 0
jne 0x409702
lea eax, [ebp - 0x1468]
mov edx, 0x800
push eax
lea ecx, [ebp - 0x1410]
call fcn.00402e00
add esp, 4
lea eax, [ebp - 0x1410]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test byte [ebp - 0x1464], 4
jne 0x409721
cmp byte [0x4544b4], 0
je 0x40972c
mov eax, dword [0x4544d8]
test eax, eax
je 0x40972c
call eax
lea ecx, [ebp - 0x1468]
mov dword [ebp - 4], 0xffffffff
call fcn.004044d0
int3