Function at 0x1001e0a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x100a80a4]
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.1000f6e0
mov eax, dword [0x100a959c]
add esp, 8
test eax, eax
jne 0x1001e124
push dword [ebp - 0x83c]
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.GDI32.dll_GdiEntry1]
mov eax, dword [0x100a959c]
cmp dword [ebp - 0x404], esi
jne 0x1001e134
test eax, eax
je 0x1001e29e
push 0x1220
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1001e29e
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 0x1001e18d
mov al, byte [ebx + ecx]
test al, al
je 0x1001e188
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1001e170
jmp 0x1001e18c
test edx, edx
jne 0x1001e18d
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 [0x100a959c], 0
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x850]
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 - 0x840]
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xb2c], 0
mov dword [esi + 0xb38], edx
mov dword [esi + 0xb3c], eax
je 0x1001e247
mov ecx, dword [ebp - 0x83c]
mov edx, esi
mov dword [esi + 0xb20], 1
call fcn.10012eb0
mov edx, dword [ebp - 0x844]
test edx, edx
je 0x1001e23d
xor ecx, ecx
cmp eax, 0x80070241
sete cl
mov dword [edx], ecx
test eax, eax
jns 0x1001e247
mov dword [edi], 0
mov eax, dword [edi]
cmp ebx, 2
jne 0x1001e27f
test eax, eax
je 0x1001e2a9
push 0x10004418
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [ebp - 0x848]
mov dword [ebx], eax
call fcn.10024220
mov dword [esi + 0x30], eax
test eax, eax
jne 0x1001e275
mov dword [edi], eax
jmp 0x1001e2a9
mov eax, dword [ebx]
mov dword [esi + 0xc4], eax
jmp 0x1001e29e
cmp ebx, 3
jne 0x1001e29e
test eax, eax
je 0x1001e29e
call fcn.10024220
mov dword [esi + 0x30], eax
test eax, eax
jne 0x1001e298
mov dword [edi], eax
jmp 0x1001e2a9
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x70], eax
cmp dword [edi], 0
mov eax, esi
jne 0x1001e2d8
test eax, eax
je 0x1001e2b0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x404]
test eax, eax
je 0x1001e35d
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.100a1500
mov esp, ebp
pop ebp
ret 0x18
lea eax, [ebp - 0x83c]
mov dword [ebp - 0x83c], 0
push eax
push 0x10004068
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1001e357
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 0x10004424
push dword [ebp - 0x83c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001e34b
mov eax, dword [ebp - 0x840]
mov dword [esi + 0x80], eax
push dword [ebp - 0x83c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [0x100a95a4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a1500
mov esp, ebp
pop ebp
ret 0x18