Function at 0x2043a480
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebp
push esi
xor ebp, ebp
mov esi, edi
mov dword [esp + 8], ebp
call fcn.2043a1c0
cmp dword [edi + 8], ebp
jbe 0x2043a4d7
mov eax, dword [edi]
mov edx, dword [eax + 8]
push 0
push ebp
mov ecx, edi
mov dword [esp + 0x14], 0
call edx
push eax
push ebx
lea esi, [esp + 0x18]
xor eax, eax
call fcn.2043d430
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
jbe 0x2043a4cf
add eax, eax
cmp dword [esp + 8], eax
ja 0x2043a4cf
mov dword [esp + 8], eax
add ebp, 1
cmp ebp, dword [edi + 8]
jb 0x2043a497
xor ebp, ebp
cmp dword [edi + 0x10], ebp
jbe 0x2043a559
mov edi, edi
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
push ebp
mov ecx, edi
call edx
mov esi, eax
lea eax, [esp + 0xc]
push eax
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push esi
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2043a551
cmp dword [esp + 0x10], 3
jne 0x2043a551
mov eax, dword [esp + 0xc]
test eax, eax
ja 0x2043a547
lea edx, [esp + 0xc]
push edx
push 0
lea eax, [esp + 0x18]
push eax
push 0
push esi
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2043a551
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x2043a551
cmp dword [esp + 8], eax
ja 0x2043a551
mov dword [esp + 8], eax
add ebp, 1
cmp ebp, dword [edi + 0x10]
jb 0x2043a4e0
mov esi, dword [esp + 8]
test esi, esi
jbe 0x2043a6c7
push esi
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
jne 0x2043a57f
pop esi
xor al, al
pop ebp
add esp, 0x10
ret
xor ebp, ebp
cmp dword [edi + 8], ebp
jbe 0x2043a5cc
shr esi, 1
mov dword [esp + 0x14], esi
lea esp, [esp]
mov ecx, dword [esp + 0x10]
mov edx, dword [edi]
mov eax, dword [edx + 8]
push ecx
push ebp
mov ecx, edi
call eax
push eax
mov eax, dword [esp + 0x1c]
push ebx
lea esi, [esp + 0x18]
call fcn.2043d430
add esp, 0xc
test al, al
je 0x2043a5c4
mov eax, dword [esp + 0x10]
mov edx, dword [edi]
mov edx, dword [edx + 4]
push eax
push ebp
mov ecx, edi
call edx
add ebp, 1
cmp ebp, dword [edi + 8]
jb 0x2043a590
xor esi, esi
cmp dword [edi + 0x10], esi
jbe 0x2043a6b9
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
push esi
mov ecx, edi
call edx
lea ecx, [esp + 0xc]
push ecx
push 0
lea edx, [esp + 0x1c]
push edx
mov ebp, eax
mov eax, dword [esp + 0x14]
push 0
push ebp
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2043a6ad
cmp dword [esp + 0x14], 3
jne 0x2043a6ad
mov eax, dword [esp + 8]
cmp dword [esp + 0xc], eax
ja 0x2043a6ad
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2043a6ad
mov eax, dword [edi + 0x1c]
cmp dword [eax + esi*4], 0
lea eax, [eax + esi*4]
je 0x2043a665
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVCR80.dll_free]
mov edx, dword [edi + 0x1c]
add esp, 4
mov dword [edx + esi*4], 0
mov ebp, dword [esp + 0xc]
test ebp, ebp
mov eax, dword [edi + 0x20]
mov dword [eax + esi*4], 0
jbe 0x2043a6a9
push ebp
call dword [sym.imp.MSVCR80.dll_malloc]
mov ecx, dword [edi + 0x1c]
mov dword [ecx + esi*4], eax
mov edx, dword [edi + 0x1c]
lea eax, [edx + esi*4]
add esp, 4
cmp dword [eax], 0
je 0x2043a6a9
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
push ebp
push ecx
push edx
call sub.MSVCR80.dll_memcpy
mov eax, dword [edi + 0x20]
add esp, 0xc
mov dword [eax + esi*4], ebp
mov byte [edi + 5], 1
add esi, 1
cmp esi, dword [edi + 0x10]
jb 0x2043a5d7
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
xor ebp, ebp
cmp dword [edi + 0xc], ebp
jbe 0x2043a740
mov edi, edi
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
push ebp
mov ecx, edi
call eax
lea ecx, [esp + 0x10]
push ecx
push 0
lea edx, [esp + 0x1c]
push edx
push 0
mov esi, eax
push esi
push ebx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2043a738
mov eax, 4
cmp dword [esp + 0x14], eax
jne 0x2043a738
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2043a738
mov eax, dword [edi + 0x18]
mov ecx, dword [esp + 0xc]
mov dword [eax + ebp*4], ecx
mov byte [edi + 5], 1
add ebp, 1
cmp ebp, dword [edi + 0xc]
jb 0x2043a6d0
mov edx, dword [edi]
mov eax, dword [edx + 0x20]
pop esi
mov byte [edi + 5], 0
mov ecx, edi
pop ebp
add esp, 0x10
jmp eax