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

Disassembly:
mov eax, 0x1148
call fcn.1001e1d0
mov eax, dword [0x1006a1fc]
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 0x1005444c
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.10034373
test eax, eax
jne 0x1001871f
push 0x20019
push 0x10054458
push dword [esp + 0x4c]
lea ecx, [esp + 0x44]
call fcn.10034373
test eax, eax
jne 0x1001871f
push 0x20019
push str.Java_Runtime_Environment
push dword [esp + 0x40]
lea ecx, [esp + 0x24]
call fcn.10034373
test eax, eax
jne 0x1001871f
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.10020dd0
push ebx
push dword [esp + 0x1174]
push ebp
call fcn.10034373
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 0x1001870d
cmp dword [esp + 0x10], 0
mov ecx, edi
mov eax, edi
jbe 0x100186ea
cmp byte [esp + eax + 0x154], 0x2e
jne 0x100184dc
inc ecx
cmp ecx, 1
jg 0x100184ec
inc eax
cmp eax, dword [esp + 0x10]
jb 0x100184cc
cmp ecx, 1
jle 0x100186ea
push 3
lea eax, [esp + 0x158]
push 0x10054480
push eax
call fcn.100233a0
add esp, 0xc
test eax, eax
js 0x100186ea
push 0x20019
lea eax, [esp + 0x158]
push eax
push dword [esp + 0x20]
lea ecx, [esp + 0x38]
call fcn.10034373
test eax, eax
jne 0x1001871f
push 5
lea eax, [esp + 0x158]
push ebx
push eax
call fcn.100233a0
add esp, 0xc
test eax, eax
jne 0x100186ea
mov ecx, ebp
lea eax, [esp + 0x154]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10018571
test dl, dl
je 0x1001856d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10018571
add eax, 2
add ecx, 2
test dl, dl
jne 0x10018551
mov eax, edi
jmp 0x10018576
sbb eax, eax
or eax, 1
test eax, eax
js 0x100186ea
mov eax, 0x104
push eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x54]
push edi
push eax
call fcn.10020dd0
add esp, 0xc
lea eax, [esp + 0x24]
lea ecx, [esp + 0x2c]
push eax
lea eax, [esp + 0x54]
push eax
push 0x10054484
call fcn.10034373
test eax, eax
jne 0x100186ea
mov ebx, 0x400
lea eax, [esp + 0x954]
push ebx
push edi
push eax
call fcn.10020dd0
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.10020dd0
lea ecx, [esp + 0x160]
mov edx, edi
add esp, 0xc
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100185ff
sub ecx, edi
lea eax, [esp + 0xd54]
mov bl, byte [esp + edx + 0x154]
cmp bl, 0x2e
je 0x1001861e
mov byte [eax], bl
inc eax
inc edx
cmp edx, ecx
jbe 0x1001860f
mov ebx, 0x400
lea eax, [esp + 0x554]
push ebx
xor edi, edi
push edi
push eax
call fcn.10020dd0
lea eax, [esp + 0x960]
push eax
lea eax, [esp + 0x564]
push ebx
push eax
call fcn.10034373
push str._bin_
lea eax, [esp + 0x570]
push ebx
push eax
call fcn.10034373
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.10034373
lea eax, [esp + 0xd84]
push eax
lea eax, [esp + 0x588]
push 0x400
push eax
call fcn.10034373
push str..dll
lea eax, [esp + 0x594]
push 0x400
push eax
call fcn.10034373
add esp, 0x48
lea eax, [esp + 0x554]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x100186ea
lea eax, [esp + 0x154]
push eax
push dword [esp + 0x1168]
push ebp
call fcn.10034373
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 0x100184bd
lea ecx, [esp + 0x2c]
call fcn.10003fa0
lea ecx, [esp + 0x18]
call fcn.10003fa0
lea ecx, [esp + 0x38]
call fcn.10003fa0
lea ecx, [esp + 0x44]
call fcn.10003fa0
mov ecx, dword [esp + 0x1154]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001df6b
add esp, 0x1148
ret