Function at 0x412b78
Capabilities:
Check os version
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc0
lea edx, [esp]
xor eax, eax
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], eax
mov dword [edx + 0x58], eax
mov dword [edx + 0x5c], eax
mov dword [edx + 0x60], eax
mov dword [edx + 0x64], eax
mov dword [edx + 0x68], eax
mov dword [edx + 0x6c], eax
mov dword [edx + 0x70], eax
mov dword [edx + 0x74], eax
mov dword [edx + 0x78], eax
mov dword [edx + 0x7c], eax
mov dword [edx + 0x80], eax
mov dword [edx + 0x84], eax
mov dword [edx + 0x88], eax
mov dword [edx + 0x8c], eax
mov dword [edx + 0x90], eax
mov dword [edx + 0x94], eax
mov dword [edx + 0x98], eax
mov dword [esp], 0x9c
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x412c3a
mov dword [esp], 0x94
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x412eda
mov eax, dword [esp + 0x10]
cmp eax, 2
je 0x412cb2
cmp eax, 1
jne 0x412c96
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x412c86
mov edx, dword [esp + 8]
cmp edx, 0x5a
jae 0x412c7a
cmp edx, 0xa
jae 0x412c6e
mov dword [0x9793c4], 2
jmp 0x412ce9
mov dword [0x9793c4], 3
jmp 0x412ce9
mov dword [0x9793c4], 4
jmp 0x412ce9
mov edx, dword [esp + 8]
mov dword [0x9793c4], 4
jmp 0x412ce9
test eax, eax
jne 0x412eda
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [0x9793c4], 1
jmp 0x412ce9
mov eax, dword [esp + 4]
cmp eax, 5
jb 0x412cdb
mov edx, dword [esp + 8]
test edx, edx
jne 0x412ccf
mov dword [0x9793c4], 6
jmp 0x412ce9
mov dword [0x9793c4], 7
jmp 0x412ce9
mov edx, dword [esp + 8]
mov dword [0x9793c4], 5
mov dword [0x9793c0], eax
mov dword [0x9793bc], edx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
and eax, 0x3ff
cmp eax, 9
je 0x412f1b
cmp eax, 0xc
je 0x412f0c
cmp eax, 7
je 0x412d44
cmp eax, 0x11
jne 0x412d27
mov dword [0x8cf9f0], 3
jmp 0x412d4e
cmp eax, 0xa
jne 0x412d38
mov dword [0x8cf9f0], 4
jmp 0x412d4e
mov dword [0x8cf9f0], 5
jmp 0x412d4e
mov dword [0x8cf9f0], 2
lea edx, [esp + 0x9c]
xor eax, eax
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [edx + 0x20], eax
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [esp + 0x9c]
test eax, eax
je 0x412dac
cmp eax, 3
je 0x412e5d
cmp eax, 6
jne 0x412eda
mov dword [0x9793d4], 6
jmp 0x412e5d
movzx eax, word [esp + 0xbc]
test eax, eax
je 0x412e11
cmp eax, 3
je 0x412ef2
cmp eax, 4
je 0x412ee3
cmp eax, 5
je 0x412e05
cmp eax, 6
jne 0x412de3
mov dword [0x9793d4], 4
jmp 0x412e5d
cmp eax, 0xf
jne 0x412df4
mov dword [0x9793d4], 5
jmp 0x412e5d
cmp eax, 6
jle 0x412e5d
mov dword [0x9793d4], 4
jmp 0x412e5d
mov dword [0x9793d4], 3
jmp 0x412e5d
mov eax, dword [esp + 0xb4]
cmp eax, 0x182
je 0x412e53
cmp eax, 0x1e6
jne 0x412e32
mov dword [0x9793d4], 2
jmp 0x412e5d
cmp eax, 0x24a
jne 0x412e45
mov dword [0x9793d4], 3
jmp 0x412e5d
jbe 0x412e5d
mov dword [0x9793d4], 4
jmp 0x412e5d
mov dword [0x9793d4], 1
movzx eax, word [esp + 0xbe]
mov edx, dword [esp + 0xb0]
mov dword [0x9793d0], eax
mov dword [0x9793cc], edx
call fcn.0041c380
movzx eax, al
test eax, eax
je 0x412e90
mov eax, dword [0x9793c8]
or eax, 1
mov dword [0x9793c8], eax
call fcn.0041c378
movzx eax, al
test eax, eax
je 0x412eb5
mov edx, dword [0x9793c8]
mov eax, dword [0x9793d4]
or edx, 2
cmp eax, 5
je 0x412f01
mov dword [0x9793c8], edx
call fcn.0041c364
movzx eax, al
test eax, eax
je 0x412ece
mov eax, dword [0x9793c8]
or eax, 4
mov dword [0x9793c8], eax
mov eax, 1
add esp, 0xc0
ret
xor eax, eax
add esp, 0xc0
ret
mov dword [0x9793d4], 2
jmp 0x412e5d
mov dword [0x9793d4], 1
jmp 0x412e5d
or edx, 8
mov dword [0x9793c8], edx
jmp 0x412eb5
mov dword [0x8cf9f0], 1
jmp 0x412d4e
mov dword [0x8cf9f0], 0
jmp 0x412d4e