Function at 0x100e0573
Capabilities:
Check if file exists
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ec0a9
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 7
pop ecx
mov esi, str.LightRegulate
lea edi, [ebp - 0x420]
rep movsd dword es:[edi], dword [esi]
push 0x1ec
push 0
lea eax, [ebp - 0x404]
push eax
call fcn.101a01b0
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x100e05e1
cmp dword [ebp + 0xc], 0
je 0x100e05e1
push 2
pop eax
imul eax, eax, 0
xor ecx, ecx
mov edx, dword [ebp + 8]
mov word [edx + eax], cx
lea ecx, [ebp - 0x438]
call fcn.100031b0
and dword [ebp - 4], 0
push 0
push 0
lea eax, [ebp - 0x438]
push eax
push str.AppData
push str.Softwarelightregulate_
push SysReAllocStringLen
call fcn.10021840
add esp, 0x18
lea ecx, [ebp - 0x438]
call fcn.100033b0
movzx eax, al
test eax, eax
je 0x100e06c1
call fcn.100e0bbc
test eax, eax
je 0x100e06c1
push str.SHGetKnownFolderPath
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
je 0x100e06c1
and dword [ebp - 0x440], 0
lea eax, [ebp - 0x440]
push eax
push 0
push 0x8000
push 0x1020ec5c
call dword [ebp - 0x448]
cmp dword [ebp - 0x440], 0
je 0x100e06c1
push dword [ebp - 0x440]
lea ecx, [ebp - 0x438]
call fcn.100032d0
push 0x102285e4
lea ecx, [ebp - 0x438]
call fcn.10003320
push str.LightRegulate
lea ecx, [ebp - 0x438]
call fcn.10003320
push dword [ebp - 0x440]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp - 0x438]
call fcn.100033b0
movzx eax, al
test eax, eax
je 0x100e075e
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.101a01b0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x100e0726
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._APPDATA_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 2
pop eax
imul eax, eax, 0
movzx eax, word [ebp + eax - 0x218]
test eax, eax
je 0x100e075e
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.100032d0
lea ecx, [ebp - 0x438]
call fcn.100033b0
movzx eax, al
test eax, eax
je 0x100e0791
and dword [ebp - 0x450], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.100032a0
mov eax, dword [ebp - 0x450]
jmp 0x100e0882
cmp dword [ebp + 0x10], 0
je 0x100e07c1
lea ecx, [ebp - 0x438]
call fcn.10003390
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100e07c1
lea ecx, [ebp - 0x438]
call fcn.10003390
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp dword [ebp + 8], 0
je 0x100e085c
cmp dword [ebp + 0xc], 0
je 0x100e085c
lea ecx, [ebp - 0x438]
call fcn.10003390
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10013cd0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp - 0x43c]
add eax, 2
mov dword [ebp - 0x44c], eax
mov eax, dword [ebp - 0x43c]
mov ax, word [eax]
mov word [ebp - 0x442], ax
add dword [ebp - 0x43c], 2
cmp word [ebp - 0x442], 0
jne 0x100e0804
mov eax, dword [ebp - 0x43c]
sub eax, dword [ebp - 0x44c]
sar eax, 1
mov dword [ebp - 0x454], eax
mov eax, dword [ebp - 0x454]
mov dword [ebp - 0x45c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.100032a0
mov eax, dword [ebp - 0x45c]
jmp 0x100e0882
lea ecx, [ebp - 0x438]
call fcn.100033a0
mov dword [ebp - 0x458], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.100032a0
mov eax, dword [ebp - 0x458]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret