Function at 0x10019247
Capabilities:
Check if file exists
Query or enumerate registry key

Disassembly:
mov eax, 0x1148
call fcn.1001f210
mov eax, dword [0x1006d1fc]
xor eax, esp
mov dword [esp + 0x1144], eax
push ebx
mov ebx, dword [esp + 0x1150]
lea ecx, [esp + 0x38]
push ebp
mov ebp, dword [esp + 0x1158]
push esi
push edi
xor edi, edi
mov dword [esp + 0x28], ebx
push 0x20019
push 0x10057228
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, 0x80004005
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call fcn.10006af6
test eax, eax
jne 0x100195b0
push 0x20019
push 0x10057234
push dword [esp + 0x4c]
lea ecx, [esp + 0x44]
call fcn.10006af6
test eax, eax
jne 0x100195b0
push 0x20019
push str.Java_Runtime_Environment
push dword [esp + 0x40]
lea ecx, [esp + 0x24]
call fcn.10006af6
test eax, eax
jne 0x100195b0
mov eax, 0x400
mov dword [esp + 0x14], edi
push eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x158]
push edi
push eax
call fcn.10022500
push ebx
push dword [esp + 0x1174]
push ebp
call fcn.10024462
add esp, 0x18
lea eax, [esp + 0x10]
push edi
push edi
push edi
push edi
push eax
lea eax, [esp + 0x168]
push eax
push edi
jmp 0x1001959e
cmp dword [esp + 0x10], 0
mov ecx, edi
mov eax, edi
jbe 0x1001957b
cmp byte [esp + eax + 0x154], 0x2e
jne 0x1001936d
inc ecx
cmp ecx, 1
jg 0x1001937d
inc eax
cmp eax, dword [esp + 0x10]
jb 0x1001935d
cmp ecx, 1
jle 0x1001957b
push 3
lea eax, [esp + 0x158]
push 0x1005725c
push eax
call fcn.10024520
add esp, 0xc
test eax, eax
js 0x1001957b
push 0x20019
lea eax, [esp + 0x158]
push eax
push dword [esp + 0x20]
lea ecx, [esp + 0x38]
call fcn.10006af6
test eax, eax
jne 0x100195b0
push 5
lea eax, [esp + 0x158]
push ebx
push eax
call fcn.10024520
add esp, 0xc
test eax, eax
jne 0x1001957b
mov ecx, ebp
lea eax, [esp + 0x154]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10019402
test dl, dl
je 0x100193fe
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10019402
add eax, 2
add ecx, 2
test dl, dl
jne 0x100193e2
mov eax, edi
jmp 0x10019407
sbb eax, eax
or eax, 1
test eax, eax
js 0x1001957b
mov eax, 0x104
push eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x54]
push edi
push eax
call fcn.10022500
add esp, 0xc
lea eax, [esp + 0x24]
lea ecx, [esp + 0x2c]
push eax
lea eax, [esp + 0x54]
push eax
push 0x10057260
call fcn.10007324
test eax, eax
jne 0x1001957b
mov ebx, 0x400
lea eax, [esp + 0x954]
push ebx
push edi
push eax
call fcn.10022500
add esp, 0xc
lea eax, [esp + 0x954]
push ebx
push eax
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
push ebx
lea eax, [esp + 0xd58]
push edi
push eax
call fcn.10022500
lea ecx, [esp + 0x160]
mov edx, edi
add esp, 0xc
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019490
sub ecx, edi
lea eax, [esp + 0xd54]
mov bl, byte [esp + edx + 0x154]
cmp bl, 0x2e
je 0x100194af
mov byte [eax], bl
inc eax
inc edx
cmp edx, ecx
jbe 0x100194a0
mov ebx, 0x400
lea eax, [esp + 0x554]
push ebx
xor edi, edi
push edi
push eax
call fcn.10022500
lea eax, [esp + 0x960]
push eax
lea eax, [esp + 0x564]
push ebx
push eax
call fcn.10024462
push str._bin_
lea eax, [esp + 0x570]
push ebx
push eax
call fcn.100244bc
mov ebx, dword [esp + 0x4c]
mov ecx, str.npjava
mov eax, str.npjpi
cmp byte [ebx + 2], 0x33
cmove eax, ecx
push eax
lea eax, [esp + 0x57c]
push 0x400
push eax
call fcn.100244bc
lea eax, [esp + 0xd84]
push eax
lea eax, [esp + 0x588]
push 0x400
push eax
call fcn.100244bc
push str..dll
lea eax, [esp + 0x594]
push 0x400
push eax
call fcn.100244bc
add esp, 0x48
lea eax, [esp + 0x554]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1001957b
lea eax, [esp + 0x154]
push eax
push dword [esp + 0x1168]
push ebp
call fcn.10024462
add esp, 0xc
mov esi, edi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push edi
push edi
push edi
push edi
push ecx
lea ecx, [esp + 0x168]
mov dword [esp + 0x24], 0x400
inc eax
push ecx
mov dword [esp + 0x2c], eax
push eax
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1001934e
lea ecx, [esp + 0x2c]
call fcn.10004053
lea ecx, [esp + 0x18]
call fcn.10004053
lea ecx, [esp + 0x38]
call fcn.10004053
lea ecx, [esp + 0x44]
call fcn.10004053
mov ecx, dword [esp + 0x1154]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001efb2
add esp, 0x1148
ret