Function at 0x1003e8c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a4
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebp - 0x14]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1001338
mov edi, 0x80000002
push edi
mov dword [ebx], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1003ee3
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x1001338
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1003ee3
xor eax, eax
jmp 0x100421e
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0x12c
lea eax, [ebp - 0x4a4]
push eax
mov dword [ebp - 0x10], esi
push esi
jmp 0x1003f0f
inc dword [ebp - 0x10]
inc dword [ebx]
push 0x12c
lea eax, [ebp - 0x4a4]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x1003efb
mov eax, dword [ebx]
cmp eax, esi
je 0x1004210
imul eax, eax, 0x14d0
push 1
push eax
mov edi, 0x10014e4
push edi
mov dword [ebp - 0x18], eax
call fcn.01001dc0
cmp eax, esi
mov dword [0x100650c], eax
jne 0x1003f49
mov dword [ebx], esi
jmp 0x1004213
lea eax, [ebp - 0x20]
push eax
push 0xf001f
push dword [ebp - 0x18]
push edi
call fcn.01001e16
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x1c], edi
jne 0x1003f77
push dword [0x100650c]
call fcn.01001e82
mov dword [0x100650c], esi
jmp 0x1003f42
mov ecx, dword [ebp - 0x18]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
push 1
rep stosb byte es:[edi], al
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edi, dword [ebp - 0x1c]
push 0x12c
push edi
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x10041e9
add edi, 0x4b8
inc dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push 0x20019
push esi
lea eax, [edi - 0x4b8]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10041c6
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x1001314
push dword [ebp - 4]
mov dword [ebp - 0xc], 0x208
call ebx
test eax, eax
jne 0x10041ba
cmp dword [ebp - 8], 1
jne 0x10041ba
push esi
push esi
push 3
push esi
push esi
push esi
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x10041ba
lea ecx, [ebp - 0xc]
push ecx
lea eax, [edi - 0x260]
push eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
push eax
push esi
push 0x1001778
push dword [ebp - 4]
mov dword [ebp - 0xc], 0x258
call ebx
test eax, eax
jne 0x1004065
cmp dword [ebp - 8], 1
je 0x1004075
lea eax, [edi - 0x4b8]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0xc]
push ecx
lea eax, [edi - 8]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x1001754
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call ebx
test eax, eax
jne 0x10041ba
push 4
pop ecx
cmp dword [ebp - 8], ecx
jne 0x10041ba
mov eax, dword [edi - 8]
cmp eax, 1
je 0x10040b8
cmp eax, 2
jne 0x10041ba
lea eax, [ebp - 0xc]
push eax
lea eax, [edi - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x100172c
push dword [ebp - 4]
mov dword [ebp - 0xc], ecx
call ebx
test eax, eax
jne 0x10041ba
cmp dword [ebp - 8], 4
jne 0x10041ba
mov eax, 0x258
cmp dword [edi - 4], eax
jbe 0x10040f1
mov dword [edi - 4], eax
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push esi
push 0x1001714
push dword [ebp - 4]
mov dword [ebp - 0xc], 1
call ebx
test eax, eax
jne 0x1004116
cmp dword [ebp - 8], 3
je 0x100411d
xor eax, eax
inc eax
mov dword [edi], eax
jmp 0x1004120
xor eax, eax
inc eax
cmp dword [edi], esi
jne 0x1004126
mov dword [edi], eax
cmp dword [edi - 8], 2
je 0x1004131
mov eax, 0xff
cmp dword [edi], eax
jbe 0x1004137
mov dword [edi], eax
lea ecx, [ebp - 0xc]
push ecx
lea eax, [edi + 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x10016f0
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call ebx
test eax, eax
jne 0x100416c
cmp dword [ebp - 8], 4
jne 0x100416c
push dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
call fcn.01003bf7
jmp 0x100416f
mov dword [edi + 4], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi - 8], 2
jne 0x100419d
lea eax, [ebp - 0x44]
push eax
lea eax, [edi - 0x4b8]
push eax
call fcn.010025c4
test eax, eax
je 0x100419d
xor eax, eax
inc eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x20], eax
jmp 0x10041a0
mov dword [edi + 0x24], esi
lea eax, [ebp - 0x24c]
push eax
call fcn.0100337b
inc dword [ebp - 0x18]
mov dword [edi + 0xc], eax
add edi, 0x14d0
jmp 0x10041c3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp + 8]
push 0x12c
lea eax, [edi - 0x4b8]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x1003fbc
mov edi, dword [ebp - 0x1c]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x18]
push edi
push ebx
mov dword [ebx], eax
call fcn.01003869
mov eax, dword [ebx]
mov edx, edi
call fcn.01003df9
push dword [ebp - 0x20]
push edi
call fcn.01001e5d
xor esi, esi
inc esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4