Function at 0x465de0
Capabilities:
Check if file exists
Delete file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
mov eax, dword [0x497750]
xor eax, ebp
mov dword [ebp - 0x84], eax
lea ecx, [ebp + 8]
call fcn.00401a00
movzx eax, al
test eax, eax
je 0x465e12
lea ecx, [ebp + 8]
call fcn.004034b0
jmp 0x4666b3
cmp dword [0x49c420], 0
je 0x465e45
push ecx
mov ecx, esp
mov dword [ebp - 0x194], esp
push str.GetSoft_canceled_in_silence_mode_
call fcn.00402e50
mov ecx, 0x49c320
call fcn.0046c9c0
lea ecx, [ebp + 8]
call fcn.004034b0
jmp 0x4666b3
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004029b0
lea ecx, [ebp + 8]
call fcn.00405310
push 0
push 0x4830b4
lea ecx, [ebp + 8]
call fcn.004017b0
cmp eax, 0xffffffff
je 0x465ef5
mov edx, dword [0x49c3f4]
push edx
push str._sgotsoft.xml
lea eax, [ebp - 0x1c]
push eax
call fcn.00402dc0
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00406be0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x465eab
lea ecx, [ebp - 0x1c]
call fcn.00406be0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x2710
push ecx
mov ecx, esp
mov dword [ebp - 0x198], esp
lea edx, [ebp - 0x1c]
push edx
call fcn.004029b0
push ecx
mov ecx, esp
mov dword [ebp - 0x19c], esp
lea eax, [ebp + 8]
push eax
call fcn.004029b0
call fcn.00465770
add esp, 0xc
test eax, eax
jne 0x465ef5
lea ecx, [ebp - 0x1c]
call fcn.004034b0
lea ecx, [ebp + 8]
call fcn.004034b0
jmp 0x4666b3
lea ecx, [ebp - 0x1c]
call fcn.00406be0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x465f1d
lea ecx, [ebp - 0x1c]
call fcn.004034b0
lea ecx, [ebp + 8]
call fcn.004034b0
jmp 0x4666b3
mov dword [ebp - 0x18], 0
push 0x4830e4
lea ecx, [ebp - 0x1c]
call fcn.00406be0
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.0043d5e8
add esp, 0xc
cmp dword [ebp - 0x18], 0
jne 0x465f59
lea ecx, [ebp - 0x1c]
call fcn.004034b0
lea ecx, [ebp + 8]
call fcn.004034b0
jmp 0x4666b3
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.0042b797
lea ecx, [ebp - 0x24]
call fcn.00402df0
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.0042bcfd
test eax, eax
je 0x466687
push 0
push 0x483064
lea ecx, [ebp - 0x24]
call fcn.004017b0
cmp eax, 0xffffffff
je 0x466682
push 0
push str.name
lea ecx, [ebp - 0x24]
call fcn.004017b0
add eax, 6
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.00405070
push 0
push 0x483108
lea ecx, [ebp - 0x24]
call fcn.004017b0
push eax
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00404380
push 0
push 0x48310c
lea ecx, [ebp - 0x24]
call fcn.004017b0
add eax, 9
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.00405070
push 0
push 0x483120
lea ecx, [ebp - 0x24]
call fcn.004017b0
push eax
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x24]
call fcn.00404380
push 0
push 0x483124
lea ecx, [ebp - 0x24]
call fcn.004017b0
add eax, 0xc
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.00405070
push 0
push 0x48313c
lea ecx, [ebp - 0x24]
call fcn.004017b0
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x24]
call fcn.00404380
push 0
push 0x483140
lea ecx, [ebp - 0x24]
call fcn.004017b0
add eax, 7
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.00405070
push 0
push 0x483150
lea ecx, [ebp - 0x24]
call fcn.004017b0
push eax
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00404380
push 0x483154
lea edx, [ebp - 0x30]
push edx
call fcn.00405380
add esp, 8
movzx eax, al
test eax, eax
je 0x4660c8
lea ecx, [ebp - 0x30]
call fcn.004034b0
lea ecx, [ebp - 0x50]
call fcn.004034b0
lea ecx, [ebp - 0x58]
call fcn.004034b0
lea ecx, [ebp - 0x6c]
call fcn.004034b0
jmp 0x465f7b
push 0
push 0x483158
lea ecx, [ebp - 0x24]
call fcn.004017b0
add eax, 9
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.00405070
push 0
push 0x48316c
lea ecx, [ebp - 0x24]
call fcn.004017b0
push eax
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00404380
push 0
push 0x483170
lea ecx, [ebp - 0x24]
call fcn.004017b0
add eax, 9
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.00405070
push 0
push 0x483184
lea ecx, [ebp - 0x24]
call fcn.004017b0
push eax
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x24]
call fcn.00404380
push 0
push 0x483188
lea ecx, [ebp - 0x24]
call fcn.004017b0
add eax, 8
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.00405070
push 0
push 0x483198
lea ecx, [ebp - 0x24]
call fcn.004017b0
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x24]
call fcn.00404380
push 0
push 0x48319c
lea ecx, [ebp - 0x24]
call fcn.004017b0
add eax, 5
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.00405070
push 0
push 0x4831a8
lea ecx, [ebp - 0x24]
call fcn.004017b0
push eax
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00404380
lea ecx, [ebp - 0x4c]
call fcn.00402df0
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
push 0x4831ac
lea eax, [ebp - 0x4c]
push eax
call fcn.00402dc0
add esp, 0x24
lea ecx, [ebp - 0x2c]
call fcn.00402df0
mov ecx, dword [ebp - 0x20]
add ecx, 1
push ecx
push 0x4831d8
lea edx, [ebp - 0x2c]
push edx
call fcn.00402dc0
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.00402df0
mov eax, dword [ebp - 0x20]
add eax, 1
push eax
push str.softshortname_d
lea ecx, [ebp - 0x40]
push ecx
call fcn.00402dc0
add esp, 0xc
lea ecx, [ebp - 0x74]
call fcn.00402df0
mov edx, dword [ebp - 0x20]
add edx, 1
push edx
push 0x483210
lea eax, [ebp - 0x74]
push eax
call fcn.00402dc0
add esp, 0xc
lea ecx, [ebp - 0x48]
call fcn.00402df0
mov ecx, dword [ebp - 0x20]
add ecx, 1
push ecx
push str.softurl_d
lea edx, [ebp - 0x48]
push edx
call fcn.00402dc0
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x1a0], esp
lea eax, [ebp - 0x6c]
push eax
call fcn.004029b0
push ecx
mov ecx, esp
mov dword [ebp - 0x1a4], esp
lea edx, [ebp - 0x2c]
push edx
call fcn.004029b0
call fcn.0045b640
add esp, 8
push ecx
mov ecx, esp
mov dword [ebp - 0x1a8], esp
lea eax, [ebp - 0x4c]
push eax
call fcn.004029b0
push ecx
mov ecx, esp
mov dword [ebp - 0x1ac], esp
lea edx, [ebp - 0x48]
push edx
call fcn.004029b0
call fcn.0045b640
add esp, 8
push ecx
mov ecx, esp
mov dword [ebp - 0x1b0], esp
lea eax, [ebp - 0x50]
push eax
call fcn.004029b0
push ecx
mov ecx, esp
mov dword [ebp - 0x1b4], esp
lea edx, [ebp - 0x40]
push edx
call fcn.004029b0
call fcn.0045b640
add esp, 8
mov dword [ebp - 0x5c], reloc.OLEAUT32.dll_SysReAllocString
push str.HKCU
lea eax, [ebp - 0x3c]
push eax
call fcn.00404730
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x46630d
mov dword [ebp - 0x5c], SysStringLen
jmp 0x46632c
push str.HKCT
lea edx, [ebp - 0x3c]
push edx
call fcn.00404730
add esp, 8
movzx eax, al
test eax, eax
je 0x46632c
mov dword [ebp - 0x5c], SysStringLen
push 0x483254
lea ecx, [ebp - 0x38]
call fcn.00402e50
call fcn.004046a0
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x64]
call fcn.00406be0
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x46635e
mov dword [ebp - 0x1c0], 0
jmp 0x4663bf
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x3fffffff
jle 0x466383
mov dword [ebp - 0x1c4], 0
jmp 0x4663b3
mov eax, dword [ebp - 0x34]
shl eax, 1
call fcn.004456f0
mov dword [ebp - 0x1c8], esp
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x34]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x1c8]
push edx
call fcn.00404650
mov dword [ebp - 0x1c4], eax
mov eax, dword [ebp - 0x1c4]
mov dword [ebp - 0x1c0], eax
lea ecx, [ebp - 0x70]
push ecx
push 0xf003f
push 0
mov edx, dword [ebp - 0x1c0]
push edx
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4664c9
mov dword [ebp - 0x80], 0x104
mov dword [ebp - 0x7c], 1
mov byte [ebp - 0x190], 0
push 0x103
push 0
lea ecx, [ebp - 0x18f]
push ecx
call fcn.0043ad70
add esp, 0xc
lea ecx, [ebp - 0x44]
call fcn.00406be0
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x46642b
mov dword [ebp - 0x1cc], 0
jmp 0x46648c
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x3fffffff
jle 0x466450
mov dword [ebp - 0x1d0], 0
jmp 0x466480
mov eax, dword [ebp - 0x34]
shl eax, 1
call fcn.004456f0
mov dword [ebp - 0x1d4], esp
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x34]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x1d4]
push eax
call fcn.00404650
mov dword [ebp - 0x1d0], eax
mov ecx, dword [ebp - 0x1d0]
mov dword [ebp - 0x1cc], ecx
lea edx, [ebp - 0x80]
push edx
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x7c]
push ecx
push 0
mov edx, dword [ebp - 0x1cc]
push edx
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4664bf
push 0x483258
lea ecx, [ebp - 0x38]
call fcn.00403240
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov ecx, esp
mov dword [ebp - 0x1b8], esp
lea edx, [ebp - 0x38]
push edx
call fcn.004029b0
push ecx
mov ecx, esp
mov dword [ebp - 0x1bc], esp
lea eax, [ebp - 0x74]
push eax
call fcn.004029b0
call fcn.0045b640
add esp, 8
push 0x48325c
lea ecx, [ebp - 0x38]
push ecx
call fcn.00404730
add esp, 8
movzx edx, al
test edx, edx
je 0x466516
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
jl 0x466591
lea ecx, [ebp - 0x38]
call fcn.004034b0
lea ecx, [ebp - 0x48]
call fcn.004034b0
lea ecx, [ebp - 0x74]
call fcn.004034b0
lea ecx, [ebp - 0x40]
call fcn.004034b0
lea ecx, [ebp - 0x2c]
call fcn.004034b0
lea ecx, [ebp - 0x4c]
call fcn.004034b0
lea ecx, [ebp - 0x60]
call fcn.004034b0
lea ecx, [ebp - 0x44]
call fcn.004034b0
lea ecx, [ebp - 0x64]
call fcn.004034b0
lea ecx, [ebp - 0x3c]
call fcn.004034b0
lea ecx, [ebp - 0x30]
call fcn.004034b0
lea ecx, [ebp - 0x50]
call fcn.004034b0
lea ecx, [ebp - 0x58]
call fcn.004034b0
lea ecx, [ebp - 0x6c]
call fcn.004034b0
jmp 0x466687
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 4
jle 0x466612
lea ecx, [ebp - 0x38]
call fcn.004034b0
lea ecx, [ebp - 0x48]
call fcn.004034b0
lea ecx, [ebp - 0x74]
call fcn.004034b0
lea ecx, [ebp - 0x40]
call fcn.004034b0
lea ecx, [ebp - 0x2c]
call fcn.004034b0
lea ecx, [ebp - 0x4c]
call fcn.004034b0
lea ecx, [ebp - 0x60]
call fcn.004034b0
lea ecx, [ebp - 0x44]
call fcn.004034b0
lea ecx, [ebp - 0x64]
call fcn.004034b0
lea ecx, [ebp - 0x3c]
call fcn.004034b0
lea ecx, [ebp - 0x30]
call fcn.004034b0
lea ecx, [ebp - 0x50]
call fcn.004034b0
lea ecx, [ebp - 0x58]
call fcn.004034b0
lea ecx, [ebp - 0x6c]
call fcn.004034b0
jmp 0x466687
lea ecx, [ebp - 0x38]
call fcn.004034b0
lea ecx, [ebp - 0x48]
call fcn.004034b0
lea ecx, [ebp - 0x74]
call fcn.004034b0
lea ecx, [ebp - 0x40]
call fcn.004034b0
lea ecx, [ebp - 0x2c]
call fcn.004034b0
lea ecx, [ebp - 0x4c]
call fcn.004034b0
lea ecx, [ebp - 0x60]
call fcn.004034b0
lea ecx, [ebp - 0x44]
call fcn.004034b0
lea ecx, [ebp - 0x64]
call fcn.004034b0
lea ecx, [ebp - 0x3c]
call fcn.004034b0
lea ecx, [ebp - 0x30]
call fcn.004034b0
lea ecx, [ebp - 0x50]
call fcn.004034b0
lea ecx, [ebp - 0x58]
call fcn.004034b0
lea ecx, [ebp - 0x6c]
call fcn.004034b0
jmp 0x465f7b
mov edx, dword [ebp - 0x18]
push edx
call fcn.0043d6ab
add esp, 4
lea ecx, [ebp - 0x24]
call fcn.004034b0
lea ecx, [ebp - 0x14]
call fcn.0042bbca
lea ecx, [ebp - 0x1c]
call fcn.004034b0
lea ecx, [ebp + 8]
call fcn.004034b0
lea esp, [ebp - 0x1d4]
mov ecx, dword [ebp - 0x84]
xor ecx, ebp
call fcn.0043ad5b
mov esp, ebp
pop ebp
ret