Function at 0x1001dc50
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x100a60a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x848], eax
mov ebx, edx
mov eax, dword [ebp + 0x18]
lea edx, [ebp - 0x84c]
push esi
mov dword [ebp - 0x844], eax
xor esi, esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x854]
mov dword [ebp - 0x83c], ecx
push eax
mov dword [edi], 0
mov dword [ebp - 0x404], 0
call fcn.1000f5e0
mov eax, dword [0x100a75a4]
add esp, 8
test eax, eax
jne 0x1001dcd4
push dword [ebp - 0x83c]
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.GDI32.dll_GdiEntry1]
mov eax, dword [0x100a75a4]
cmp dword [ebp - 0x404], esi
jne 0x1001dce4
test eax, eax
je 0x1001de4e
push 0x1220
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1001de4e
push 0x1220
push 0
push esi
call sub.msvcrt.dll_memset
mov ecx, dword [ebp - 0x404]
add esp, 0xc
mov dword [esi], ecx
mov edx, 0x20
lea ecx, [esi + 0xc]
mov dword [edi], esi
sub ebx, ecx
nop
lea eax, [edx - 1]
test eax, eax
je 0x1001dd38
mov al, byte [ebx + ecx]
test al, al
je 0x1001dd38
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1001dd20
jmp 0x1001dd3c
test edx, edx
jne 0x1001dd3d
dec ecx
mov eax, dword [ebp + 8]
mov byte [ecx], 0
mov byte [esi + 0x2b], 0
mov dword [esi + 0x2c], eax
call dword [sym.imp.GDI32.dll_GdiEntry13]
cmp dword [0x100a75a4], 0
mov ebx, dword [ebp + 0x10]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x848]
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x84c]
mov dword [esi + 0xb30], eax
mov eax, dword [ebp - 0x854]
mov dword [esi + 0xb34], eax
mov eax, dword [ebp - 0x850]
mov dword [esi + 0xb38], eax
mov eax, dword [ebp - 0x840]
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xb2c], 0
mov dword [esi + 0xb3c], eax
je 0x1001ddf7
mov ecx, dword [ebp - 0x83c]
mov edx, esi
mov dword [esi + 0xb20], 1
call fcn.100bce11
mov edx, dword [ebp - 0x844]
test edx, edx
je 0x1001dded
xor ecx, ecx
cmp eax, 0x80070241
sete cl
mov dword [edx], ecx
test eax, eax
jns 0x1001ddf7
mov dword [edi], 0
mov eax, dword [edi]
cmp ebx, 2
jne 0x1001de2f
test eax, eax
je 0x1001de53
push 0x10004458
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [ebp - 0x848]
mov dword [ebx], eax
call fcn.10023c30
mov dword [esi + 0x30], eax
test eax, eax
jne 0x1001de25
mov dword [edi], eax
jmp 0x1001de53
mov eax, dword [ebx]
mov dword [esi + 0xc4], eax
jmp 0x1001de4e
cmp ebx, 3
jne 0x1001de4e
test eax, eax
je 0x1001de4e
call fcn.10023c30
mov dword [esi + 0x30], eax
test eax, eax
jne 0x1001de48
mov dword [edi], eax
jmp 0x1001de53
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x70], eax
cmp dword [edi], 0
jne 0x1001de86
test esi, esi
je 0x1001de5e
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x404]
test eax, eax
je 0x1001df0b
push eax
call dword [sym.imp.d3d8thk.dll_OsThunkDdDeleteDirectDrawObject]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009ebb0
mov esp, ebp
pop ebp
ret 0x18
lea eax, [ebp - 0x83c]
mov dword [ebp - 0x83c], 0
push eax
push 0x10004090
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1001df05
mov dword [esi + 0x84], eax
mov dword [esi + 0x80], eax
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x840]
mov dword [ebp - 0x844], 4
push eax
lea eax, [ebp - 0x84c]
push eax
push 0
push 0x10004464
push dword [ebp - 0x83c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001def9
mov eax, dword [ebp - 0x840]
mov dword [esi + 0x80], eax
push dword [ebp - 0x83c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [0x100a75ac]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009ebb0
mov esp, ebp
pop ebp
ret 0x18