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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf763
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x5000a8]
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 [0x51539c]
mov ebx, 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 0x4596cc
lock inc dword [esi + 4]
mov esi, dword [0x51539c]
mov ecx, dword [0x515398]
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 + 0x34]
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 edi, 0xffffffff
mov dword [ebp - 0x2a0], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45973a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x459764
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x459764
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x459764
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x2a0], 0
jne 0x459dff
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459776
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push ebx
push 1
push 0
push str.Path
push dword [ebp - 0x2b0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4597bb
push dword [ebp - 0x2b0]
mov esi, 0x80004005
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x459e04
push 0x208
lea eax, [ebp - 0x298]
push 0
push eax
call fcn.0049edd0
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x298]
add esp, 0xc
push dword [ebp - 0x2a4]
push ebx
push eax
call esi
lea ecx, [ebp - 0x298]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4597f0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x298]
push eax
push 1
push 0
push 0x4e524c
push dword [ebp - 0x2b0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4597a3
push 0x208
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.0049edd0
add esp, 0xc
lea eax, [ebp - 0x298]
push dword [ebp - 0x29c]
push ebx
push eax
call esi
push str.Laun
lea ecx, [ebp - 0x2a0]
call fcn.00404a60
push str.cher
mov edx, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2b4]
call fcn.00452b50
lea ecx, [ebp - 0x298]
add esp, 4
lea esi, [ecx + 2]
mov edx, dword [eax]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459880
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]
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 0x4598d2
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 - 0x2a0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4598f6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
js 0x459def
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.0049edd0
push 0
call fcn.004b2020
push edx
push eax
lea eax, [ebp - 0x90]
push 0x4e9f34
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
mov dword [ebp - 0x2a4], 0
lea eax, [ebp - 0x2a4]
push eax
call fcn.0045a7d0
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x2a4]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [eax - 0xc], 0
je 0x459b2d
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x29c], 0
push eax
call fcn.00476d50
add esp, 4
mov byte [ebp - 4], 3
push dword [ebp - 0x29c]
call ebx
test eax, eax
je 0x459a99
push str.InsTM
lea ecx, [ebp - 0x2b4]
call fcn.00404a60
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x29c]
add eax, 0xfffffff0
push eax
call fcn.00404470
add esp, 4
lea ebx, [eax + 0x10]
mov dword [ebp - 0x2c0], ebx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x459a57
mov esi, dword [0x51539c]
test esi, esi
je 0x4599e1
lock inc dword [esi + 4]
mov esi, dword [0x51539c]
mov ecx, dword [0x515398]
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 + 0xec]
push ebx
push 0
push dword [ebp - 0x2b4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x2b8]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x459a34
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x459a57
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x459a57
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x459a57
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 5
lea edx, [ebx - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x459a72
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, edi
mov edx, dword [ebp - 0x2b4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x459a93
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push dword [ebp - 0x2a4]
mov ecx, dword [ebp - 0x2b0]
mov edx, str.Date
call fcn.0045a170
push dword [ebp - 0x2a4]
call fcn.004b09f7
cdq
lea ecx, [ebp - 0x2ac]
add esp, 4
mov dword [ebp - 0x2ac], eax
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x2a8], edx
mov dword [ebp - 0x2a0], 0
push eax
call fcn.0045ad10
push dword [ebp - 0x2a0]
mov ecx, dword [ebp - 0x2b0]
mov edx, str.InstallDate
call fcn.0045a170
mov edx, dword [ebp - 0x2a0]
mov esi, eax
add esp, 4
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x459b1e
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 0x459bbb
lea ecx, [ebp - 0x90]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459b36
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 dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x90]
push eax
call fcn.004b09f7
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.0045ad10
push dword [ebp - 0x2a0]
mov ecx, dword [ebp - 0x2b0]
mov edx, str.InstallDate
call fcn.0045a170
mov edx, dword [ebp - 0x2a0]
add esp, 4
mov esi, eax
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x459bd2
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.00476d50
add esp, 4
push dword [ebp - 0x29c]
call ebx
test eax, eax
jne 0x459c21
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x29c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x459ce5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x459ce5
mov ebx, dword [0x51539c]
test ebx, ebx
je 0x459c35
lock inc dword [ebx + 4]
mov ebx, dword [0x51539c]
mov ecx, dword [0x515398]
mov dword [ebp - 0x2d0], ecx
mov dword [ebp - 0x2cc], ebx
mov byte [ebp - 4], 9
lea edx, [ebp - 0x2b8]
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 - 0x2b8]
mov dword [ebp - 0x2c0], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x459c92
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x459cb5
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x459cb5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, edi
lock xadd dword [ebx + 8], eax
jne 0x459cb5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
xor ebx, ebx
mov eax, edi
cmp dword [ebp - 0x2c0], ebx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x29c]
setne bl
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x459ce1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x459d49
mov ebx, dword [ebp - 0x2bc]
test ebx, ebx
je 0x459d1d
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459cf4
sub ecx, edx
sar ecx, 1
je 0x459d1d
mov ecx, dword [ebp - 0x2b0]
mov edx, str.ActDate
push ebx
call fcn.0045a170
mov ecx, esp
mov esi, eax
push ebx
jmp 0x459d3f
mov ecx, dword [ebp - 0x2b0]
lea eax, [ebp - 0x90]
push eax
mov edx, str.ActDate
call fcn.0045a170
mov esi, eax
mov ecx, esp
lea eax, [ebp - 0x90]
push eax
call fcn.00404a60
call fcn.0045ab90
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 0x459d6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
js 0x459def
mov esi, dword [ebp - 0x2c4]
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459d80
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 0x4e9e00
push dword [ebp - 0x2b0]
call ebx
test eax, eax
jne 0x4597a3
mov esi, dword [ebp - 0x2c8]
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459dc0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0
push 0x4e9e08
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 0x459e04
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.0049d3ed
mov esp, ebp
pop ebp
ret 0x18