Function at 0x419054
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x37
push 0
push 0
dec ecx
jne 0x41905c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x419c40
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xb4]
mov edx, 0x9c
call fcn.00406a14
mov dword [ebp - 0xb4], 0x9c
lea eax, [ebp - 0xb4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetVersionExA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
jne 0x4190d6
mov dword [ebp - 0xb4], 0x94
xor eax, eax
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x419bff
lea eax, [ebp - 0x170]
push eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x180], eax
mov byte [ebp - 0x17c], 0
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x178], eax
mov byte [ebp - 0x174], 0
lea edx, [ebp - 0x180]
mov ecx, 1
mov eax, 0x419c58
call fcn.0040947c
mov edx, dword [ebp - 0x170]
mov eax, dword [ebp - 4]
add eax, 0x14
call fcn.00404890
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xb0]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xac]
mov dword [eax + 0x1c], edx
lea eax, [ebp - 0x184]
push eax
movzx eax, word [ebp - 0x20]
mov dword [ebp - 0x180], eax
mov byte [ebp - 0x17c], 0
movzx eax, word [ebp - 0x1e]
mov dword [ebp - 0x178], eax
mov byte [ebp - 0x174], 0
lea edx, [ebp - 0x180]
mov ecx, 1
mov eax, 0x419c58
call fcn.0040947c
mov edx, dword [ebp - 0x184]
mov eax, dword [ebp - 4]
add eax, 0x28
call fcn.00404890
movzx eax, word [ebp - 0x20]
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
movzx eax, word [ebp - 0x1e]
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x34], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xa8]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 0xa4]
sub eax, 1
jb 0x419b85
je 0x4199b0
dec eax
jne 0x419bdd
cmp dword [ebp - 0xb0], 6
jne 0x419209
cmp dword [ebp - 0xac], 1
jne 0x419209
xor eax, eax
mov al, byte [ebp - 0x1a]
cmp eax, dword [0x434428]
jne 0x419209
mov eax, dword [ebp - 4]
add eax, 4
mov edx, 0x419c68
call fcn.00404890
mov eax, dword [ebp - 4]
mov byte [eax + 0x10], 0xf
cmp dword [ebp - 0xb0], 6
jne 0x419258
cmp dword [ebp - 0xac], 0
jne 0x419258
xor eax, eax
mov al, byte [ebp - 0x1a]
cmp eax, dword [0x434428]
jne 0x419241
mov eax, dword [ebp - 4]
add eax, 4
mov edx, 0x419c7c
call fcn.00404890
mov eax, dword [ebp - 4]
mov byte [eax + 0x10], 0xd
jmp 0x419258
mov eax, dword [ebp - 4]
add eax, 4
mov edx, 0x419c94
call fcn.00404890
mov eax, dword [ebp - 4]
mov byte [eax + 0x10], 0xe
cmp dword [ebp - 0xb0], 5
jne 0x41932a
cmp dword [ebp - 0xac], 2
jne 0x41932a
push 0x419cac
push 0x419cc0
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4192ac
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x16c]
push eax
call dword [ebp - 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4192b6
mov eax, dword [0x434434]
push eax
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4192de
mov eax, dword [ebp - 4]
add eax, 4
mov edx, 0x419cd8
call fcn.00404890
mov eax, dword [ebp - 4]
mov byte [eax + 0x10], 0xc
jmp 0x41932a
xor eax, eax
mov al, byte [ebp - 0x1a]
cmp eax, dword [0x434428]
jne 0x419313
movzx eax, word [ebp - 0x16c]
cmp eax, dword [0x434450]
jne 0x419313
mov eax, dword [ebp - 4]
add eax, 4
mov edx, 0x419cf8
call fcn.00404890
mov eax, dword [ebp - 4]
mov byte [eax + 0x10], 0xa
jmp 0x41932a
mov eax, dword [ebp - 4]
add eax, 4
mov edx, 0x419d24
call fcn.00404890
mov eax, dword [ebp - 4]
mov byte [eax + 0x10], 0xb
cmp dword [ebp - 0xb0], 5
jne 0x419353
cmp dword [ebp - 0xac], 1
jne 0x419353
mov eax, dword [ebp - 4]
add eax, 4
mov edx, 0x419d48
call fcn.00404890
mov eax, dword [ebp - 4]
mov byte [eax + 0x10], 9
cmp dword [ebp - 0xb0], 5
jne 0x41937c
cmp dword [ebp - 0xac], 0
jne 0x41937c
mov eax, dword [ebp - 4]
add eax, 4
mov edx, 0x419d5c
call fcn.00404890
mov eax, dword [ebp - 4]
mov byte [eax + 0x10], 8
cmp dword [ebp - 0xb0], 4
ja 0x41939c
mov eax, dword [ebp - 4]
add eax, 4
mov edx, 0x419d74
call fcn.00404890
mov eax, dword [ebp - 4]
mov byte [eax + 0x10], 4
cmp byte [ebp - 5], 0
je 0x4196e2
xor eax, eax
mov al, byte [ebp - 0x1a]
cmp eax, dword [0x434428]
jne 0x419424
movzx eax, word [ebp - 0x16c]
cmp eax, dword [0x434450]
je 0x419424
mov eax, dword [ebp - 4]
mov byte [eax + 0xc], 0
cmp dword [ebp - 0xb0], 4
jne 0x4193e7
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x419d88
call fcn.00404890
jmp 0x4197f3
mov dl, byte [0x434448]
mov ax, word [ebp - 0x1c]
call fcn.0041902c
test al, al
je 0x41940f
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x419da0
call fcn.00404890
jmp 0x4197f3
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x419db8
call fcn.00404890
jmp 0x4197f3
xor eax, eax
mov al, byte [ebp - 0x1a]
cmp eax, dword [0x434430]
je 0x419442
xor eax, eax
mov al, byte [ebp - 0x1a]
cmp eax, dword [0x43442c]
jne 0x4197f3
mov eax, dword [ebp - 4]
mov byte [eax + 0x34], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0xc], 1
cmp dword [ebp - 0xb0], 5
jne 0x41961e
cmp dword [ebp - 0xac], 2
jne 0x41961e
movzx eax, word [ebp - 0x16c]
cmp eax, dword [0x434454]
jne 0x4194cd
mov dl, byte [0x434444]
mov ax, word [ebp - 0x1c]
call fcn.0041902c
test al, al
je 0x4194a1
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x419dd0
call fcn.00404890
jmp 0x4197f3
mov dl, byte [0x434440]
mov ax, word [ebp - 0x1c]
call fcn.0041902c
test al, al
je 0x4197f3
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x419e08
call fcn.00404890
jmp 0x4197f3
movzx eax, word [ebp - 0x16c]
cmp eax, dword [0x434450]
jne 0x419541
mov dl, byte [0x434444]
mov ax, word [ebp - 0x1c]
call fcn.0041902c
test al, al
je 0x419504
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x419e40
call fcn.00404890
jmp 0x4197f3
mov dl, byte [0x434440]
mov ax, word [ebp - 0x1c]
call fcn.0041902c
test al, al
je 0x41952c
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x419e60
call fcn.00404890
jmp 0x4197f3
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x419e80
call fcn.00404890
jmp 0x4197f3
mov dl, byte [0x434444]
mov ax, word [ebp - 0x1c]
call fcn.0041902c
test al, al
je 0x419569
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x419ea0
call fcn.00404890
jmp 0x4197f3
mov dl, byte [0x434440]
mov ax, word [ebp - 0x1c]
call fcn.0041902c
test al, al
je 0x419591
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x419ebc
call fcn.00404890
jmp 0x4197f3
mov dl, byte [0x43444c]
mov ax, word [ebp - 0x1c]
call fcn.0041902c
test al, al
je 0x4195b9
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x419ed8
call fcn.00404890
jmp 0x4197f3
mov dl, byte [0x434438]
mov ax, word [ebp - 0x1c]
call fcn.0041902c
test al, al
je 0x4195e1
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x419eec
call fcn.00404890
jmp 0x4197f3
mov dl, byte [0x43443c]
mov ax, word [ebp - 0x1c]
call fcn.0041902c
test al, al
je 0x419609
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x419f0c
call fcn.00404890
jmp 0x4197f3
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x419f3c
call fcn.00404890
jmp 0x4197f3
cmp dword [ebp - 0xb0], 5
jne 0x4196a5
cmp dword [ebp - 0xac], 0
jne 0x4196a5
mov eax, dword [ebp - 4]
add eax, 4
mov edx, 0x419f58
call fcn.00404890
mov dl, byte [0x434444]
mov ax, word [ebp - 0x1c]
call fcn.0041902c
test al, al
je 0x419668
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x419f7c
call fcn.00404890
jmp 0x4197f3
mov dl, byte [0x434440]
mov ax, word [ebp - 0x1c]
call fcn.0041902c
test al, al
je 0x419690
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x419f98
call fcn.00404890
jmp 0x4197f3
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x419fb0
call fcn.00404890
jmp 0x4197f3
mov dl, byte [0x434440]
mov ax, word [ebp - 0x1c]
call fcn.0041902c
test al, al
je 0x4196cd
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x419fc0
call fcn.00404890
jmp 0x4197f3
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x419fe8
call fcn.00404890
jmp 0x4197f3
mov dl, 1
mov eax, dword [0x4174e8]
call fcn.00417640
mov dword [ebp - 0x14], eax
mov edx, 0x80000002
mov eax, dword [ebp - 0x14]
call fcn.0041771c
xor ecx, ecx
mov edx, 0x419ffc
mov eax, dword [ebp - 0x14]
call fcn.004177d0
lea ecx, [ebp - 0x188]
mov edx, 0x41a034
mov eax, dword [ebp - 0x14]
call fcn.00417b78
mov eax, dword [ebp - 0x188]
lea edx, [ebp - 0x18]
call fcn.00407b44
mov eax, dword [ebp - 0x14]
call fcn.00403ad4
mov edx, 0x41a048
mov eax, dword [ebp - 0x18]
call fcn.00407c6c
test al, al
je 0x419759
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x41a058
call fcn.00404890
jmp 0x41979d
mov edx, 0x41a06c
mov eax, dword [ebp - 0x18]
call fcn.00407c6c
test al, al
je 0x41977c
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x419fb0
call fcn.00404890
jmp 0x41979d
mov edx, 0x41a080
mov eax, dword [ebp - 0x18]
call fcn.00407c6c
test al, al
je 0x41979d
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x419f98
call fcn.00404890
lea eax, [ebp - 0x18c]
push eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x180], eax
mov byte [ebp - 0x17c], 0
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x178], eax
mov byte [ebp - 0x174], 0
lea edx, [ebp - 0x180]
mov ecx, 1
mov eax, 0x41a094
call fcn.0040947c
mov edx, dword [ebp - 0x18c]
mov eax, dword [ebp - 4]
add eax, 8
call fcn.00404ae0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0xb0], 4
jne 0x419903
lea eax, [ebp - 0x190]
lea edx, [ebp - 0xa0]
mov ecx, 0x80
call fcn.00404aac
mov eax, dword [ebp - 0x190]
mov edx, 0x41a0a4
call fcn.00407c6c
test al, al
je 0x419903
mov dl, 1
mov eax, dword [0x4174e8]
call fcn.00417640
mov dword [ebp - 0x14], eax
mov edx, 0x80000002
mov eax, dword [ebp - 0x14]
call fcn.0041771c
xor ecx, ecx
mov edx, 0x41a0bc
mov eax, dword [ebp - 0x14]
call fcn.004177d0
test al, al
je 0x4198a1
lea eax, [ebp - 0x194]
push eax
mov eax, dword [ebp - 0xa8]
and eax, 0xffff
mov dword [ebp - 0x19c], eax
mov byte [ebp - 0x198], 0
lea edx, [ebp - 0x19c]
xor ecx, ecx
mov eax, 0x41a100
call fcn.0040947c
mov edx, dword [ebp - 0x194]
mov eax, dword [ebp - 4]
add eax, 0x24
call fcn.00404890
jmp 0x4198f9
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x180], eax
mov byte [ebp - 0x17c], 6
mov eax, dword [ebp - 0xa8]
and eax, 0xffff
mov dword [ebp - 0x178], eax
mov byte [ebp - 0x174], 0
lea edx, [ebp - 0x180]
mov ecx, 1
mov eax, 0x41a128
call fcn.0040947c
mov edx, dword [ebp - 0x1a0]
mov eax, dword [ebp - 4]
add eax, 0x24
call fcn.00404890
mov eax, dword [ebp - 0x14]
call fcn.00403ad4
jmp 0x41995b
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x180], eax
mov byte [ebp - 0x17c], 6
mov eax, dword [ebp - 0xa8]
and eax, 0xffff
mov dword [ebp - 0x178], eax
mov byte [ebp - 0x174], 0
lea edx, [ebp - 0x180]
mov ecx, 1
mov eax, 0x41a128
call fcn.0040947c
mov edx, dword [ebp - 0x1a4]
mov eax, dword [ebp - 4]
add eax, 0x24
call fcn.00404890
lea eax, [ebp - 0x1a8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x180], eax
mov byte [ebp - 0x17c], 0xb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x178], eax
mov byte [ebp - 0x174], 0xb
lea edx, [ebp - 0x180]
mov ecx, 1
mov eax, 0x41a144
call fcn.0040947c
mov edx, dword [ebp - 0x1a8]
mov eax, dword [ebp - 4]
call fcn.00404890
jmp 0x419bdd
mov eax, dword [ebp - 4]
mov byte [eax + 0xc], 0
mov eax, dword [ebp - 4]
add eax, 0x24
lea edx, [ebp - 0xa0]
mov ecx, 0x80
call fcn.00404aac
cmp dword [ebp - 0xb0], 4
jne 0x419a77
cmp dword [ebp - 0xac], 0
jne 0x419a77
mov eax, dword [ebp - 4]
add eax, 4
mov edx, 0x41a154
call fcn.00404890
mov eax, dword [ebp - 4]
mov byte [eax + 0x10], 2
cmp byte [ebp - 0x9f], 0x43
je 0x419a10
cmp byte [ebp - 0x9f], 0x42
jne 0x419a27
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x41a168
call fcn.00404890
mov eax, dword [ebp - 4]
mov byte [eax + 0x10], 3
lea eax, [ebp - 0x1ac]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x180], eax
mov byte [ebp - 0x17c], 0xb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x178], eax
mov byte [ebp - 0x174], 0xb
lea edx, [ebp - 0x180]
mov ecx, 1
mov eax, 0x41a144
call fcn.0040947c
mov edx, dword [ebp - 0x1ac]
mov eax, dword [ebp - 4]
call fcn.00404890
cmp dword [ebp - 0xb0], 4
jne 0x419b18
cmp dword [ebp - 0xac], 0xa
jne 0x419b18
mov eax, dword [ebp - 4]
add eax, 4
mov edx, 0x41a178
call fcn.00404890
mov eax, dword [ebp - 4]
mov byte [eax + 0x10], 5
cmp byte [ebp - 0x9f], 0x41
jne 0x419ac8
mov eax, dword [ebp - 4]
add eax, 8
mov edx, 0x41a18c
call fcn.00404890
mov eax, dword [ebp - 4]
mov byte [eax + 0x10], 6
lea eax, [ebp - 0x1b0]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x180], eax
mov byte [ebp - 0x17c], 0xb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x178], eax
mov byte [ebp - 0x174], 0xb
lea edx, [ebp - 0x180]
mov ecx, 1
mov eax, 0x41a144
call fcn.0040947c
mov edx, dword [ebp - 0x1b0]
mov eax, dword [ebp - 4]
call fcn.00404890
cmp dword [ebp - 0xb0], 4
jne 0x419bdd
cmp dword [ebp - 0xac], 0x5a
jne 0x419bdd
mov eax, dword [ebp - 4]
add eax, 4
mov edx, 0x41a198
call fcn.00404890
lea eax, [ebp - 0x1b4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x19c], eax
mov byte [ebp - 0x198], 0xb
lea edx, [ebp - 0x19c]
xor ecx, ecx
mov eax, 0x41a1bc
call fcn.0040947c
mov edx, dword [ebp - 0x1b4]
mov eax, dword [ebp - 4]
call fcn.00404890
mov eax, dword [ebp - 4]
mov byte [eax + 0x10], 7
jmp 0x419bdd
mov eax, dword [ebp - 4]
add eax, 4
mov edx, 0x41a1c8
call fcn.00404890
mov eax, dword [ebp - 4]
mov byte [eax + 0xc], 0
lea eax, [ebp - 0x1b8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x19c], eax
mov byte [ebp - 0x198], 0xb
lea edx, [ebp - 0x19c]
xor ecx, ecx
mov eax, 0x41a1bc
call fcn.0040947c
mov edx, dword [ebp - 0x1b8]
mov eax, dword [ebp - 4]
call fcn.00404890
mov eax, dword [ebp - 4]
mov byte [eax + 0x10], 1
lea edx, [ebp - 0x1bc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.00407c90
mov edx, dword [ebp - 0x1bc]
mov eax, dword [ebp - 4]
add eax, 0x24
call fcn.00404890
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419c47
lea eax, [ebp - 0x1bc]
mov edx, 8
call fcn.00404860
lea eax, [ebp - 0x194]
mov edx, 5
call fcn.00404860
lea eax, [ebp - 0x170]
call fcn.0040483c
lea eax, [ebp - 0x18]
call fcn.0040483c
ret