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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x490
mov eax, dword [0x100700c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x488], eax
lea eax, [ebp - 0x47c]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1001348
push 0x80000002
mov dword [ebp - 0x474], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100402d
xor eax, eax
jmp 0x100444b
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push edi
mov edi, 0x12c
push edi
lea eax, [ebp - 0x464]
push eax
push ebx
push dword [ebp - 0x47c]
mov dword [ebp - 0x478], ebx
call esi
test eax, eax
jne 0x100408c
inc dword [ebp - 0x478]
inc dword [ebp - 0x474]
push edi
lea eax, [ebp - 0x464]
push eax
push dword [ebp - 0x478]
push dword [ebp - 0x47c]
call esi
test eax, eax
je 0x1004055
push 0x10
pop eax
cmp dword [ebp - 0x474], eax
jbe 0x100408c
mov dword [ebp - 0x474], eax
mov eax, dword [ebp - 0x474]
cmp eax, ebx
mov ecx, dword [ebp - 0x488]
mov dword [ecx], eax
je 0x1004438
push 1
mov edi, 0x14d00
push edi
mov esi, 0x10014dc
push esi
call fcn.01001e68
cmp eax, ebx
mov dword [0x1007504], eax
jne 0x10040cb
mov eax, dword [ebp - 0x488]
mov dword [eax], ebx
jmp 0x100443b
lea eax, [ebp - 0x48c]
push eax
push 0xf001f
push edi
push esi
call fcn.01001ec5
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x480], esi
jne 0x10040fd
push dword [0x1007504]
call fcn.01001f3f
mov dword [0x1007504], ebx
jmp 0x10040be
xor eax, eax
mov ecx, 0x5340
mov edi, esi
push 1
rep stosd dword es:[edi], eax
mov dword [ebp - 0x478], ebx
mov dword [ebp - 0x484], ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x12c
push esi
push ebx
push dword [ebp - 0x47c]
mov dword [ebp - 0x490], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1004402
lea edi, [esi + 0x4b0]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x474], ebx
inc dword [ebp - 0x478]
lea ecx, [ebp - 0x46c]
push ecx
push 0x20019
push ebx
lea eax, [edi - 0x4b0]
push eax
push dword [ebp - 0x47c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10043d6
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x470]
push eax
push ebx
push 0x1001324
push dword [ebp - 0x46c]
mov dword [ebp - 0x468], 0x208
call esi
test eax, eax
jne 0x10043ca
cmp dword [ebp - 0x470], 1
jne 0x10043ca
mov eax, dword [ebp - 0x468]
push ebx
push ebx
push 3
push ebx
push ebx
mov word [ebp + eax*2 - 0x20e], bx
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x10043ca
lea ecx, [ebp - 0x468]
push ecx
lea eax, [edi - 0x258]
push eax
lea eax, [ebp - 0x470]
push eax
push ebx
push 0x1001770
push dword [ebp - 0x46c]
mov dword [ebp - 0x468], 0x258
call esi
test eax, eax
jne 0x1004224
cmp dword [ebp - 0x470], 1
je 0x1004238
lea eax, [edi - 0x4b0]
push eax
lea eax, [edi - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x468]
mov ecx, dword [ebp - 0x474]
add ecx, eax
mov eax, dword [ebp - 0x480]
mov word [eax + ecx*2 + 0x256], bx
lea eax, [ebp - 0x468]
push eax
push edi
lea eax, [ebp - 0x470]
push eax
push ebx
push 0x100174c
push dword [ebp - 0x46c]
mov dword [ebp - 0x468], 4
call esi
test eax, eax
jne 0x10043ca
push 4
pop eax
cmp dword [ebp - 0x470], eax
jne 0x10043ca
cmp dword [edi], 1
jne 0x10043ca
mov dword [ebp - 0x468], eax
lea ecx, [ebp - 0x468]
push ecx
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x470]
push eax
push ebx
push 0x1001724
push dword [ebp - 0x46c]
call esi
test eax, eax
jne 0x10043ca
cmp dword [ebp - 0x470], 4
jne 0x10043ca
mov eax, 0x258
cmp dword [edi + 4], eax
jbe 0x10042e3
mov dword [edi + 4], eax
lea ecx, [ebp - 0x468]
push ecx
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x470]
push eax
push ebx
push 0x100170c
push dword [ebp - 0x46c]
mov dword [ebp - 0x468], 1
call esi
test eax, eax
jne 0x100431a
cmp dword [ebp - 0x470], 3
je 0x1004321
mov dword [edi + 8], 1
lea eax, [edi + 8]
cmp dword [eax], ebx
jne 0x100432e
mov dword [eax], 1
mov ecx, 0xff
cmp dword [eax], ecx
jbe 0x1004339
mov dword [eax], ecx
lea ecx, [ebp - 0x468]
push ecx
lea eax, [edi + 0xc]
push eax
lea eax, [ebp - 0x470]
push eax
push ebx
push 0x10016e8
push dword [ebp - 0x46c]
mov dword [ebp - 0x468], 4
call esi
test eax, eax
jne 0x1004385
cmp dword [ebp - 0x470], 4
jne 0x1004385
push dword [ebp - 0x484]
mov ebx, dword [ebp - 0x480]
call fcn.01003d1b
xor ebx, ebx
jmp 0x1004388
mov dword [edi + 0xc], ebx
push dword [ebp - 0x46c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
push eax
mov dword [edi + 0x2c], ebx
call fcn.0100341b
add dword [ebp - 0x474], 0xa68
inc dword [ebp - 0x484]
mov dword [edi + 0x14], eax
add edi, 0x14d0
cmp dword [ebp - 0x474], 0xa680
ja 0x10043fc
jmp 0x10043d6
push dword [ebp - 0x46c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x12c
lea eax, [edi - 0x4b0]
push eax
push dword [ebp - 0x478]
push dword [ebp - 0x47c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x100414f
mov esi, dword [ebp - 0x480]
push dword [ebp - 0x490]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edi, dword [ebp - 0x488]
mov eax, dword [ebp - 0x484]
push esi
push edi
mov dword [edi], eax
call fcn.01003969
mov eax, dword [edi]
mov edx, esi
call fcn.01003f46
push dword [ebp - 0x48c]
push esi
call fcn.01001f13
xor ebx, ebx
inc ebx
push dword [ebp - 0x47c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01004dc3
leave
ret 4