Function at 0x42c230
Capabilities:
Check os version
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbc4e
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x548a04]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x1c4], 0
lea ecx, [ebp - 0x1c0]
call fcn.00404640
mov dword [ebp - 4], 0
mov dword [ebp - 0x1bc], 0x9c
push 0x98
push 0
lea eax, [ebp - 0x1b8]
push eax
call fcn.004d9ad0
add esp, 0xc
lea ecx, [ebp - 0x1bc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x42c2cc
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetVersionEx_failed_w_err_0x_08lx_n
call fcn.004c377c
push 0xffffffffffffffff
call fcn.004da3fb
mov edx, dword [ebp - 0x1b8]
mov dword [ebp - 0x1cc], edx
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x1c8], eax
push 0x24
push 0
lea ecx, [ebp - 0x1f0]
push ecx
call fcn.004d9ad0
add esp, 0xc
lea edx, [ebp - 0x1f0]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x1cc], 5
jne 0x42c316
cmp dword [ebp - 0x1c8], 0
je 0x42c342
cmp dword [ebp - 0x1cc], 5
jne 0x42c328
cmp dword [ebp - 0x1c8], 1
je 0x42c342
cmp dword [ebp - 0x1cc], 5
jne 0x42c562
cmp dword [ebp - 0x1c8], 2
jne 0x42c562
movzx eax, word [ebp - 0x1f0]
cmp eax, 9
jne 0x42c45a
lea ecx, [ebp - 0x11c]
push ecx
push 0
push 0
push 0x802c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jge 0x42c3de
push 0
push 0
push 0x481
lea edx, [ebp - 0x21c]
push edx
call fcn.00427650
add esp, 8
mov dword [ebp - 0x288], eax
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x28c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x28c]
call fcn.00402880
push eax
call fcn.004c377c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.00402860
push 0
push 0x502a5c
push 0
push 0x502a80
push 0
mov ecx, dword [0x549f78]
call fcn.0040ed70
push 0xffffffffffffffff
call fcn.004da3fb
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x1f4]
call fcn.00404680
mov byte [ebp - 4], 2
push 0x502a9c
lea edx, [ebp - 0x1f4]
push edx
lea eax, [ebp - 0x220]
push eax
call fcn.0040f1d0
add esp, 0xc
mov dword [ebp - 0x290], eax
mov ecx, dword [ebp - 0x290]
mov dword [ebp - 0x294], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x294]
push edx
lea ecx, [ebp - 0x1c0]
call fcn.00404720
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x220]
call fcn.00404700
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1f4]
call fcn.00404700
jmp 0x42c55d
lea eax, [ebp - 0x11c]
push eax
push 0
push 0
push 0x802b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jge 0x42c4e6
push 0
push 0
push 0x481
lea ecx, [ebp - 0x23c]
push ecx
call fcn.00427650
add esp, 8
mov dword [ebp - 0x298], eax
mov edx, dword [ebp - 0x298]
mov dword [ebp - 0x29c], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x29c]
call fcn.00402880
push eax
call fcn.004c377c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x23c]
call fcn.00402860
push 0
push 0x502ab4
push 0
push 0x502ad8
push 0
mov ecx, dword [0x549f78]
call fcn.0040ed70
push 0xffffffffffffffff
call fcn.004da3fb
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x1f8]
call fcn.00404680
mov byte [ebp - 4], 5
push 0x502af4
lea ecx, [ebp - 0x1f8]
push ecx
lea edx, [ebp - 0x240]
push edx
call fcn.0040f1d0
add esp, 0xc
mov dword [ebp - 0x2a0], eax
mov eax, dword [ebp - 0x2a0]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x2a4]
push ecx
lea ecx, [ebp - 0x1c0]
call fcn.00404720
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x240]
call fcn.00404700
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1f8]
call fcn.00404700
jmp 0x42c7ab
movzx edx, word [ebp - 0x1f0]
cmp edx, 9
jne 0x42c691
lea eax, [ebp - 0x1c4]
push eax
push 0
push 0x8000
push 0x502c4c
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jge 0x42c5fe
push 0
push 0
push 0x481
lea ecx, [ebp - 0x25c]
push ecx
call fcn.00427650
add esp, 8
mov dword [ebp - 0x2a8], eax
mov edx, dword [ebp - 0x2a8]
mov dword [ebp - 0x2ac], edx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x2ac]
call fcn.00402880
push eax
call fcn.004c377c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.00402860
push 0
push str.Error_in_locating_COMMON_file_path
push 0
push 0x502b30
push 0
mov ecx, dword [0x549f78]
call fcn.0040ed70
push 0xffffffffffffffff
call fcn.004da3fb
mov eax, dword [ebp - 0x1c4]
push eax
lea ecx, [ebp - 0x1fc]
call fcn.00430fa0
mov byte [ebp - 4], 8
push 0x502b4c
lea ecx, [ebp - 0x1fc]
push ecx
lea edx, [ebp - 0x260]
push edx
call fcn.0040f1d0
add esp, 0xc
mov dword [ebp - 0x2b0], eax
mov eax, dword [ebp - 0x2b0]
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x2b4]
push ecx
lea ecx, [ebp - 0x1c0]
call fcn.00404720
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x260]
call fcn.00404700
mov edx, dword [ebp - 0x1c4]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x1c4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1fc]
call fcn.00404700
jmp 0x42c7ab
lea eax, [ebp - 0x1c4]
push eax
push 0
push 0x8000
push 0x502c5c
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jge 0x42c71d
push 0
push 0
push 0x481
lea ecx, [ebp - 0x27c]
push ecx
call fcn.00427650
add esp, 8
mov dword [ebp - 0x2b8], eax
mov edx, dword [ebp - 0x2b8]
mov dword [ebp - 0x2bc], edx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x2bc]
call fcn.00402880
push eax
call fcn.004c377c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x27c]
call fcn.00402860
push 0
push str.Error_in_locating_License_log_file_path
push 0
push str.RetrieveCommonFilesPath__:
push 0
mov ecx, dword [0x549f78]
call fcn.0040ed70
push 0xffffffffffffffff
call fcn.004da3fb
mov eax, dword [ebp - 0x1c4]
push eax
lea ecx, [ebp - 0x200]
call fcn.00430fa0
mov byte [ebp - 4], 0xb
push str.MatrikonOPCCommon_
lea ecx, [ebp - 0x200]
push ecx
lea edx, [ebp - 0x280]
push edx
call fcn.0040f1d0
add esp, 0xc
mov dword [ebp - 0x2c0], eax
mov eax, dword [ebp - 0x2c0]
mov dword [ebp - 0x2c4], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x2c4]
push ecx
lea ecx, [ebp - 0x1c0]
call fcn.00404720
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x280]
call fcn.00404700
mov edx, dword [ebp - 0x1c4]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x1c4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x200]
call fcn.00404700
lea eax, [ebp - 0x1c0]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404660
mov ecx, dword [ebp - 0x284]
or ecx, 1
mov dword [ebp - 0x284], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c0]
call fcn.00404700
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d91e2
mov esp, ebp
pop ebp
ret