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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071bf4
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 0x100183a9
or eax, 1
mov dword [0x1008beb0], eax
push 0x68
push 0
push 0x1008be48
mov dword [ebp - 4], 0
call fcn.10045390
add esp, 0xc
call fcn.10005f50
push 0x10074980
call fcn.100438b2
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 0x10018c51
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100183e0
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 0x10018c45
push 0x208
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.10045390
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 0x10018450
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 0x10018c45
push 0x208
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.10045390
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 0x10018c71
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 0x10018502
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 0x10018530
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 0x10018589
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 0x100185ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x10018c45
push 0x80
lea eax, [ebp - 0x90]
push ebx
push eax
call fcn.10045390
add esp, 0xc
push ebx
call fcn.10052ad8
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.100193c0
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x2a4]
cmp dword [eax - 0xc], ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x1001885f
mov eax, dword [0x1008beb0]
mov dword [ebp - 0x2a8], 0
test al, 1
jne 0x1001865e
or eax, 1
mov dword [0x1008beb0], eax
push 0x68
push 0
push 0x1008be48
mov byte [ebp - 4], 4
call fcn.10045390
add esp, 0xc
call fcn.10005f50
push 0x10074980
call fcn.100438b2
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [0x1008be9c]
lea ecx, [ebp - 0x2a8]
call fcn.10034f50
mov byte [ebp - 4], 5
push dword [ebp - 0x2a8]
call ebx
test eax, eax
je 0x1001878a
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x2b8], eax
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x10018c7b
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 0x100186d6
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 0x1001874b
mov eax, dword [0x1008beb0]
test al, 1
jne 0x10018736
or eax, 1
mov dword [0x1008beb0], eax
push 0x68
push 0
push 0x1008be48
mov byte [ebp - 4], 0xa
call fcn.10045390
add esp, 0xc
call fcn.10005f50
push 0x10074980
call fcn.100438b2
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 0x10018763
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 0x10018784
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 0x10018795
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.1004f92a
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.100197d0
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 0x10018800
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 0x10018850
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 0x10018919
lea ecx, [ebp - 0x90]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018870
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.1004f92a
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.100197d0
mov eax, dword [ebp - 0x2a0]
mov edx, eax
lea esi, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x100188e0
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 0x10018930
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 0x10018976
or eax, 1
mov dword [0x1008beb0], eax
push 0x68
push 0
push 0x1008be48
mov byte [ebp - 4], 0xb
call fcn.10045390
add esp, 0xc
call fcn.10005f50
push 0x10074980
call fcn.100438b2
add esp, 4
mov byte [ebp - 4], 3
mov edx, dword [0x1008be9c]
lea ecx, [ebp - 0x29c]
call fcn.10034f50
push dword [ebp - 0x29c]
call ebx
test eax, eax
jne 0x100189ba
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 0x10018a36
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10018a36
mov eax, dword [0x1008beb0]
test al, 1
jne 0x100189f2
or eax, 1
mov dword [0x1008beb0], eax
push 0x68
push 0
push 0x1008be48
mov byte [ebp - 4], 0xd
call fcn.10045390
add esp, 0xc
call fcn.10005f50
push 0x10074980
call fcn.100438b2
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 0x10018a2e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x10018b97
mov ebx, dword [ebp - 0x2bc]
test ebx, ebx
je 0x10018aeb
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018a50
sub ecx, edx
sar ecx, 1
je 0x10018aeb
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 0x10018c85
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 0x10018b8e
mov ecx, dword [ebp - 0x2bc]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018ad0
sub ecx, edx
sar ecx, 1
push ecx
push dword [ebp - 0x2bc]
jmp 0x10018b87
lea ecx, [ebp - 0x90]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018af4
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 0x10018c85
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 0x10018b8e
lea ecx, [ebp - 0x90]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018b70
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.10019650
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 0x10018bb9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
js 0x10018c45
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 0x10018bd0
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 0x1007e874
push dword [ebp - 0x2b4]
call ebx
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x80004005
test eax, eax
jne 0x10018c45
mov esi, dword [ebp - 0x2c4]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018c16
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0
push 0x1007e87c
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.10043277
mov esp, ebp
pop ebp
ret 0x18
push 0x80004005
call fcn.100013a0
push 0x80004005
call fcn.100013a0
push 0x80004005
call fcn.100013a0
int3