Function at 0x40902d
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b8
mov dword [ebp - 0x3b4], ecx
cmp dword [0x449d48], 0
je 0x40904c
mov al, 1
jmp 0x40952d
push 0x9c
push 0
lea eax, [ebp - 0x9c]
push eax
call fcn.00415b10
add esp, 0xc
mov dword [ebp - 0x9c], 0x9c
lea ecx, [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4090eb
mov byte [0x449d08], 0
mov dword [ebp - 0x9c], 0x94
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4090ba
push 0x104
lea eax, [ebp - 0x1a0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor al, al
jmp 0x40952d
mov ecx, dword [ebp - 0x98]
mov dword [0x449d0c], ecx
mov edx, dword [ebp - 0x94]
mov dword [0x449d10], edx
mov eax, dword [ebp - 0x90]
mov dword [0x449d14], eax
mov ecx, dword [ebp - 0x8c]
mov dword [0x449d18], ecx
jmp 0x409149
mov byte [0x449d08], 1
mov edx, dword [ebp - 0x98]
mov dword [0x449d0c], edx
mov eax, dword [ebp - 0x94]
mov dword [0x449d10], eax
mov ecx, dword [ebp - 0x90]
mov dword [0x449d14], ecx
mov edx, dword [ebp - 0x8c]
mov dword [0x449d18], edx
mov ax, word [ebp - 8]
mov word [0x449d1c], ax
mov cx, word [ebp - 6]
mov word [0x449d1e], cx
mov dx, word [ebp - 4]
mov word [0x449d20], dx
mov al, byte [ebp - 2]
mov byte [0x449d22], al
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x3b8], ecx
cmp dword [ebp - 0x3b8], 0
je 0x40951a
cmp dword [ebp - 0x3b8], 1
je 0x40949b
cmp dword [ebp - 0x3b8], 2
je 0x40917d
jmp 0x409521
cmp dword [ebp - 0x98], 6
jb 0x4091a9
mov byte [0x449d47], 1
mov byte [0x449d44], 1
mov byte [0x449d40], 1
mov byte [0x449d42], 1
mov byte [0x449d44], 1
cmp dword [ebp - 0x98], 5
jne 0x4091d7
cmp dword [ebp - 0x94], 2
jne 0x4091d7
mov byte [0x449d45], 1
mov byte [0x449d40], 1
mov byte [0x449d42], 1
mov byte [0x449d44], 1
cmp dword [ebp - 0x98], 5
jne 0x409205
cmp dword [ebp - 0x94], 1
jne 0x409205
mov byte [0x449d43], 1
mov byte [0x449d40], 1
mov byte [0x449d42], 1
mov byte [0x449d44], 1
cmp dword [ebp - 0x98], 5
jne 0x40922c
cmp dword [ebp - 0x94], 0
jne 0x40922c
mov byte [0x449d41], 1
mov byte [0x449d40], 1
mov byte [0x449d42], 1
cmp dword [ebp - 0x98], 4
ja 0x409243
mov byte [0x449d3e], 1
mov byte [0x449d40], 1
xor edx, edx
mov dl, byte [0x449d08]
test edx, edx
je 0x4093a8
mov eax, dword [ebp - 2]
and eax, 0xff
cmp eax, 1
jne 0x4092a0
cmp dword [ebp - 0x98], 4
jne 0x409272
mov byte [0x449d3f], 1
jmp 0x40929b
mov ecx, dword [ebp - 4]
and ecx, 0xffff
and ecx, 0x200
test ecx, ecx
je 0x409291
mov dword [0x449d28], 0
jmp 0x40929b
mov dword [0x449d28], 1
jmp 0x4093a3
mov edx, dword [ebp - 2]
and edx, 0xff
cmp edx, 3
jne 0x4093a3
cmp dword [ebp - 0x98], 5
jne 0x409326
cmp dword [ebp - 0x94], 2
jne 0x409326
mov eax, dword [ebp - 4]
and eax, 0xffff
and eax, 0x80
test eax, eax
je 0x4092e1
mov dword [0x449d34], 3
jmp 0x409324
mov ecx, dword [ebp - 4]
and ecx, 0xffff
and ecx, 2
test ecx, ecx
je 0x4092fd
mov dword [0x449d34], 2
jmp 0x409324
mov edx, dword [ebp - 4]
and edx, 0xffff
cmp edx, 0x400
jne 0x40931a
mov dword [0x449d34], 1
jmp 0x409324
mov dword [0x449d34], 0
jmp 0x4093a3
cmp dword [ebp - 0x98], 5
jne 0x40937d
cmp dword [ebp - 0x94], 0
jne 0x40937d
mov eax, dword [ebp - 4]
and eax, 0xffff
and eax, 0x80
test eax, eax
je 0x409355
mov dword [0x449d30], 2
jmp 0x40937b
mov ecx, dword [ebp - 4]
and ecx, 0xffff
and ecx, 2
test ecx, ecx
je 0x409371
mov dword [0x449d30], 1
jmp 0x40937b
mov dword [0x449d30], 0
jmp 0x4093a3
mov edx, dword [ebp - 4]
and edx, 0xffff
and edx, 2
test edx, edx
je 0x409399
mov dword [0x449d2c], 1
jmp 0x4093a3
mov dword [0x449d2c], 0
jmp 0x409496
mov dword [ebp - 0x3a8], 0x200
mov dword [ebp - 0x3b0], 0x200
lea eax, [ebp - 0x3ac]
push eax
push 1
push 0
push 0x445598
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x1a4], eax
cmp dword [ebp - 0x1a4], 0
jne 0x409496
lea ecx, [ebp - 0x3b0]
push ecx
lea edx, [ebp - 0x3a4]
push edx
push 0
push 0
push 0x4455c8
mov eax, dword [ebp - 0x3ac]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x1a4], eax
cmp dword [ebp - 0x1a4], 0
jne 0x409496
cmp dword [ebp - 0x3b0], 0x200
ja 0x409496
mov ecx, dword [ebp - 0x3ac]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x3a4]
push edx
push 0x4455d4
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x409456
mov dword [0x449d24], 0
lea eax, [ebp - 0x3a4]
push eax
push 0x4455dc
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x409476
mov dword [0x449d24], 1
lea ecx, [ebp - 0x3a4]
push ecx
push 0x4455e8
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x409496
mov dword [0x449d24], 2
jmp 0x409521
cmp dword [ebp - 0x98], 4
jne 0x4094d3
cmp dword [ebp - 0x94], 0
jne 0x4094d3
mov byte [0x449d39], 1
movsx edx, byte [ebp - 0x87]
cmp edx, 0x43
je 0x4094cc
movsx eax, byte [ebp - 0x87]
cmp eax, 0x42
jne 0x4094d3
mov byte [0x449d3a], 1
cmp dword [ebp - 0x98], 4
jne 0x4094ff
cmp dword [ebp - 0x94], 0xa
jne 0x4094ff
mov byte [0x449d3b], 1
movsx ecx, byte [ebp - 0x87]
cmp ecx, 0x41
jne 0x4094ff
mov byte [0x449d3c], 1
cmp dword [ebp - 0x98], 4
jne 0x409518
cmp dword [ebp - 0x94], 0x5a
jne 0x409518
mov byte [0x449d3d], 1
jmp 0x409521
mov byte [0x449d38], 1
mov dword [0x449d48], 1
mov al, 1
mov esp, ebp
pop ebp
ret