Function at 0x421220
Capabilities:
Check os version

Disassembly:
mov eax, 0x467f7e
call fcn.00464890
sub esp, 0x118
push ebx
push esi
push edi
push dword [ebp + 0x1c]
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], esi
call fcn.00425e47
mov dword [ebp - 4], ebx
mov dword [esi], 0x72abac
mov eax, dword [0x738220]
mov ecx, 0x738220
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0xc8], eax
mov edi, 0x114
mov byte [ebp - 4], 2
push edi
lea eax, [ebp - 0x124]
mov dword [esi + 0x4dc], ebx
push ebx
push eax
mov dword [esi + 0x4e0], ebx
call fcn.0043a570
add esp, 0xc
mov dword [ebp - 0x124], edi
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
cmp dword [ebp - 0x120], 6
mov eax, dword [ebp + 0x24]
cmovb eax, ebx
mov dword [esi + 0xac], eax
cmp dword [ebp + 0x20], ebx
push 0x58
pop edi
cmovne edi, dword [ebp + 0x20]
push edi
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], ebx
call fcn.00450c94
mov dword [esi + 0xa8], eax
pop ecx
test eax, eax
je 0x4214b9
push edi
push ebx
push eax
call fcn.0043a570
xor eax, eax
lea ebx, [esi + 0x2cc]
mov word [ebx], ax
lea edx, [esi + 0xcc]
mov word [edx], ax
add esp, 0xc
and dword [esi + 0x4d4], eax
and dword [esi + 0x4d8], 0
mov eax, dword [ebp + 8]
mov dword [esi + 0xc4], eax
neg eax
sbb eax, eax
add eax, 0x7005
mov dword [esi + 0x80], eax
mov eax, dword [esi + 0xa8]
mov dword [eax], edi
mov edi, 0x104
mov eax, dword [esi + 0xa8]
mov dword [eax + 0x1c], ebx
mov eax, dword [esi + 0xa8]
mov dword [eax + 0x20], edi
mov ecx, dword [esi + 0xa8]
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x3c], eax
mov eax, dword [esi + 0xa8]
mov dword [eax + 0x24], edx
mov eax, dword [esi + 0xa8]
mov dword [eax + 0x28], 0x100
mov ecx, dword [esi + 0xa8]
mov eax, dword [ebp + 0x14]
or eax, 0x80020
or dword [ecx + 0x34], eax
test byte [ebp + 0x14], 0x40
je 0x421382
mov eax, dword [esi + 0xa8]
and dword [eax + 0x34], 0xff7fffff
call fcn.0041f558
cmp dword [ebp + 0x10], 0
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0xa8]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0xa8]
mov dword [eax + 0x44], 0x421049
je 0x4213bb
push 0xffffffffffffffff
push dword [ebp + 0x10]
push edi
push ebx
call fcn.00450c89
push eax
call fcn.00401570
add esp, 0x14
cmp dword [ebp + 0x18], 0
je 0x421400
push dword [ebp + 0x18]
lea edi, [esi + 0xc8]
mov ecx, edi
call fcn.0041c22c
xor ebx, ebx
mov ecx, edi
push ebx
call fcn.00401872
jmp 0x4213e5
xor ecx, ecx
mov word [eax], cx
add eax, 2
push 0x7c
push eax
call fcn.0043c77e
pop ecx
pop ecx
test eax, eax
jne 0x4213dd
mov ecx, dword [esi + 0xa8]
mov eax, dword [edi]
mov dword [ecx + 0xc], eax
jmp 0x421402
xor ebx, ebx
cmp dword [esi + 0xac], 1
jne 0x4214a6
push 2
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x4214a0
lea eax, [ebp + 0x20]
mov dword [esi + 0x4e0], 0x72ab44
lea edi, [esi + 0x4dc]
push eax
push 0x72ab9c
push 1
mov dword [edi], 0x72ab60
push ebx
cmp dword [esi + 0xc4], ebx
je 0x421451
push 0x46bae4
jmp 0x421456
push 0x46baf4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4214a0
mov ecx, dword [ebp + 0x20]
lea edx, [ebp + 0x14]
push edx
push 0x72ab8c
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
js 0x4214be
mov edx, dword [ebp + 0x20]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c]
lea eax, [esi + 0xb8]
push eax
push edi
push edx
call ecx
test eax, eax
js 0x4214be
mov eax, dword [ebp + 0x20]
mov dword [esi + 0xbc], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc0], eax
jmp 0x4214a6
mov dword [esi + 0xac], ebx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x20
call fcn.00422d3e
call fcn.00422d72
int3