Function at 0x10021fe0
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x1020
call fcn.100378e0
mov eax, dword [0x1004f860]
xor eax, esp
mov dword [esp + 0x101c], eax
mov eax, dword [esp + 0x1024]
push ebx
mov ebx, dword [esp + 0x1034]
push esi
push edi
push 0xffe
xor edi, edi
lea edx, [esp + 0x2e]
xor ecx, ecx
push edi
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], ebx
mov word [esp + 0x34], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [esp + 0x10], 0x800
mov esi, 0x20019
cmp ebx, edi
je 0x10022056
mov esi, dword [ebx]
neg esi
sbb esi, esi
and esi, 0x100
add esi, 0x100
or esi, 0x20019
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0xc], edi
push esi
lea ecx, [esp + 0x1c]
cmp dword [esp + 0x103c], edi
je 0x1002207b
push str.SOFTWAREJavaSoftJava_Plug_in
jmp 0x10022098
push str.SOFTWAREJavaSoftJRE
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10003190
cmp eax, edi
je 0x100220cf
push esi
push str.SOFTWAREJavaSoftJava_Runtime_Environment
lea ecx, [esp + 0x20]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10003190
cmp eax, edi
je 0x100220cf
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x100220b5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x101c]
xor ecx, esp
call fcn.1003779c
add esp, 0x1020
ret
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebp
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x1c]
push eax
push edi
push edi
push edi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x40]
push edx
push edi
push ebp
call ebx
mov esi, eax
test esi, esi
jne 0x100221c0
lea ebx, [ebx]
cmp dword [esp + 0x103c], 0
je 0x10022152
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.1001e250
add esp, 8
test eax, eax
je 0x10022132
lea ecx, [esp + 0x2c]
push esi
push ecx
call fcn.1001e5f0
add esp, 8
test eax, eax
jne 0x10022152
push str.Ignore_invalid_deploy_version:
call fcn.10004ff0
lea edx, [esp + 0x30]
push edx
call fcn.10004ff0
add esp, 8
xor eax, eax
mov word [esp + 0x2c], ax
jmp 0x10022194
cmp word [esp + 0x2c], 0
je 0x10022194
test edi, edi
je 0x10022174
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.10016c30
add esp, 8
test eax, eax
jle 0x10022194
mov ecx, dword [esp + 0x1038]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
push 0x1003c898
push ecx
push edx
call dword [sym.imp.MSVCR100.dll_swprintf_s]
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x40]
push edx
inc edi
push edi
push ebp
mov dword [esp + 0x34], 0x800
call ebx
mov esi, eax
test esi, esi
je 0x10022100
cmp dword [esp + 0x103c], 0
je 0x100221d1
push str.Latest_deploy_version:
jmp 0x100221d6
push str.Latest_JRE_version:
call fcn.10004ff0
mov edi, dword [esp + 0x1c]
add esp, 4
push edi
call fcn.10004ff0
add esp, 4
test esi, esi
je 0x100221f7
cmp esi, 0x103
jne 0x100221ff
mov dword [esp + 0x10], 1
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10022204
sub eax, edx
sar eax, 1
jne 0x1002221d
mov dword [esp + 0x10], 0
test ebp, ebp
je 0x10022228
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x102c]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003779c
add esp, 0x1020
ret