Function at 0x10016f20
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa50
mov eax, dword [0x10098f00]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0xa50], ecx
mov word [ebp - 0x838], 0
push 0x206
push 0
lea eax, [ebp - 0x836]
push eax
call fcn.1005bf00
add esp, 0xc
mov word [ebp - 0x630], 0
push 0x206
push 0
lea ecx, [ebp - 0x62e]
push ecx
call fcn.1005bf00
add esp, 0xc
push 0
push 0x2b
lea edx, [ebp - 0x838]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x10080fd8
lea eax, [ebp - 0x838]
push eax
call fcn.1005be54
add esp, 8
push 0x10080fdc
lea ecx, [ebp - 0x838]
push ecx
call fcn.1005be54
add esp, 8
push 0x10080fec
lea edx, [ebp - 0x838]
push edx
call fcn.1005be54
add esp, 8
push 0x10080ff0
lea eax, [ebp - 0x838]
push eax
call fcn.1005be54
add esp, 8
push 0x10080ffc
lea ecx, [ebp - 0x838]
push ecx
call fcn.1005be54
add esp, 8
push 0x10081000
lea edx, [ebp - 0x838]
push edx
call fcn.1005be54
add esp, 8
push str..ini
lea eax, [ebp - 0x838]
push eax
call fcn.1005be54
add esp, 8
lea ecx, [ebp - 0x838]
push ecx
push 0x104
lea edx, [ebp - 0x630]
push edx
push 0x10081018
push 0x1008101c
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x10081044
lea eax, [ebp - 0x630]
push eax
call fcn.10015960
add esp, 8
mov dword [ebp - 0x21c], eax
push 0x10081054
lea ecx, [ebp - 0x630]
push ecx
call fcn.10015960
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 0x21c], 0
je 0x100170ba
cmp dword [ebp - 4], 0
je 0x100170ba
lea edx, [ebp - 0x630]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100170ba
lea eax, [ebp - 0x630]
push eax
mov ecx, dword [ebp - 0xa50]
add ecx, 0x1c
push ecx
call fcn.1005be7e
add esp, 8
mov edx, dword [ebp - 0xa50]
mov dword [edx + 0x18], 1
jmp 0x1001733a
mov word [ebp - 0xa48], 0
push 0x206
push 0
lea eax, [ebp - 0xa46]
push eax
call fcn.1005bf00
add esp, 0xc
push str.SOFTWARE_
lea ecx, [ebp - 0xa48]
push ecx
call fcn.1005be7e
add esp, 8
push 0x10081074
lea edx, [ebp - 0xa48]
push edx
call fcn.1005be54
add esp, 8
push 0x10081084
lea eax, [ebp - 0xa48]
push eax
call fcn.1005be54
add esp, 8
push 0x10081088
lea ecx, [ebp - 0xa48]
push ecx
call fcn.1005be54
add esp, 8
lea edx, [ebp - 8]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0xa48]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x83c], eax
cmp dword [ebp - 0x83c], 0
jne 0x1001721d
mov dword [ebp - 0xa4c], 0x104
lea ecx, [ebp - 0xa4c]
push ecx
lea edx, [ebp - 0x630]
push edx
push 0
push 0
push 0x10081094
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x83c], eax
cmp dword [ebp - 0x83c], 0
jne 0x1001721d
push 0x100810ac
lea ecx, [ebp - 0x630]
push ecx
call fcn.10015960
add esp, 8
mov dword [ebp - 0x21c], eax
push 0x100810bc
lea edx, [ebp - 0x630]
push edx
call fcn.10015960
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 0x21c], 0
je 0x1001721d
cmp dword [ebp - 4], 0
je 0x1001721d
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001721d
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x630]
push edx
mov eax, dword [ebp - 0xa50]
add eax, 0x1c
push eax
call fcn.1005be7e
add esp, 8
mov ecx, dword [ebp - 0xa50]
mov dword [ecx + 0x18], 1
jmp 0x1001733a
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea ecx, [ebp - 0x218]
push ecx
call fcn.10017980
add esp, 8
mov word [eax + 2], 0
mov word [ebp - 0x428], 0
push 0x206
push 0
lea edx, [ebp - 0x426]
push edx
call fcn.1005bf00
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push str._sSoftApp.ini
lea ecx, [ebp - 0x428]
push ecx
call fcn.1005c20c
add esp, 0xc
lea edx, [ebp - 0x428]
push edx
push 0x104
lea eax, [ebp - 0x630]
push eax
push 0x100810e4
push str.ConfigPath
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push str.gssoft
lea ecx, [ebp - 0x630]
push ecx
call fcn.10015960
add esp, 8
mov dword [ebp - 0x21c], eax
push str.gswb
lea edx, [ebp - 0x630]
push edx
call fcn.10015960
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 0x21c], 0
je 0x1001732d
cmp dword [ebp - 4], 0
je 0x1001732d
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001732d
lea ecx, [ebp - 0x630]
push ecx
mov edx, dword [ebp - 0xa50]
add edx, 0x1c
push edx
call fcn.1005be7e
add esp, 8
mov eax, dword [ebp - 0xa50]
mov dword [eax + 0x18], 1
jmp 0x1001733a
mov ecx, dword [ebp - 0xa50]
mov dword [ecx + 0x18], 0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.1005b2a2
mov esp, ebp
pop ebp
ret