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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc043
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x50b0c0]
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 + 0xc]
mov esi, dword [0x5208b8]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2a4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2bc], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2c8], eax
mov dword [ebp - 0x2b0], 0
test esi, esi
je 0x4623bc
lock inc dword [esi + 4]
mov esi, dword [0x5208b8]
mov ecx, dword [0x5208b4]
mov dword [ebp - 0x2ac], ecx
mov dword [ebp - 0x2a8], esi
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2b4]
mov eax, dword [ecx]
push edx
call dword [eax + 0x38]
push 0
lea ecx, [ebp - 0x2b0]
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 - 0x2b4]
or ebx, 0xffffffff
mov dword [ebp - 0x2a0], eax
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46242a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x462454
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x462454
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x462454
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x2a0], 0
jne 0x462b55
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462466
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edi
push 1
push 0
push str.Path
push dword [ebp - 0x2b0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x80004005
test eax, eax
jne 0x462b45
push 0x208
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.004a8730
add esp, 0xc
lea eax, [ebp - 0x298]
push dword [ebp - 0x2a4]
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x298]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4624d5
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x298]
push eax
push 1
push 0
push 0x4ed664
push dword [ebp - 0x2b0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x80004005
test eax, eax
jne 0x462b45
push 0x208
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.004a8730
add esp, 0xc
lea eax, [ebp - 0x298]
push dword [ebp - 0x29c]
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.Laun
lea ecx, [ebp - 0x2a0]
call fcn.00409d80
push str.cher
mov edx, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2b4]
call fcn.00418ff0
lea ecx, [ebp - 0x298]
add esp, 4
lea esi, [ecx + 2]
mov edx, dword [eax]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462580
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 - 0x2b0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x2b4]
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 0x4625d6
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 0x4625fa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x462b45
push 0x80
lea eax, [ebp - 0x90]
push edi
push eax
call fcn.004a8730
push edi
call fcn.004bd64b
push edx
push eax
lea eax, [ebp - 0x90]
push 0x4f2e18
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
mov dword [ebp - 0x2a4], edi
lea eax, [ebp - 0x2a4]
push eax
call fcn.00463430
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x2a4]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [eax - 0xc], edi
je 0x46285b
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x29c], edi
push eax
call fcn.0047f0b0
add esp, 4
mov byte [ebp - 4], 3
push dword [ebp - 0x29c]
call esi
test eax, eax
je 0x46278a
push str.InsTM
lea ecx, [ebp - 0x2b4]
call fcn.00409d80
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x29c]
add eax, 0xfffffff0
push eax
call fcn.00409760
mov edi, eax
add esp, 4
lea eax, [edi + 0x10]
mov dword [ebp - 0x2c0], eax
push eax
call esi
test eax, eax
je 0x462751
mov esi, dword [0x5208b8]
test esi, esi
je 0x4626d8
lock inc dword [esi + 4]
mov esi, dword [0x5208b8]
mov ecx, dword [0x5208b4]
mov dword [ebp - 0x2d0], ecx
mov dword [ebp - 0x2cc], esi
mov byte [ebp - 4], 7
lea edx, [ebp - 0x2b8]
mov eax, dword [ecx]
push edx
call dword [eax + 0xf0]
lea ecx, [edi + 0x10]
push ecx
push 0
push dword [ebp - 0x2b4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x2b8]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46272e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x462751
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x462751
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x462751
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x462769
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x2b4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46278a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2a4]
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x462795
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 - 0x2b0]
call edi
push dword [ebp - 0x2a4]
call fcn.004bba25
cdq
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x2ac], eax
lea eax, [ebp - 0x2a0]
push eax
mov dword [ebp - 0x2a8], edx
mov dword [ebp - 0x2a0], 0
call fcn.00463960
mov eax, dword [ebp - 0x2a0]
mov edx, eax
lea esi, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x462800
sub edx, esi
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push 0
push str.InstallDate
push dword [ebp - 0x2b0]
call edi
mov edx, dword [ebp - 0x2a0]
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 0x46284c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x29c]
jmp 0x46290a
lea ecx, [ebp - 0x90]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462864
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 - 0x2b0]
call edi
lea eax, [ebp - 0x90]
push eax
call fcn.004bba25
cdq
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x2ac], eax
lea eax, [ebp - 0x2a0]
push eax
mov dword [ebp - 0x2a8], edx
mov dword [ebp - 0x2a0], 0
call fcn.00463960
mov eax, dword [ebp - 0x2a0]
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4628d5
sub edx, esi
sar edx, 1
lea ecx, [edx + edx]
push ecx
push eax
push 1
push 0
push str.InstallDate
push dword [ebp - 0x2b0]
call edi
mov edx, dword [ebp - 0x2a0]
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 0x462921
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x29c], 0
push eax
call fcn.0047f0b0
add esp, 4
push dword [ebp - 0x29c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x462974
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x29c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x462a32
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x462a32
mov edi, dword [0x5208b8]
test edi, edi
je 0x462988
lock inc dword [edi + 4]
mov edi, dword [0x5208b8]
mov ecx, dword [0x5208b4]
mov dword [ebp - 0x2d0], ecx
mov dword [ebp - 0x2cc], edi
mov byte [ebp - 4], 9
lea edx, [ebp - 0x2b8]
mov eax, dword [ecx]
push edx
call dword [eax + 0xf0]
push dword [ebp - 0x29c]
push 1
push str.ActFlag
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 0x2b8]
mov dword [ebp - 0x2c0], eax
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4629e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x462a08
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x462a08
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x462a08
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x29c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x462a29
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x2c0], 0
je 0x462a96
mov edi, dword [ebp - 0x2bc]
test edi, edi
je 0x462a6a
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462a41
sub ecx, edx
sar ecx, 1
je 0x462a6a
mov ecx, dword [ebp - 0x2b0]
mov edx, str.ActDate
push edi
call fcn.00462f80
mov ecx, esp
mov esi, eax
push edi
jmp 0x462a8c
mov ecx, dword [ebp - 0x2b0]
lea eax, [ebp - 0x90]
push eax
mov edx, str.ActDate
call fcn.00462f80
mov esi, eax
mov ecx, esp
lea eax, [ebp - 0x90]
push eax
call fcn.00409d80
call fcn.004637e0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2a4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x462ab8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
js 0x462b45
mov esi, dword [ebp - 0x2c4]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462ad0
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 0x4f2cd4
push dword [ebp - 0x2b0]
call ebx
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x80004005
test eax, eax
jne 0x462b45
mov esi, dword [ebp - 0x2c8]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462b16
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0
push 0x4f2d04
push dword [ebp - 0x2b0]
call ebx
neg eax
sbb esi, esi
and esi, 0x80004005
push dword [ebp - 0x2b0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x462b5a
mov eax, 0x80004005
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.004a69a0
mov esp, ebp
pop ebp
ret 0x18