Function at 0x422480
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a9098
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x62c2a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xac], ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xa4]
push 0x94
push 0
push eax
mov dword [ebp - 0xb4], ebx
call fcn.00586b50
add esp, 0xc
mov dword [ebp - 0xa4], 0x94
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x42250a
cmp dword [ebp - 0xa0], 6
jb 0x42250a
cmp dword [ebp - 0x9c], 2
jb 0x42250a
mov eax, 1
jmp 0x4226cf
call fcn.00464b17
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x422526
push 0x80004005
call fcn.00403a80
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xa8], esi
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x422545
xor eax, eax
jmp 0x422548
mov eax, dword [ebx + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetTopWindow]
mov ebx, eax
test ebx, ebx
je 0x4226a7
lea esp, [esp]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x40
or eax, ecx
jge 0x422585
push 0x40
lea ecx, [ebp - 0xa8]
call fcn.004037a0
mov esi, dword [ebp - 0xa8]
push 0x40
push esi
push ebx
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x422694
cmp eax, 0xffffffff
jne 0x4225a8
push dword [esi - 8]
push esi
call fcn.00582f38
add esp, 8
test eax, eax
js 0x4226f1
cmp eax, dword [esi - 8]
jg 0x4226f1
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
mov edi, dword [esi - 0xc]
test edi, edi
js 0x4226f1
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4225ee
push edi
lea ecx, [ebp - 0xa8]
call fcn.004037a0
mov esi, dword [ebp - 0xa8]
lea eax, [edi + 1]
push eax
push esi
call fcn.0058405b
push eax
call fcn.00403320
add esp, 0xc
cmp edi, dword [esi - 8]
jg 0x4226f1
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
cmp dword [esi - 0xc], 0
jl 0x422694
push 0x5f8308
push esi
call fcn.00582fa8
add esp, 8
test eax, eax
je 0x422694
sub eax, esi
js 0x422694
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xf
je 0x422640
cmp eax, 1
jne 0x422694
push 0x78
call fcn.00464219
mov edi, eax
add esp, 4
mov dword [ebp - 0xb0], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x422670
mov ecx, edi
call fcn.004693a3
mov dword [edi], vtable.CCustomButton.0
mov dword [edi + 0x74], 0
jmp 0x422672
xor edi, edi
push edi
push dword [ebp - 0xb4]
mov byte [ebp - 4], 0
push ebx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov ecx, dword [ebp - 0xac]
push eax
call fcn.004227f0
test eax, eax
je 0x4226ed
push 2
push ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
test ebx, ebx
jne 0x422560
mov edi, 1
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4226cd
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00581fc1
mov esp, ebp
pop ebp
ret 4
xor edi, edi
jmp 0x4226ac
push 0x80070057
call fcn.00403a80
int3