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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006fc4d
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x10087040]
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 [0x10089eac]
mov dword [ebp - 0x2b4], 0
test al, 1
jne 0x10015a6b
push 0x64
or eax, 1
push 0
push 0x10089e48
mov dword [0x10089eac], eax
call fcn.10043f30
add esp, 0xc
call fcn.10005170
push 0x10072aa0
call fcn.1004245d
add esp, 4
push 0
lea eax, [ebp - 0x2b4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [0x10089e60]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100162e1
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10015aa0
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 0x100162d5
push 0x208
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.10043f30
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 0x10015b10
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x298]
push eax
push 1
push 0
push 0x1007b468
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 0x100162d5
push 0x208
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.10043f30
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 0x10016301
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], 0
call fcn.10005830
test al, al
jne 0x10015bc2
push 4
push str.Laun
lea ecx, [ebp - 0x2a4]
call fcn.10005aa0
push str.cher
lea edx, [ebp - 0x2a4]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2a0]
call fcn.100062c0
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 0x10015bf0
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 0x10015c49
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 0x10015c6d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x100162d5
push 0x80
lea eax, [ebp - 0x90]
push ebx
push eax
call fcn.10043f30
add esp, 0xc
push ebx
call fcn.1004e5a0
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.100169e0
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x2a4]
cmp dword [eax - 0xc], ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x10015f0f
mov eax, dword [0x10089eac]
mov dword [ebp - 0x2a8], 0
test al, 1
jne 0x10015d16
push 0x64
or eax, 1
push 0
push 0x10089e48
mov dword [0x10089eac], eax
call fcn.10043f30
add esp, 0xc
call fcn.10005170
push 0x10072aa0
call fcn.1004245d
add esp, 4
mov edx, dword [0x10089e98]
lea ecx, [ebp - 0x2a8]
call fcn.10026fa0
mov byte [ebp - 4], 3
push dword [ebp - 0x2a8]
call ebx
test eax, eax
je 0x10015e37
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x2b8], eax
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x1001630b
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], 4
call fcn.10005830
test al, al
jne 0x10015d8e
push 0xb
push str.InstallTime
lea ecx, [ebp - 0x29c]
call fcn.10005aa0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2a8]
lea ecx, [ecx - 0x10]
call fcn.10005bd0
mov esi, eax
mov byte [ebp - 4], 3
lea ebx, [esi + 0x10]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10015e00
mov ecx, dword [0x10089eac]
test cl, 1
jne 0x10015deb
push 0x64
or ecx, 1
push 0
push 0x10089e48
mov dword [0x10089eac], ecx
call fcn.10043f30
add esp, 0xc
call fcn.10005170
push 0x10072aa0
call fcn.1004245d
add esp, 4
push ebx
push 0
push dword [ebp - 0x29c]
push dword [0x10089e9c]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10015e14
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x29c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10015e31
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 0x10015e42
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.1004e4ca
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.10016de0
mov eax, dword [ebp - 0x2a0]
mov edx, eax
lea esi, [edx + 2]
nop word [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x10015eb0
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 0x10015f00
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2a8]
jmp 0x10015fc9
lea ecx, [ebp - 0x90]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10015f20
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.1004e4ca
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.10016de0
mov eax, dword [ebp - 0x2a0]
mov edx, eax
lea esi, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x10015f90
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 0x10015fe0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x10089eac]
mov dword [ebp - 0x29c], 0
test al, 1
jne 0x1001601e
push 0x64
or eax, 1
push 0
push 0x10089e48
mov dword [0x10089eac], eax
call fcn.10043f30
add esp, 0xc
call fcn.10005170
push 0x10072aa0
call fcn.1004245d
add esp, 4
mov edx, dword [0x10089e98]
lea ecx, [ebp - 0x29c]
call fcn.10026fa0
push dword [ebp - 0x29c]
call ebx
test eax, eax
jne 0x1001605a
mov edx, dword [ebp - 0x29c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100160ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100160ce
mov eax, dword [0x10089eac]
test al, 1
jne 0x1001608e
push 0x64
or eax, 1
push 0
push 0x10089e48
mov dword [0x10089eac], eax
call fcn.10043f30
add esp, 0xc
call fcn.10005170
push 0x10072aa0
call fcn.1004245d
add esp, 4
push dword [ebp - 0x29c]
push 1
push str.Activate
push dword [0x10089e9c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 0x29c]
mov ebx, eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x100160c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x10016227
mov ebx, dword [ebp - 0x2bc]
test ebx, ebx
je 0x1001617b
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100160e1
sub ecx, edx
sar ecx, 1
je 0x1001617b
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 0x10016315
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], 6
call fcn.10005830
test al, al
jne 0x1001621e
mov ecx, dword [ebp - 0x2bc]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016160
sub ecx, edx
sar ecx, 1
push ecx
push dword [ebp - 0x2bc]
jmp 0x10016217
lea ecx, [ebp - 0x90]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016184
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 0x10016315
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 7
push eax
mov ecx, ebx
call fcn.10005830
test al, al
jne 0x1001621e
lea ecx, [ebp - 0x90]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016200
sub ecx, edx
lea eax, [ebp - 0x90]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.10005aa0
mov byte [ebp - 4], 2
call fcn.10016c60
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 0x10016249
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
js 0x100162d5
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 0x10016260
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 0x1007c45c
push dword [ebp - 0x2b4]
call ebx
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x80004005
test eax, eax
jne 0x100162d5
mov esi, dword [ebp - 0x2c4]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100162a6
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0
push 0x1007c464
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.10041e20
mov esp, ebp
pop ebp
ret 0x18
push 0x80004005
call fcn.100013a0
push 0x80004005
call fcn.100013a0
push 0x80004005
call fcn.100013a0
int3