Function at 0x40a5e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x441008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [edx]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x408], 0x400
mov dword [edi], eax
mov eax, dword [edx + 4]
mov dword [edi + 4], eax
mov eax, dword [edx + 8]
mov dword [edi + 8], eax
mov eax, dword [edx + 0xc]
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0x4021e4
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x420e04
lea ecx, [edi + 0x14]
mov dword [ebp - 0x408], eax
lea esi, [ebp - 0x404]
mov edx, 0x100
sub esi, ecx
lea ebx, [ebx]
lea eax, [edx + 0x7ffffefe]
test eax, eax
je 0x40a693
movzx eax, word [esi + ecx]
test ax, ax
je 0x40a693
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x40a670
jmp 0x420df7
test edx, edx
je 0x420df7
mov esi, dword [ebp - 0x408]
xor eax, eax
mov word [ecx], ax
test esi, esi
js 0x40a93a
lea eax, [ebp - 0x408]
mov dword [ebp - 0x408], 0x400
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0x4021d0
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x420e04
mov dword [ebp - 0x408], esi
lea eax, [edi + 0x214]
lea esi, [ebp - 0x404]
mov edx, 0x100
sub esi, eax
mov edi, edi
lea ecx, [edx + 0x7ffffefe]
test ecx, ecx
je 0x40a723
movzx ecx, word [esi + eax]
test cx, cx
je 0x40a723
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x40a700
jmp 0x420e18
test edx, edx
je 0x420e18
mov esi, dword [ebp - 0x408]
xor ecx, ecx
mov word [eax], cx
test esi, esi
js 0x40a93a
lea eax, [ebp - 0x408]
mov dword [ebp - 0x408], 4
push eax
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x410]
push eax
push ecx
push 0x4021b4
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x40a94f
mov eax, dword [ebp - 0x40c]
mov dword [edi + 0x414], eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x408], 4
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0x402198
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x40a94f
mov eax, dword [ebp - 0x40c]
mov dword [edi + 0x418], eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x408], 4
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0x40218c
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x40a94f
mov eax, dword [ebp - 0x40c]
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x408], 4
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0x402164
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x40a94f
mov eax, dword [ebp - 0x40c]
mov dword [edi + 0x41c], eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x408], 4
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0x40213c
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x40a94f
mov eax, dword [ebp - 0x40c]
mov dword [edi + 0x420], eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x408], 4
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0x402110
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x40a94f
mov eax, dword [ebp - 0x40c]
mov dword [edi + 0x424], eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x408], 4
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0x4020e4
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x40a94f
mov eax, dword [ebp - 0x40c]
mov dword [edi + 0x428], eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x408], 4
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0x4020c8
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x40a94f
mov ecx, dword [ebp - 0x40c]
mov dword [edi + 0x42c], ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a3d0
mov esp, ebp
pop ebp
ret 4
jg 0x420e25
mov esi, eax
jmp 0x40a93a
sub ecx, 2
mov esi, 0x8007007a
jmp 0x40a6a1
jle 0x40a93a
movzx esi, si
or esi, 0x80070000
jmp 0x40a93a
sub eax, 2
mov esi, 0x8007007a
jmp 0x40a731
movzx esi, ax
or esi, 0x80070000
jmp 0x40a93a