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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10108b31
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x1015746c]
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 eax, ecx
mov dword [ebp - 0x224], eax
cmp dword [eax + 0xc], 0
je 0x1000b5de
mov ebx, dword [eax + 0x10]
cmp dword [ebx - 0xc], 0
je 0x1000b5de
mov edi, dword [eax + 0x14]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov esi, dword [edi - 0xc]
call fcn.10094f30
add esp, 0xc
mov dword [ebp - 0x228], 0x104
lea eax, [ebp - 0x228]
mov dword [ebp - 0x22c], 1
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x22c]
push eax
xor eax, eax
test esi, esi
cmove edi, eax
mov eax, dword [ebp - 0x224]
push edi
push ebx
push dword [eax + 0xc]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.10003e60
mov edi, dword [ebp - 0x21c]
mov dword [ebp - 4], 0
movzx eax, word [edi]
push eax
call fcn.100b186e
add esp, 4
test eax, eax
je 0x1000b1f4
nop dword [eax]
movzx eax, word [edi + 2]
add edi, 2
push eax
call fcn.100b186e
add esp, 4
test eax, eax
jne 0x1000b1e0
mov esi, dword [ebp - 0x21c]
mov ebx, 1
cmp edi, esi
je 0x1000b2cd
mov edx, dword [esi - 0xc]
sub edi, esi
sar edi, 1
test edx, edx
js 0x1000b5ff
mov eax, dword [esi - 8]
mov ecx, ebx
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x1000b236
push edx
lea ecx, [ebp - 0x21c]
call fcn.10005150
mov esi, dword [ebp - 0x21c]
mov eax, dword [esi - 0xc]
lea edx, [esi + edi*2]
mov ebx, eax
sub ebx, edi
lea ecx, [ebx*2 + 2]
test ecx, ecx
je 0x1000b293
test edx, edx
jne 0x1000b266
call fcn.100b0389
mov dword [eax], 0x16
call fcn.100b0263
mov eax, 0x16
jmp 0x1000b295
lea eax, [eax*2 + 2]
cmp eax, ecx
jae 0x1000b288
call fcn.100b0389
mov dword [eax], 0x22
call fcn.100b0263
mov eax, 0x22
jmp 0x1000b295
push ecx
push edx
push esi
call fcn.10095ba0
add esp, 0xc
xor eax, eax
push eax
call fcn.100040d0
add esp, 4
test ebx, ebx
js 0x1000b5ff
mov eax, dword [ebp - 0x21c]
cmp ebx, dword [eax - 8]
jg 0x1000b5ff
mov dword [eax - 0xc], ebx
xor ecx, ecx
mov eax, dword [ebp - 0x21c]
mov word [eax + ebx*2], cx
lea ebx, [ecx + 1]
mov esi, dword [ebp - 0x21c]
movzx eax, word [esi]
xor edi, edi
test ax, ax
je 0x1000b35a
mov ecx, eax
nop dword [eax]
push ecx
call fcn.100b186e
add esp, 4
test eax, eax
je 0x1000b2f8
test edi, edi
mov eax, esi
cmovne eax, edi
mov edi, eax
jmp 0x1000b2fa
xor edi, edi
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x1000b2e0
test edi, edi
je 0x1000b354
mov eax, dword [ebp - 0x21c]
sub edi, eax
sar edi, 1
js 0x1000b609
mov ecx, dword [eax - 8]
mov edx, ebx
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x1000b33c
push edi
lea ecx, [ebp - 0x21c]
call fcn.10005150
mov eax, dword [ebp - 0x21c]
cmp edi, dword [eax - 8]
jg 0x1000b5ff
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x21c]
mov word [eax + edi*2], cx
mov esi, dword [ebp - 0x21c]
mov eax, dword [esi - 0xc]
or ebx, 0xffffffff
test eax, eax
jne 0x1000b36b
xor edi, edi
jmp 0x1000b5be
cmp eax, 1
jg 0x1000b381
lea eax, [esi - 0x10]
push eax
call fcn.100042d0
add esp, 4
add eax, 0x10
jmp 0x1000b3b7
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x1000b391
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x1000b39d
call fcn.10004dc0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push eax
push 1
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x220]
call fcn.1000a3a0
mov eax, dword [ebp - 0x220]
mov edx, 0x10118d38
mov ecx, eax
nop
mov si, word [ecx]
cmp si, word [edx]
jne 0x1000b3e6
test si, si
je 0x1000b3e2
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x1000b3e6
add ecx, 4
add edx, 4
test si, si
jne 0x1000b3c0
xor esi, esi
jmp 0x1000b3eb
sbb esi, esi
or esi, 1
lea edx, [eax - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000b402
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x1000b454
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.1000ca20
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.1000aae0
mov edx, dword [ebp - 0x220]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000b454
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 1
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.1000ca20
mov ecx, 0x10118d38
mov eax, dword [eax]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1000b496
test dx, dx
je 0x1000b492
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1000b496
add eax, 4
add ecx, 4
test dx, dx
jne 0x1000b470
xor esi, esi
jmp 0x1000b49b
sbb esi, esi
or esi, 1
mov edx, dword [ebp - 0x220]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000b4b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x1000b50a
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.1000b760
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 2
call fcn.1000aae0
mov edx, dword [ebp - 0x220]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000b50a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
mov esi, dword [eax + 0x18]
cmp dword [esi - 0xc], 0
je 0x1000b5aa
mov ecx, dword [ebp - 0x21c]
mov edx, 1
mov eax, dword [ecx - 8]
sub edx, dword [ecx - 4]
sub eax, 0x104
or eax, edx
jge 0x1000b54d
push 0x104
lea ecx, [ebp - 0x21c]
call fcn.10005150
mov ecx, dword [ebp - 0x21c]
cmp dword [ecx - 8], 0x104
jl 0x1000b613
mov dword [ecx - 0xc], 0x104
xor edx, edx
mov eax, dword [ebp - 0x21c]
push esi
push ecx
mov word [eax + 0x208], dx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp - 0x21c]
push dword [eax - 8]
push eax
call fcn.100b0d93
mov edx, eax
add esp, 8
test edx, edx
js 0x1000b5ff
mov ecx, dword [ebp - 0x21c]
cmp edx, dword [ecx - 8]
jg 0x1000b5ff
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]
mov esi, dword [ebp - 0x21c]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1000b5da
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
jmp 0x1000b5e3
mov eax, 1
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.10068438
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10004170
push 0x80070057
call fcn.10004170
push 0x80070057
call fcn.10004170
int3