Function at 0x42bf50
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbb97
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x548a04]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20c], 0
lea ecx, [ebp - 0x10]
call fcn.00404640
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c0], 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 0x42bfe9
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x50298c
call fcn.004c377c
push 0xffffffffffffffff
call fcn.004da3fb
mov edx, dword [ebp - 0x1b8]
mov dword [ebp - 0x1c8], edx
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x1c4], eax
cmp dword [ebp - 0x1c8], 5
jne 0x42c013
cmp dword [ebp - 0x1c4], 0
je 0x42c03f
cmp dword [ebp - 0x1c8], 5
jne 0x42c025
cmp dword [ebp - 0x1c4], 1
je 0x42c03f
cmp dword [ebp - 0x1c8], 5
jne 0x42c104
cmp dword [ebp - 0x1c4], 2
jne 0x42c104
lea ecx, [ebp - 0x11c]
push ecx
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jge 0x42c0cb
push 0
push 0
push 0x3f7
lea edx, [ebp - 0x1ec]
push edx
call fcn.00427650
add esp, 8
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x214], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x214]
call fcn.00402880
push eax
call fcn.004c377c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1ec]
call fcn.00402860
push 0
push 0x5029b0
push 0
push 0x5029d8
push 0
mov ecx, dword [0x549f78]
call fcn.0040ed70
push 0xffffffffffffffff
call fcn.004da3fb
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x1cc]
call fcn.00404680
mov byte [ebp - 4], 2
lea edx, [ebp - 0x1cc]
push edx
lea ecx, [ebp - 0x10]
call fcn.00404720
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1cc]
call fcn.00404700
jmp 0x42c1db
lea eax, [ebp - 0x1c0]
push eax
push 0
push 0x8000
push 0x502c3c
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jge 0x42c190
push 0
push 0
push 0x3f7
lea ecx, [ebp - 0x208]
push ecx
call fcn.00427650
add esp, 8
mov dword [ebp - 0x218], eax
mov edx, dword [ebp - 0x218]
mov dword [ebp - 0x21c], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x21c]
call fcn.00402880
push eax
call fcn.004c377c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x208]
call fcn.00402860
push 0
push str.Error_in_locating_license_file_lservrc
push 0
push str.RetrieveLicenseFilePath__:
push 0
mov ecx, dword [0x549f78]
call fcn.0040ed70
push 0xffffffffffffffff
call fcn.004da3fb
mov eax, dword [ebp - 0x1c0]
push eax
lea ecx, [ebp - 0x1d0]
call fcn.00430fa0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1d0]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00404720
mov edx, dword [ebp - 0x1c0]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0x1c0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1d0]
call fcn.00404700
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404660
mov ecx, dword [ebp - 0x20c]
or ecx, 1
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00404700
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d91e2
mov esp, ebp
pop ebp
ret