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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016ad91
mov eax, dword fs:[0]
push eax
sub esp, 0x840
mov eax, dword [0x101d7c7c]
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 esi, dword [ebp + 8]
mov ebx, 0x101de3e4
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x81c], esi
mov dword [ebp - 0x82c], ecx
mov dword [ebp - 0x830], ebx
mov dword [ebp - 0x83c], 0
mov eax, dword [ebx]
test dword [ecx], eax
jne 0x10029bd4
xor eax, eax
mov dword [ebp - 0x828], eax
call fcn.1000cdc0
mov ecx, eax
test ecx, ecx
je 0x10029c13
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x824], 0x208
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 4], 0
jge 0x100297ef
push 0x104
lea ecx, [ebp - 0x818]
call fcn.1000b250
mov edi, dword [ebp - 0x818]
cmp dword [edi - 8], 0x104
jl 0x10029c1d
xor eax, eax
mov dword [edi - 0xc], 0x104
push eax
push eax
push eax
push eax
mov word [edi + 0x208], ax
lea eax, [ebp - 0x824]
push eax
push edi
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push dword [edi - 8]
mov esi, eax
push edi
call fcn.1013e920
add esp, 8
test eax, eax
js 0x10029c1d
cmp eax, dword [edi - 8]
jg 0x10029c1d
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
test esi, esi
jne 0x10029ba9
nop dword [eax]
nop word [eax + eax]
lea eax, [ebp - 0x820]
mov dword [ebp - 0x820], 0
push eax
push 0x20019
push 0
push edi
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10029ba9
push 0x800
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.10112750
add esp, 0xc
mov dword [ebp - 0x844], 1
lea eax, [ebp - 0x840]
mov dword [ebp - 0x840], 0x800
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x844]
push eax
push 0
push dword [ebx - 8]
push dword [ebp - 0x820]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x838], 0
test eax, eax
jne 0x10029ac2
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
cmp dword [ebx - 4], 0
je 0x10029911
push dword [ebx - 0xc]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebx, eax
mov dword [ebp - 0x834], ebx
call fcn.1000cdc0
test eax, eax
je 0x10029c13
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x814], esi
mov byte [ebp - 4], 1
test ebx, ebx
je 0x10029a46
test ebx, 0xffff0000
jne 0x1002996b
movzx eax, bx
lea ecx, [ebp - 0x814]
push eax
call fcn.1000d750
jmp 0x10029a51
lea ecx, [ebx + 2]
nop
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x10029970
sub ebx, ecx
sar ebx, 1
je 0x10029a46
mov edx, dword [ebp - 0x834]
mov eax, dword [esi - 0xc]
sub edx, esi
sar edx, 1
mov dword [ebp - 0x84c], eax
mov dword [ebp - 0x848], edx
test ebx, ebx
js 0x10029c1d
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x100299cf
push ebx
lea ecx, [ebp - 0x814]
call fcn.1000b250
mov esi, dword [ebp - 0x814]
mov edx, dword [ebp - 0x848]
cmp edx, dword [ebp - 0x84c]
ja 0x10029a1f
mov eax, dword [esi - 8]
lea ecx, [ebx + ebx]
lea edx, [esi + edx*2]
test ecx, ecx
je 0x10029a32
test edx, edx
jne 0x100299fa
call fcn.1012fc6d
mov dword [eax], 0x16
call fcn.1012fb47
jmp 0x10029a32
add eax, eax
cmp eax, ecx
jae 0x10029a12
call fcn.1012fc6d
mov dword [eax], 0x22
call fcn.1012fb47
jmp 0x10029a32
push ecx
push edx
push esi
call fcn.10113460
add esp, 0xc
jmp 0x10029a32
push ebx
push dword [ebp - 0x834]
push dword [esi - 8]
push esi
call fcn.1000c6b0
add esp, 0x10
cmp ebx, dword [esi - 8]
jg 0x10029c1d
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
jmp 0x10029a57
lea ecx, [ebp - 0x814]
call fcn.1001e440
mov esi, dword [ebp - 0x814]
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 2
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10029aa0
test esi, esi
je 0x10029c13
mov ebx, dword [ebp - 0x830]
push esi
push dword [ebx - 0xc]
call fcn.1013da92
add esp, 8
test eax, eax
jne 0x10029aa6
mov ecx, dword [ebp - 0x82c]
mov eax, dword [ebx]
mov dword [ebp - 0x838], 1
or dword [ecx], eax
jmp 0x10029aa6
mov ebx, dword [ebp - 0x830]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10029ac2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x820]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x838], 0
jne 0x10029ba9
inc dword [ebp - 0x828]
lea edx, [edi - 0x10]
mov dword [ebp - 0x824], 0x208
cmp dword [edx + 4], 0
mov esi, dword [edx]
je 0x10029b3b
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x10029b17
cmp dword [edi - 8], 0
jl 0x10029c1d
xor eax, eax
mov dword [edi - 0xc], 0
mov word [edi], ax
jmp 0x10029b3b
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10029b2b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x818], edi
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x10029b65
push 0x104
lea ecx, [ebp - 0x818]
call fcn.1000b250
mov edi, dword [ebp - 0x818]
cmp dword [edi - 8], 0x104
jl 0x10029c1d
xor eax, eax
mov dword [edi - 0xc], 0x104
push eax
push eax
push eax
push eax
mov word [edi + 0x208], ax
lea eax, [ebp - 0x824]
push eax
mov eax, dword [ebp - 0x828]
push edi
push eax
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10029860
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10029bc8
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x81c]
mov ecx, dword [ebp - 0x82c]
mov eax, dword [ebp - 0x83c]
add ebx, 0x10
add eax, 0x10
mov dword [ebp - 0x830], ebx
mov dword [ebp - 0x83c], eax
cmp eax, 0xb0
jb 0x10029785
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.100acb08
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.1000ae00
push 0x80070057
call fcn.1000ae00
int3