Function at 0x4046f0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x437928
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
mov eax, dword [esi + 0xa4]
push edi
lea edi, [esi + 0xa4]
mov dword [esp + 0x14], 0x785
mov eax, dword [eax - 0xc]
lea ecx, [eax + eax + 2]
mov eax, dword [edi]
sub eax, 0x10
mov dword [esp + 0x18], ecx
cmp dword [eax + 0xc], 1
jle 0x403931
mov edx, dword [eax + 4]
push edx
mov ecx, edi
call fcn.004012b0
mov eax, dword [edi]
push ebx
mov dword [esp + 0x20], eax
call fcn.0042a8c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov edi, 0x43a6d4
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
push 0x205
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call fcn.00404850
mov eax, dword [esp + 0x14]
push eax
call fcn.0041cddc
imul eax, eax, 0x3e8
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x68]
add esp, 4
lea ebx, [esp + 0xc]
push ebx
push eax
push 3
lea eax, [esp + 0x24]
push eax
push ecx
push 0x4a
push edx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
pop ebx
jne 0x403a3b
mov eax, dword [esi + 0x64]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x4039db
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x1ff
push 0x207
lea ecx, [esi + 0x98]
call fcn.00401590
jmp 0x403ae2
push 5
push 0x209
push 0x207
lea ecx, [esi + 0x98]
call fcn.00401590
or edx, 0xffffffff
cmp eax, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 0x28], 0xffffffff
jne 0x403af5
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
mov eax, 2
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [esp + 8]
sub eax, 2
je 0x403a72
dec eax
je 0x403a69
dec eax
push 0
jne 0x403ad4
push 0x206
push 0x207
lea ecx, [esi + 0x98]
call fcn.00401590
xor esi, esi
jmp 0x403a97
push 5
push 0x20b
jmp 0x403a55
push 5
push 0x20a
push 0x207
lea ecx, [esi + 0x98]
call fcn.00401590
xor ecx, ecx
cmp eax, 4
setne cl
dec ecx
and ecx, 2
mov esi, ecx
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], edi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403ac1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov esi, dword [esi + 0x68]
push 0
push 0x1c
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], edi
or edx, 0xffffffff
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x20]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
push esi
mov esi, ecx
call fcn.00433c7e
call fcn.00433c7e
mov eax, dword [eax + 0xc]
push 0x64
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov ecx, esi
call fcn.004045e0
cmp eax, 1
jne 0x404771
mov ecx, esi
call fcn.00403d10
cmp eax, 1
jne 0x404771
cmp dword [esi + 0x60], 1
jg 0x404730
mov ecx, esi
call fcn.00403f20
jmp 0x40473b
push str.PackageInstaller:_CPIMain::CheckShmemVersion___version_2_and_above
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, esi
call fcn.00404240
mov ecx, esi
call fcn.00403830
test eax, eax
mov ecx, esi
jne 0x404794
call fcn.00403680
test eax, eax
lea ecx, [esi + 0x98]
je 0x404773
push 0
push 0x1fe
push 0x207
call fcn.00401590
xor eax, eax
pop esi
ret
push 5
push 0x209
push 0x207
call fcn.00401590
xor ecx, ecx
cmp eax, 4
setne cl
pop esi
dec ecx
and ecx, 2
mov eax, ecx
ret
pop esi
jmp 0x4038e0