Function at 0x1001d2b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x100a70b4]
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.1000f2f0
mov eax, dword [0x100a8564]
add esp, 8
test eax, eax
jne 0x1001d334
push dword [ebp - 0x83c]
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.GDI32.dll_GdiEntry1]
mov eax, dword [0x100a8564]
cmp dword [ebp - 0x404], esi
jne 0x1001d344
test eax, eax
je 0x1001d4ae
push 0x11b0
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1001d4ae
push 0x11b0
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 0x1001d398
mov al, byte [ebx + ecx]
test al, al
je 0x1001d398
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1001d380
jmp 0x1001d39c
test edx, edx
jne 0x1001d39d
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 [0x100a8564], 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 0x1001d457
mov ecx, dword [ebp - 0x83c]
mov edx, esi
mov dword [esi + 0xb20], 1
call fcn.10012680
mov edx, dword [ebp - 0x844]
test edx, edx
je 0x1001d44d
xor ecx, ecx
cmp eax, 0x80070241
sete cl
mov dword [edx], ecx
test eax, eax
jns 0x1001d457
mov dword [edi], 0
mov eax, dword [edi]
cmp ebx, 2
jne 0x1001d48f
test eax, eax
je 0x1001d4b3
push 0x10004428
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [ebp - 0x848]
mov dword [ebx], eax
call fcn.100231b0
mov dword [esi + 0x30], eax
test eax, eax
jne 0x1001d485
mov dword [edi], eax
jmp 0x1001d4b3
mov eax, dword [ebx]
mov dword [esi + 0xc4], eax
jmp 0x1001d4ae
cmp ebx, 3
jne 0x1001d4ae
test eax, eax
je 0x1001d4ae
call fcn.100231b0
mov dword [esi + 0x30], eax
test eax, eax
jne 0x1001d4a8
mov dword [edi], eax
jmp 0x1001d4b3
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x70], eax
cmp dword [edi], 0
jne 0x1001d4e6
test esi, esi
je 0x1001d4be
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x404]
test eax, eax
je 0x1001d56b
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.1009fbf0
mov esp, ebp
pop ebp
ret 0x18
lea eax, [ebp - 0x83c]
mov dword [ebp - 0x83c], 0
push eax
push 0x100040c0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1001d565
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 0x10004434
push dword [ebp - 0x83c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001d559
mov eax, dword [ebp - 0x840]
mov dword [esi + 0x80], eax
push dword [ebp - 0x83c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [0x100a856c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009fbf0
mov esp, ebp
pop ebp
ret 0x18