Function at 0x100185c0
Capabilities:
Check if file exists
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10072014
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x10089040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, 0x80004005
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x2a0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2bc], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2c4], eax
mov eax, dword [0x1008beb0]
mov dword [ebp - 0x2b4], 0
test al, 1
jne 0x10018669
or eax, 1
mov dword [0x1008beb0], eax
push 0x68
push 0
push 0x1008be48
mov dword [ebp - 4], 0
call fcn.10045770
add esp, 0xc
call fcn.10005f50
push 0x10074db0
call fcn.10043c72
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
lea eax, [ebp - 0x2b4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [0x1008be60]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10018f11
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100186a0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edi
push 1
push 0
push str.Path
push dword [ebp - 0x2b4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x80004005
test eax, eax
jne 0x10018f05
push 0x208
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.10045770
add esp, 0xc
lea eax, [ebp - 0x298]
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push edi
push eax
call ebx
lea ecx, [ebp - 0x298]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018710
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x298]
push eax
push 1
push 0
push 0x1007d468
push dword [ebp - 0x2b4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x80004005
test eax, eax
jne 0x10018f05
push 0x208
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.10045770
add esp, 0xc
lea eax, [ebp - 0x298]
push dword [ebp - 0x2a0]
push edi
push eax
call ebx
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x10018f31
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2a4], eax
push str.Laun
lea ecx, [ebp - 0x2a4]
mov dword [ebp - 4], 1
call fcn.10005aa0
test al, al
jne 0x100187c2
push 4
push str.Laun
lea ecx, [ebp - 0x2a4]
call fcn.10005d10
push str.cher
lea edx, [ebp - 0x2a4]
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x2a0]
call fcn.100051c0
lea ecx, [ebp - 0x298]
add esp, 4
lea esi, [ecx + 2]
mov edx, dword [eax]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100187f0
sub ecx, esi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x298]
push eax
push 1
push 0
push edx
push dword [ebp - 0x2b4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x2a0]
mov ebx, eax
mov esi, eax
neg esi
sbb esi, esi
or edi, 0xffffffff
and esi, 0x80004005
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10018849
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x2a4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001886d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x10018f05
push 0x80
lea eax, [ebp - 0x90]
push ebx
push eax
call fcn.10045770
add esp, 0xc
push ebx
call fcn.10052eb8
add esp, 4
push edx
push eax
lea eax, [ebp - 0x90]
push str._I64d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x2a4], ebx
lea eax, [ebp - 0x2a4]
push eax
call fcn.10019680
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x2a4]
cmp dword [eax - 0xc], ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x10018b1f
mov eax, dword [0x1008beb0]
mov dword [ebp - 0x2a8], 0
test al, 1
jne 0x1001891e
or eax, 1
mov dword [0x1008beb0], eax
push 0x68
push 0
push 0x1008be48
mov byte [ebp - 4], 4
call fcn.10045770
add esp, 0xc
call fcn.10005f50
push 0x10074db0
call fcn.10043c72
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [0x1008be9c]
lea ecx, [ebp - 0x2a8]
call fcn.100351e0
mov byte [ebp - 4], 5
push dword [ebp - 0x2a8]
call ebx
test eax, eax
je 0x10018a4a
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x2b8], eax
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x10018f3b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x29c], eax
push str.InstallTime
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 6
call fcn.10005aa0
test al, al
jne 0x10018996
push 0xb
push str.InstallTime
lea ecx, [ebp - 0x29c]
call fcn.10005d10
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x2a8]
lea ecx, [ecx - 0x10]
call fcn.10005e40
mov esi, eax
lea ebx, [esi + 0x10]
mov dword [ebp - 0x2b8], ebx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10018a0b
mov eax, dword [0x1008beb0]
test al, 1
jne 0x100189f6
or eax, 1
mov dword [0x1008beb0], eax
push 0x68
push 0
push 0x1008be48
mov byte [ebp - 4], 0xa
call fcn.10045770
add esp, 0xc
call fcn.10005f50
push 0x10074db0
call fcn.10043c72
add esp, 4
push ebx
push 0
push dword [ebp - 0x29c]
push dword [0x1008bea0]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [ebp - 4], 8
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10018a23
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0x29c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10018a44
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov eax, dword [ebp - 0x2a4]
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x10018a55
sub edx, esi
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push 0
push str.Date
push dword [ebp - 0x2b4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2a4]
call fcn.1004fd0a
cdq
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x2b0], eax
lea eax, [ebp - 0x2a0]
push eax
mov dword [ebp - 0x2ac], edx
mov dword [ebp - 0x2a0], 0
call fcn.10019a90
mov eax, dword [ebp - 0x2a0]
mov edx, eax
lea esi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x10018ac0
sub edx, esi
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push 0
push str.InstallDate
push dword [ebp - 0x2b4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x2a0]
neg eax
sbb esi, esi
add edx, 0xfffffff0
and esi, 0x80004005
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10018b10
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2a8]
jmp 0x10018bd9
lea ecx, [ebp - 0x90]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018b30
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x90]
push eax
push 1
push 0
push str.Date
push dword [ebp - 0x2b4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x90]
push eax
call fcn.1004fd0a
cdq
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x2b0], eax
lea eax, [ebp - 0x2a0]
push eax
mov dword [ebp - 0x2ac], edx
mov dword [ebp - 0x2a0], 0
call fcn.10019a90
mov eax, dword [ebp - 0x2a0]
mov edx, eax
lea esi, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x10018ba0
sub edx, esi
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push 0
push str.InstallDate
push dword [ebp - 0x2b4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x2a0]
neg eax
sbb esi, esi
and esi, 0x80004005
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10018bf0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x1008beb0]
mov dword [ebp - 0x29c], 0
test al, 1
jne 0x10018c36
or eax, 1
mov dword [0x1008beb0], eax
push 0x68
push 0
push 0x1008be48
mov byte [ebp - 4], 0xb
call fcn.10045770
add esp, 0xc
call fcn.10005f50
push 0x10074db0
call fcn.10043c72
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [0x1008be9c]
lea ecx, [ebp - 0x29c]
call fcn.100351e0
push dword [ebp - 0x29c]
call ebx
test eax, eax
jne 0x10018c7a
mov byte [ebp - 4], 3
mov eax, edi
mov edx, dword [ebp - 0x29c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10018cf6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10018cf6
mov eax, dword [0x1008beb0]
test al, 1
jne 0x10018cb2
or eax, 1
mov dword [0x1008beb0], eax
push 0x68
push 0
push 0x1008be48
mov byte [ebp - 4], 0xd
call fcn.10045770
add esp, 0xc
call fcn.10005f50
push 0x10074db0
call fcn.10043c72
add esp, 4
push dword [ebp - 0x29c]
push 1
push str.Activate
push dword [0x1008bea0]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov byte [ebp - 4], 3
mov ebx, eax
mov edx, dword [ebp - 0x29c]
mov ecx, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10018cee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x10018e57
mov ebx, dword [ebp - 0x2bc]
test ebx, ebx
je 0x10018dab
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018d10
sub ecx, edx
sar ecx, 1
je 0x10018dab
lea eax, [ecx + ecx]
push eax
push ebx
push 1
push 0
push str.ActDate
push dword [ebp - 0x2b4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
push ecx
sbb esi, esi
mov ebx, esp
and esi, 0x80004005
mov dword [ebp - 0x2b8], ebx
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x10018f45
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push dword [ebp - 0x2bc]
mov ecx, ebx
mov byte [ebp - 4], 0xe
call fcn.10005aa0
test al, al
jne 0x10018e4e
mov ecx, dword [ebp - 0x2bc]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018d90
sub ecx, edx
sar ecx, 1
push ecx
push dword [ebp - 0x2bc]
jmp 0x10018e47
lea ecx, [ebp - 0x90]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018db4
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x90]
push eax
push 1
push 0
push str.ActDate
push dword [ebp - 0x2b4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
push ecx
sbb esi, esi
mov ebx, esp
and esi, 0x80004005
mov dword [ebp - 0x2b8], ebx
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x10018f45
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 0xf
push eax
mov ecx, ebx
call fcn.10005aa0
test al, al
jne 0x10018e4e
lea ecx, [ebp - 0x90]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018e30
sub ecx, edx
lea eax, [ebp - 0x90]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.10005d10
mov byte [ebp - 4], 3
call fcn.10019910
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2a4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x10018e79
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
js 0x10018f05
mov esi, dword [ebp - 0x2c0]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018e90
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0
push 0x1007e88c
push dword [ebp - 0x2b4]
call ebx
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x80004005
test eax, eax
jne 0x10018f05
mov esi, dword [ebp - 0x2c4]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018ed6
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0
push 0x1007e894
push dword [ebp - 0x2b4]
call ebx
neg eax
sbb esi, esi
and esi, 0x80004005
push dword [ebp - 0x2b4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10043637
mov esp, ebp
pop ebp
ret 0x18
push 0x80004005
call fcn.100013a0
push 0x80004005
call fcn.100013a0
push 0x80004005
call fcn.100013a0
int3