Function at 0x409d10
Capabilities:
Check os version

Disassembly:
sub esp, 0x178
push ebx
push ebp
push esi
mov esi, dword [esp + 0x188]
mov ebx, ecx
push edi
mov eax, dword [esi + 4]
mov ebp, dword [sym.imp.USER32.dll_MapWindowPoints]
push 1
mov ecx, dword [eax + 0x18]
mov edi, dword [eax]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 0x24]
lea eax, [esp + 0x14]
mov dword [esp + 0x18], edx
push eax
push 0
push edi
call ebp
mov ecx, dword [esi + 4]
push 2
add ecx, 0x18
mov edx, dword [ecx]
mov dword [esp + 0x1c], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x20], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x24], edx
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x1c]
push ecx
push 0
push edi
mov dword [esp + 0x34], eax
call ebp
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x78]
lea edx, [esp + 0x74]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x78], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x409db2
mov eax, dword [esp + 0x78]
cmp eax, 5
jae 0x409dae
cmp eax, 4
jne 0x409db2
cmp dword [esp + 0x7c], 0x5a
jb 0x409db2
xor eax, eax
jmp 0x409db7
mov eax, 1
neg al
sbb eax, eax
mov edx, dword [esp + 0x1c]
and eax, 0xfffff000
mov ecx, dword [esp + 0x18]
add eax, 0x1000
push 0
or al, 0x40
push 0
mov ebp, eax
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [ebx + 4]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x28]
push 0x52d
push edx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x38], 0x14
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x409e71
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x50], eax
push ecx
push 0
lea eax, [esp + 0x30]
push 0x52f
push edi
mov dword [esp + 0x5c], 0x18
mov dword [esp + 0x64], ebp
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x178
ret 4
mov edx, dword [esi]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 4]
mov ebp, dword [sym.imp.USER32.dll_MonitorFromPoint]
push 0
push edi
push esi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], edi
mov ebx, esi
call ebp
test eax, eax
jne 0x409edf
push 2
push edi
push esi
call ebp
mov edx, eax
test edx, edx
je 0x409edf
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], 0x28
push ecx
push edx
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x409edf
mov eax, dword [esp + 0x60]
cmp ebx, eax
jl 0x409edd
mov eax, dword [esp + 0x68]
cmp ebx, eax
jle 0x409edf
mov ebx, eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x48]
push ecx
push ebx
push edx
push eax
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x178
ret 4