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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x448063
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x45a028]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
push esi
push edi
mov eax, dword [0x45a028]
xor eax, esp
push eax
lea eax, [esp + 0x2e8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push ebx
mov edi, ecx
push ebx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0xf0]
push edx
push ebx
push edi
mov dword [esp + 0x68], eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x3c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, eax
cmp ecx, ebx
jne 0x41e973
mov edi, edi
lea eax, [esp + 0x38]
push eax
push SysReAllocString
push ebx
lea ecx, [esp + 0xe8]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x41e98c
mov eax, dword [esp + 0x38]
push ebx
push ebx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x3c]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
mov dword [esp + 0x80], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebx
je 0x41e454
mov esi, eax
jmp 0x41e92e
xor edx, edx
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], dx
mov dword [esp + 0x2f0], ebx
mov esi, dword [esp + 0x30]
inc esi
cmp esi, ebx
ja 0x41e487
mov ecx, esi
or eax, 0xffffffff
lea esi, [esp + 0x54]
call fcn.004060a0
jmp 0x41e4c9
cmp esi, 0xffffffff
jae 0x41e981
cmp esi, ebx
jbe 0x41e4c9
lea eax, [esp + 0x54]
call fcn.00406120
test al, al
je 0x41e4c9
mov edx, dword [esp + 0x64]
mov ecx, esi
lea eax, [esp + 0x54]
call fcn.0041f680
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
mov dword [esp + 0x64], esi
jae 0x41e4c3
lea eax, [esp + 0x54]
xor ecx, ecx
mov word [eax + esi*2], cx
xor esi, esi
xor ebx, ebx
xor edx, edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], esi
mov byte [esp + 0x2f0], 1
mov ecx, dword [esp + 0x14]
mov edi, ecx
cmp ecx, esi
jbe 0x41e52a
xor eax, eax
cmp ecx, esi
jbe 0x41e4f5
mov eax, ecx
push eax
lea esi, [esp + 0x24]
call fcn.0041f610
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov eax, edi
sub eax, edx
xor esi, esi
add eax, ebx
je 0x41e524
push eax
push esi
push edx
call sub.MSVCR100.dll_memset
mov ecx, dword [esp + 0x20]
add esp, 0xc
add edi, ebx
mov dword [esp + 0x24], edi
mov eax, 7
xor edx, edx
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa0], esi
mov word [esp + 0x90], dx
mov dword [esp + 0xc0], eax
xor eax, eax
mov dword [esp + 0xbc], esi
mov word [esp + 0xac], ax
mov dword [esp + 0xc8], esi
mov dword [esp + 0xcc], esi
mov dword [esp + 0xd0], esi
mov dword [esp + 0x8c], 1
mov byte [esp + 0x2f0], 3
mov byte [esp + 0x13], al
mov dword [esp + 0x18], esi
nop
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x54]
inc edx
cmp dword [esp + 0x68], 8
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], ecx
jae 0x41e5ac
lea eax, [esp + 0x54]
lea ecx, [esp + 0x40]
push ecx
push ebx
lea edx, [esp + 0x54]
push edx
mov edx, dword [esp + 0x24]
xor edi, edi
push edi
lea ecx, [esp + 0x54]
push ecx
push eax
mov eax, dword [esp + 0x68]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
cmp esi, edi
jne 0x41e7d3
cmp dword [esp + 0x4c], 1
jne 0x41e7c6
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
jae 0x41e5f4
lea eax, [esp + 0x54]
mov edi, dword [sym.imp.MSVCR100.dll__wcsicmp]
push 0x44fcd4
push eax
call edi
add esp, 8
test eax, eax
jne 0x41e628
lea edi, [esp + 0x8c]
mov esi, ebx
call fcn.0041e9c0
inc dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x13], al
jmp 0x41e590
mov eax, dword [esp + 0x54]
mov esi, 8
cmp dword [esp + 0x68], esi
jae 0x41e63b
lea eax, [esp + 0x54]
push str.replacement
push eax
call edi
add esp, 8
test eax, eax
jne 0x41e67b
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41e650
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x94]
call fcn.00405f90
inc dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
jmp 0x41e590
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x68], esi
jae 0x41e689
lea eax, [esp + 0x54]
push str.category
push eax
call edi
add esp, 8
test eax, eax
jne 0x41e6cb
mov eax, ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41e6a0
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0xb0]
call fcn.00405f90
inc dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
jmp 0x41e590
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x54]
cmp esi, 8
jae 0x41e6dc
lea eax, [esp + 0x54]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41e6e0
sub eax, edx
sar eax, 1
cmp eax, 6
jb 0x41e7c6
mov eax, dword [esp + 0x54]
cmp esi, 8
jae 0x41e705
lea eax, [esp + 0x54]
xor ecx, ecx
mov word [eax + 0xc], cx
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
jae 0x41e71a
lea eax, [esp + 0x54]
push 0x44fc98
push eax
call edi
add esp, 8
test eax, eax
jne 0x41e7c6
xor edx, edx
mov dword [esp + 0x80], eax
mov eax, ebx
mov word [esp + 0x70], dx
mov dword [esp + 0x84], 7
lea edx, [eax + 2]
jmp 0x41e750
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41e750
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x74]
call fcn.00405f90
lea ecx, [esp + 0x70]
lea ebx, [esp + 0xc8]
mov byte [esp + 0x2f0], 4
call fcn.004092e0
mov byte [esp + 0x2f0], 3
cmp dword [esp + 0x84], 8
jb 0x41e7a5
mov eax, dword [esp + 0x70]
push eax
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov ebx, dword [esp + 0x20]
xor ecx, ecx
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], 0
mov word [esp + 0x70], cx
inc dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
jmp 0x41e590
cmp esi, 0x103
jne 0x41e8d3
cmp byte [esp + 0x13], 0
je 0x41e87d
lea edx, [esp + 0x8c]
push edx
call fcn.0041f290
mov esi, dword [esp + 0x48]
mov ebx, dword [esi + 0x48]
lea eax, [esp + 0x8c]
cmp eax, ebx
jae 0x41e850
mov eax, dword [esi + 0x44]
lea ecx, [esp + 0x8c]
cmp eax, ecx
ja 0x41e850
sub ecx, eax
mov eax, 0x6bca1af3
imul ecx
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ebx, dword [esi + 0x4c]
jne 0x41e837
lea ecx, [esi + 0x44]
call fcn.00418c40
mov eax, dword [esi + 0x48]
imul edi, edi, 0x4c
add edi, dword [esi + 0x44]
mov byte [esp + 0x2f0], 5
test eax, eax
je 0x41e879
mov ebx, edi
jmp 0x41e873
cmp ebx, dword [esi + 0x4c]
jne 0x41e85d
lea ecx, [esi + 0x44]
call fcn.00418c40
mov eax, dword [esi + 0x48]
mov byte [esp + 0x2f0], 6
test eax, eax
je 0x41e879
lea ebx, [esp + 0x8c]
push eax
call fcn.0041a8c0
add dword [esi + 0x48], 0x4c
lea edx, [esp + 0x8c]
push edx
mov byte [esp + 0x2f4], 1
call fcn.00416d30
mov byte [esp + 0x2f0], 0
mov eax, dword [esp + 0x20]
xor esi, esi
cmp eax, esi
je 0x41e8ae
push eax
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov dword [esp + 0x2f0], 0xffffffff
cmp dword [esp + 0x68], 8
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
jb 0x41e92a
mov eax, dword [esp + 0x54]
push eax
jmp 0x41e921
lea ecx, [esp + 0x8c]
push ecx
mov byte [esp + 0x2f4], 1
call fcn.00416d30
mov byte [esp + 0x2f0], 0
cmp ebx, edi
je 0x41e8fe
push ebx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov dword [esp + 0x2f0], 0xffffffff
cmp dword [esp + 0x68], 8
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
jb 0x41e92a
mov edx, dword [esp + 0x54]
push edx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
cmp esi, ebx
jne 0x41e98c
mov eax, dword [esp + 0x34]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0xf0]
inc eax
push edx
push eax
push edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x3c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, eax
cmp ecx, ebx
je 0x41e400
lea eax, [ecx - 0x103]
neg eax
sbb eax, eax
and eax, ecx
jmp 0x41e98e
push str.string_too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
mov eax, esi
mov ecx, dword [esp + 0x2e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d0]
xor ecx, esp
call fcn.00441db6
mov esp, ebp
pop ebp
ret 4