Function at 0x10030110
Capabilities:
Delete registry value
Get common file path
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x1c28
call fcn.1003baf0
mov eax, dword [0x100530a0]
xor eax, esp
mov dword [esp + 0x1c24], eax
mov eax, dword [esp + 0x1c2c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x200
call fcn.1002e850
test al, 0x10
jne 0x1003058f
call fcn.10030a20
test eax, eax
je 0x1003058f
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 4]
push ebp
push esi
push eax
push 0x201
push 0
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push SysReAllocString
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x100301ea
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x434]
push eax
push 0
push 0
push str.EnableAutoUpdateCheck
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0xc]
mov esi, eax
call ebp
test esi, esi
jne 0x100301ea
mov dword [esp + 0x10], esi
call fcn.10030880
test eax, eax
je 0x100301da
push 4
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x43c]
push eax
call fcn.10031690
mov eax, dword [esp + 0x20]
add esp, 0x10
jmp 0x100301e1
mov eax, dword [esp + 0x430]
cmp eax, 0x64
je 0x1003058c
cmp dword [esp + 0x1c40], 0
push edi
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
je 0x1003037b
call fcn.100305b0
test eax, eax
je 0x1003022e
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 0x2021f
push 0
push 0
push 0
push str.SOFTWAREJavaSoftJava_UpdatePolicyjucheck
jmp 0x10030252
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
lea eax, [esp + 0x14]
push eax
push 0
push 0x2021f
push 0
push 0
push 0
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
neg eax
sbb eax, eax
inc eax
test eax, eax
je 0x100302be
mov esi, dword [esp + 0x10]
call fcn.100305b0
mov edi, str.SOFTWAREJavaSoftJava_UpdatePolicyjucheck
test eax, eax
push 0
mov edx, str.SOFTWAREJavaSoftJava_UpdatePolicy
mov ecx, edi
cmove ecx, edx
push str.NotifyDownload
push ecx
push esi
call fcn.10033180
mov esi, dword [esp + 0x20]
call fcn.100305b0
test eax, eax
mov eax, str.SOFTWAREJavaSoftJava_UpdatePolicy
push 1
cmove edi, eax
push str.NotifyInstall
push edi
push esi
call fcn.10033180
add esp, 0x20
push dword [esp + 0x10]
call ebp
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
lea eax, [esp + 0xc34]
push eax
call fcn.1002f3d0
add esp, 4
test eax, eax
jne 0x100302e2
push 1
push eax
call fcn.10031560
add esp, 8
jmp 0x100303c5
lea eax, [esp + 0xc34]
push str.1.6.0_10
push eax
call edi
add esp, 8
test eax, eax
jns 0x10030304
push 1
push 0
call fcn.10031560
add esp, 8
call fcn.100305b0
test eax, eax
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push 0x2021f
push 0
je 0x10030328
push str.SOFTWAREJavaSoftJava_UpdatePolicyjucheck
jmp 0x1003032d
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1003034e
push str.ScheduleId
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [esp + 0x10]
call ebp
lea eax, [esp + 0xc34]
push eax
push 0x100415dc
call edi
add esp, 8
test eax, eax
jle 0x100303c5
call fcn.10033380
call fcn.1002dfb0
mov dword [esp + 0x1c40], 1
jmp 0x100303c5
call fcn.100305b0
test eax, eax
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push 0x2021f
push 0
je 0x1003039f
push str.SOFTWAREJavaSoftJava_UpdatePolicyjucheck
jmp 0x100303a4
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100303c5
push str.ScheduleId
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [esp + 0x10]
call ebp
push 0x400
lea eax, [esp + 0x1438]
push eax
lea eax, [esp + 0xc3c]
push eax
call fcn.1002e8f0
add esp, 0xc
test eax, eax
je 0x1003058b
mov eax, dword [esp + 0x1c]
lea esi, [esp + 0x1434]
test eax, eax
push str.1.6.0_01
cmovne esi, eax
lea eax, [esp + 0xc38]
push eax
call edi
add esp, 8
test eax, eax
js 0x1003042e
call fcn.10030ae0
test eax, eax
je 0x1003042e
lea eax, [esp + 0x1434]
push eax
call fcn.1002d830
add esp, 4
jmp 0x1003058b
lea eax, [esp + 0x20]
push eax
push 0x2021f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x1003058b
lea eax, [esp + 0x1c]
push eax
push 0x20219
push 0
push str.SOFTWAREJavaSoftAuto_Update
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x100304c3
push 0x208
push eax
lea eax, [esp + 0x43c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x434]
push eax
push 0
push 0
push 0x2c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x434]
push str.jusched.exe
push eax
lea eax, [esp + 0x234]
push str._sJavaJava_Update_s
push eax
call esi
add esp, 0x10
push dword [esp + 0x1c]
call ebp
jmp 0x100304e1
push str.jusched.exe
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x234]
push str._s_bin_s
push eax
call esi
add esp, 0x10
lea eax, [esp + 0x22c]
push eax
lea eax, [esp + 0x28]
push str.__s_
push eax
call esi
lea ecx, [esp + 0x30]
add esp, 0xc
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10030500
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [esp + 0x28]
push eax
push 1
push 0
push str.SunJavaUpdateSched
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x20]
call ebp
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x400
push eax
lea eax, [esp + 0x438]
push eax
push str.UpdateTestFlag
push 0
call fcn.1002ed20
add esp, 0x10
test eax, eax
je 0x1003056a
lea eax, [esp + 0x24]
push eax
call fcn.10033920
add esp, 4
cmp dword [esp + 0x1c40], 0
je 0x1003058b
push 1
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x234]
push eax
call fcn.100333b0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c24]
xor ecx, esp
call fcn.1003b4ee
add esp, 0x1c28
ret