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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004613d
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x1005d09c]
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 dword [ebp - 0x22c], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x244], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp + 0x14]
push 0x104
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x114]
push ebx
push eax
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x238], ebx
call fcn.1002c190
add esp, 0xc
mov dword [ebp - 0x220], 1
xor edi, edi
mov dword [ebp - 0x230], ebx
xor esi, esi
nop
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1002c190
mov eax, dword [esi + 0x1005d008]
add esp, 0xc
mov dword [ebp - 0x21c], 0x208
test eax, eax
je 0x1000db16
push eax
mov eax, dword [ebp - 0x22c]
push dword [eax + 0xc]
call fcn.1003185b
add esp, 8
test eax, eax
je 0x1000da9c
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [esi + 0x1005d014]
push dword [esi + 0x1005d010]
push dword [esi + 0x1005d00c]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1000da9c
push dword [ebp - 0x234]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000da58
call fcn.10006e00
mov ecx, eax
test ecx, ecx
je 0x1000db16
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x1000d9f7
movzx eax, ax
lea ecx, [ebp - 0x224]
push eax
call fcn.10007390
jmp 0x1000da22
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000da00
sub eax, edx
lea ecx, [ebp - 0x224]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10007680
push dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x224]
or ebx, 1
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x238], ebx
call fcn.1000e4c0
test eax, eax
je 0x1000da58
mov bl, 1
jmp 0x1000da5a
xor bl, bl
mov eax, dword [ebp - 0x228]
mov dword [ebp - 4], 0xffffffff
test al, 1
je 0x1000da92
mov edx, dword [ebp - 0x224]
and eax, 0xfffffffe
mov dword [ebp - 0x228], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000da92
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x1000daab
mov ebx, dword [ebp - 0x228]
add esi, 0x18
inc edi
cmp esi, 0x18
jb 0x1000d910
jmp 0x1000daf2
mov ecx, dword [ebp - 0x240]
lea eax, [edi + edi*2]
mov eax, dword [eax*8 + 0x1005d018]
lea edx, [ebp - 0x218]
mov dword [ebp - 0x230], 1
lea esi, [edx + 2]
mov dword [ecx], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1000dad0
mov ecx, dword [ebp - 0x244]
lea eax, [ebp - 0x218]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.10007680
mov eax, dword [ebp - 0x230]
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.1001b500
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.10006bd0
int3