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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f025c
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x10136674]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x228], eax
test edi, edi
je 0x10018d3f
test esi, esi
je 0x10018d3f
xor eax, eax
cmp ax, word [esi]
je 0x10018d3f
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.1007bae0
add esp, 0xc
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
cmp dword [ebp + 0x18], 0
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0
je 0x10018a88
push 0x20119
jmp 0x10018a8d
push 0x20219
push esi
push edi
call fcn.100198d0
mov edi, dword [ebp - 0x234]
test eax, eax
jne 0x10018af6
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10018af6
mov eax, dword [ebp - 0x220]
cmp eax, 1
je 0x10018adb
cmp eax, 2
jne 0x10018af6
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x10018b0a
test al, 1
jne 0x10018af6
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x10018b13
xor esi, esi
test edi, edi
je 0x10018b03
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10018d41
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.10005750
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.1001b250
lea ecx, [ebp - 0x21c]
call fcn.1001b350
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
jne 0x10018b5a
lea ecx, [ebp - 0x21c]
xor esi, esi
call fcn.10005ad0
jmp 0x10018af8
push 1
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.10006730
mov ecx, 0x100fdf80
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10018b9b
test dx, dx
je 0x10018b97
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10018b9b
add eax, 4
add ecx, 4
test dx, dx
jne 0x10018b75
xor esi, esi
jmp 0x10018ba0
sbb esi, esi
or esi, 1
lea ecx, [ebp - 0x220]
call fcn.10005ad0
test esi, esi
jne 0x10018beb
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x21c]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.10010570
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.1000e760
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.10005ad0
push 1
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.10010570
mov ecx, 0x100fdf80
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10018c2c
test dx, dx
je 0x10018c28
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10018c2c
add eax, 4
add ecx, 4
test dx, dx
jne 0x10018c06
xor esi, esi
jmp 0x10018c31
sbb esi, esi
or esi, 1
lea ecx, [ebp - 0x220]
call fcn.10005ad0
test esi, esi
jne 0x10018c7c
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x21c]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.10006730
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
call fcn.1000e760
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.10005ad0
mov ebx, dword [ebp - 0x228]
test ebx, ebx
je 0x10018d21
cmp word [ebx], 0
je 0x10018d21
mov edx, dword [ebp - 0x21c]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or ecx, eax
jge 0x10018cc4
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.100073f0
mov edx, dword [ebp - 0x21c]
cmp dword [edx - 8], 0x104
jl 0x10018d5d
mov dword [edx - 0xc], 0x104
xor ecx, ecx
mov eax, dword [ebp - 0x21c]
push ebx
push edx
mov word [eax + 0x208], cx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp - 0x21c]
push dword [eax - 8]
push eax
call fcn.10097beb
mov edx, eax
add esp, 8
test edx, edx
js 0x10018d5d
mov ecx, dword [ebp - 0x21c]
cmp edx, dword [ecx - 8]
jg 0x10018d5d
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x21c]
mov word [eax + edx*2], cx
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x21c]
mov esi, eax
call fcn.10005ad0
jmp 0x10018af8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10069b58
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10005ea0
int3