Function at 0x10002d70
Capabilities:
Check os version

Disassembly:
sub esp, 0x164
mov eax, dword [0x1003c360]
xor eax, esp
mov dword [esp + 0x160], eax
cmp dword [esp + 0x170], 0x46
mov eax, dword [esp + 0x16c]
push ebp
mov ebp, dword [esp + 0x17c]
push esi
mov esi, dword [esp + 0x170]
mov dword [esp + 0x28], eax
jne 0x10002fd3
push 0x11c
lea ecx, [esp + 0x50]
push 0
push ecx
call fcn.10013e10
add esp, 0xc
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x50], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x5c], 2
jne 0x10002de6
cmp dword [esp + 0x50], 5
je 0x10002fd3
mov ecx, dword [esi + 0xc]
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x1c]
push eax
push ecx
call edi
mov eax, dword [esi + 0x10]
lea edx, [esp + 0x30]
push edx
push eax
call edi
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x20]
test eax, eax
mov dword [esp + 0xc], 0
je 0x10002e28
lea ecx, [esp + 0xc]
push ecx
push eax
call edi
mov eax, dword [esi + 0x24]
push ebx
lea edx, [esp + 0x44]
push edx
push eax
call edi
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov ecx, ebx
sub ecx, edx
sub eax, edi
cmp eax, ecx
jle 0x10002f17
cmp byte [esi + 0x8b], 0
jne 0x10002fd1
mov eax, dword [esi + 0xc0]
mov ecx, dword [ebp + 8]
sub eax, edi
test ecx, ecx
jle 0x10002fd1
cmp ecx, eax
jg 0x10002e88
jl 0x10002e88
cmp ecx, eax
jne 0x10002e90
mov dword [esi + 0x1c0], 0
jmp 0x10002e90
sub ecx, eax
mov dword [esi + 0x1c0], ecx
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x3c]
sub eax, edi
sub eax, dword [ebp + 8]
add eax, dword [esp + 0x28]
cmp dword [ebp + 0x10], eax
je 0x10002ea9
mov dword [ebp + 0x10], eax
mov edx, dword [esi + 0x228]
sub edx, dword [esi + 0x1c0]
mov ecx, dword [esi + 0xdc]
sub edx, dword [esi + 0x190]
sub ecx, dword [esi + 0xd4]
sub edx, dword [esi + 0xd0]
mov eax, dword [esp + 0x48]
add edx, dword [esi + 0xd8]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push 2
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esi + 0x24]
push eax
push ecx
push 0
push edx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
sub edx, dword [esp + 0x10]
push 0
sub ecx, eax
sub eax, dword [esp + 0x28]
push ecx
push edx
push eax
mov eax, dword [esi + 0x20]
push 0
push 0
push eax
jmp 0x10002fcf
cmp byte [esi + 0x8b], 0
je 0x10002fd1
mov eax, dword [esi + 0x144]
mov ecx, dword [ebp + 0xc]
sub eax, edx
test ecx, ecx
jle 0x10002fd1
cmp ecx, eax
jg 0x10002f4d
jl 0x10002f4d
cmp ecx, eax
jne 0x10002f55
mov dword [esi + 0x1c4], 0
jmp 0x10002f55
sub ecx, eax
mov dword [esi + 0x1c4], ecx
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x40]
sub eax, edx
sub eax, dword [ebp + 0xc]
add eax, ebx
cmp dword [ebp + 0x14], eax
je 0x10002f6c
mov dword [ebp + 0x14], eax
mov ecx, dword [esi + 0x234]
sub ecx, dword [esi + 0x1dc]
mov edx, dword [esi + 0x158]
sub ecx, dword [esi + 0x154]
sub edx, dword [esi + 0x150]
add ecx, dword [esi + 0x15c]
mov eax, dword [esp + 0x48]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push 2
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esi + 0x24]
push eax
push ecx
push 0
push edx
call edi
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x20]
push 0
push eax
mov eax, dword [esp + 0x18]
sub ecx, eax
sub eax, dword [esp + 0x28]
push ecx
push 0
push eax
push 0
push edx
call edi
pop ebx
pop edi
mov eax, dword [esp + 0x17c]
mov ecx, dword [esp + 0x178]
mov edx, dword [esp + 0x28]
push ebp
push eax
mov eax, dword [esi + 0x5c]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov ecx, dword [esp + 0x168]
pop esi
pop ebp
xor ecx, esp
call fcn.100131c3
add esp, 0x164
ret 0x14