Function at 0x1001d7e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x100a20a4]
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.1000f0f0
mov eax, dword [0x100a357c]
add esp, 8
test eax, eax
jne 0x1001d864
push dword [ebp - 0x83c]
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.GDI32.dll_GdiEntry1]
mov eax, dword [0x100a357c]
cmp dword [ebp - 0x404], esi
jne 0x1001d874
test eax, eax
je 0x1001d9de
push 0x1210
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1001d9de
push 0x1210
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 0x1001d8c8
mov al, byte [ebx + ecx]
test al, al
je 0x1001d8c8
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1001d8b0
jmp 0x1001d8cc
test edx, edx
jne 0x1001d8cd
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 [0x100a357c], 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 0x1001d987
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 0x1001d97d
xor ecx, ecx
cmp eax, 0x80070241
sete cl
mov dword [edx], ecx
test eax, eax
jns 0x1001d987
mov dword [edi], 0
mov eax, dword [edi]
cmp ebx, 2
jne 0x1001d9bf
test eax, eax
je 0x1001d9e3
push 0x10004428
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [ebp - 0x848]
mov dword [ebx], eax
call fcn.100235e0
mov dword [esi + 0x30], eax
test eax, eax
jne 0x1001d9b5
mov dword [edi], eax
jmp 0x1001d9e3
mov eax, dword [ebx]
mov dword [esi + 0xc4], eax
jmp 0x1001d9de
cmp ebx, 3
jne 0x1001d9de
test eax, eax
je 0x1001d9de
call fcn.100235e0
mov dword [esi + 0x30], eax
test eax, eax
jne 0x1001d9d8
mov dword [edi], eax
jmp 0x1001d9e3
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x70], eax
cmp dword [edi], 0
jne 0x1001da16
test esi, esi
je 0x1001d9ee
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x404]
test eax, eax
je 0x1001da9b
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.1009b610
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 0x1001da95
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 0x1001da89
mov eax, dword [ebp - 0x840]
mov dword [esi + 0x80], eax
push dword [ebp - 0x83c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [0x100a3584]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009b610
mov esp, ebp
pop ebp
ret 0x18