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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008136f
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x100a1040]
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 + 8]
mov esi, 0x80004005
mov edi, dword [0x100a4098]
mov dword [ebp - 0x2a0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2b8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c0], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2c8], eax
mov dword [ebp - 0x2b4], 0
test edi, edi
je 0x10012ec7
lock inc dword [edi + 4]
mov edi, dword [0x100a4098]
mov ecx, dword [0x100a4094]
mov dword [ebp - 0x2b0], ecx
mov dword [ebp - 0x2ac], edi
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2a4]
mov eax, dword [ecx]
push edx
call dword [eax + 0x34]
push 0
lea ecx, [ebp - 0x2b4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edx, dword [ebp - 0x2a4]
or ebx, 0xffffffff
mov dword [ebp - 0x2a8], eax
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10012f35
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10012f5f
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x10012f5f
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x10012f5f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp dword [ebp - 0x2a8], 0
jne 0x100137cb
mov esi, dword [ebp - 0x2a0]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10012f77
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0
push str.Path
push dword [ebp - 0x2b4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10012fae
mov esi, 0x80004005
jmp 0x100137bf
push 0x208
lea eax, [ebp - 0x298]
push 0
push eax
call fcn.10055b90
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x298]
add esp, 0xc
push dword [ebp - 0x29c]
push esi
push eax
call edi
lea ecx, [ebp - 0x298]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10012fe3
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x298]
push eax
push 1
push 0
push 0x1008f490
push dword [ebp - 0x2b4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10012fa4
push 0x208
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.10055b90
add esp, 0xc
lea eax, [ebp - 0x298]
push dword [ebp - 0x2b8]
push esi
push eax
call edi
call fcn.10004070
mov ecx, eax
test ecx, ecx
je 0x100137eb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2a0], eax
push str.Laun
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 4], 1
call fcn.10007ac0
test al, al
jne 0x10013085
push 4
push str.Laun
lea ecx, [ebp - 0x2a0]
call fcn.10007d40
push str.cher
lea edx, [ebp - 0x2a0]
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x2b8]
call fcn.1000c1f0
lea ecx, [ebp - 0x298]
add esp, 4
lea esi, [ecx + 2]
mov edx, dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100130b0
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 - 0x2b8]
mov edi, eax
mov esi, eax
mov eax, ebx
neg esi
sbb esi, esi
add edx, 0xfffffff0
and esi, 0x80004005
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10013106
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp - 0x2a0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001312a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x100137bf
push 0x80
lea eax, [ebp - 0x90]
push edi
push eax
call fcn.10055b90
add esp, 0xc
push edi
call fcn.10058ddb
add esp, 4
push edx
push eax
lea eax, [ebp - 0x90]
push 0x10092ae4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x2a0], edi
lea eax, [ebp - 0x2a0]
push eax
call fcn.100141f0
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x2a0]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [eax - 0xc], edi
je 0x100133cb
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x2a8], edi
call fcn.100319b0
mov byte [ebp - 4], 4
push dword [ebp - 0x2a8]
call esi
test eax, eax
je 0x100132fb
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x2bc], eax
call fcn.10004070
mov ecx, eax
test ecx, ecx
je 0x100137f5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x29c], eax
push str.InsTM
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 5
call fcn.10007ac0
test al, al
jne 0x1001320d
push 5
push str.InsTM
lea ecx, [ebp - 0x29c]
call fcn.10007d40
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x2a8]
lea ecx, [ecx - 0x10]
call fcn.10007880
mov edi, eax
lea eax, [edi + 0x10]
mov dword [ebp - 0x2b8], eax
push eax
call esi
test eax, eax
je 0x100132c2
mov esi, dword [0x100a4098]
test esi, esi
je 0x10013249
lock inc dword [esi + 4]
mov esi, dword [0x100a4098]
mov ecx, dword [0x100a4094]
mov dword [ebp - 0x2d0], ecx
mov dword [ebp - 0x2cc], esi
mov byte [ebp - 4], 9
lea edx, [ebp - 0x2bc]
mov eax, dword [ecx]
push edx
call dword [eax + 0xec]
lea ecx, [edi + 0x10]
push ecx
push 0
push dword [ebp - 0x29c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x2bc]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001329f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x100132c2
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x100132c2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x100132c2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x100132da
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x29c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100132fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2a0]
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x10013306
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
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 edi
push dword [ebp - 0x2a0]
call fcn.10069596
cdq
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x2b0], eax
lea eax, [ebp - 0x2a4]
push eax
mov dword [ebp - 0x2ac], edx
mov dword [ebp - 0x2a4], 0
call fcn.10014740
mov eax, dword [ebp - 0x2a4]
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x10013370
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 edi
mov edx, dword [ebp - 0x2a4]
neg eax
sbb esi, esi
add edx, 0xfffffff0
and esi, 0x80004005
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100133bc
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 0x1001347a
lea ecx, [ebp - 0x90]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100133d4
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
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 edi
lea eax, [ebp - 0x90]
push eax
call fcn.10069596
cdq
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x2b0], eax
lea eax, [ebp - 0x2a4]
push eax
mov dword [ebp - 0x2ac], edx
mov dword [ebp - 0x2a4], 0
call fcn.10014740
mov eax, dword [ebp - 0x2a4]
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x10013445
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 edi
mov edx, dword [ebp - 0x2a4]
neg eax
sbb esi, esi
and esi, 0x80004005
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10013491
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x29c]
mov dword [ebp - 0x29c], 0
call fcn.100319b0
push dword [ebp - 0x29c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100134e0
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x29c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100135a2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100135a2
mov edi, dword [0x100a4098]
test edi, edi
je 0x100134f4
lock inc dword [edi + 4]
mov edi, dword [0x100a4098]
mov ecx, dword [0x100a4094]
mov dword [ebp - 0x2d0], ecx
mov dword [ebp - 0x2cc], edi
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x2bc]
mov eax, dword [ecx]
push edx
call dword [eax + 0xec]
push dword [ebp - 0x29c]
push 1
push str.ActFlag
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 0x2bc]
mov dword [ebp - 0x2b8], eax
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10013551
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x10013574
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x10013574
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x10013574
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x29c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10013595
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x2b8], 0
je 0x10013717
mov esi, dword [ebp - 0x2c0]
test esi, esi
je 0x10013662
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100135b5
sub ecx, edx
sar ecx, 1
je 0x10013662
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100135d0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
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 edi, esp
and esi, 0x80004005
mov dword [ebp - 0x2b8], edi
call fcn.10004070
mov ecx, eax
test ecx, ecx
je 0x100137ff
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push dword [ebp - 0x2c0]
mov ecx, edi
mov byte [ebp - 4], 0xc
call fcn.10007ac0
test al, al
jne 0x1001370e
mov ecx, dword [ebp - 0x2c0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10013647
sub ecx, edx
sar ecx, 1
push ecx
push dword [ebp - 0x2c0]
jmp 0x10013707
lea ecx, [ebp - 0x90]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10013670
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 edi, esp
and esi, 0x80004005
mov dword [ebp - 0x2b8], edi
call fcn.10004070
mov ecx, eax
test ecx, ecx
je 0x100137ff
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 0xd
push eax
mov ecx, edi
call fcn.10007ac0
test al, al
jne 0x1001370e
lea ecx, [ebp - 0x90]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100136f0
sub ecx, edx
lea eax, [ebp - 0x90]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10007d40
mov byte [ebp - 4], 3
call fcn.100145c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2a0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10013739
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
js 0x100137bf
mov esi, dword [ebp - 0x2c4]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10013750
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 0x1009315c
push dword [ebp - 0x2b4]
call ebx
test eax, eax
jne 0x10012fa4
mov esi, dword [ebp - 0x2c8]
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10013790
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0
push 0x10093164
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.100535a4
mov esp, ebp
pop ebp
ret 0x18
push 0x80004005
call fcn.10001410
push 0x80004005
call fcn.10001410
push 0x80004005
call fcn.10001410
int3