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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
mov eax, dword [0x43e010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x500
push 0
push 0x4512a0
call fcn.0041e990
push 0x500
push 0
push 0x450da0
call fcn.0041e990
add esp, 0x18
lea eax, [ebp - 0x46c]
push eax
push 0x20119
push 0
push 0x42f820
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40441a
push eax
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d3d1
mov esp, ebp
pop ebp
ret
xor esi, esi
mov dword [ebp - 0x474], 0x118
push 0x230
lea eax, [ebp - 0x238]
mov dword [ebp - 0x470], esi
push esi
push eax
call fcn.0041e990
add esp, 0xc
lea eax, [ebp - 0x48c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x238]
push eax
push esi
push dword [ebp - 0x46c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40466d
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor ebx, ebx
mov dword [ebp - 0x47c], ebx
nop dword [eax]
push str.shellopencommand
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x468]
push 0x42f890
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ax, word [ebp - 0x238]
add esp, 0x10
xor ecx, ecx
test ax, ax
je 0x4044e9
movzx edx, ax
movzx eax, dx
cmp eax, 0x2e
je 0x4044d1
cmp eax, 0x2d
je 0x4044d1
movzx eax, word [ebp + ecx*2 - 0x236]
inc ecx
mov edx, eax
test ax, ax
jne 0x4044b2
jmp 0x4044e9
add ecx, ecx
cmp ecx, 0x230
jae 0x4046c4
xor eax, eax
mov word [ebp + ecx - 0x238], ax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x480], 0x118
push eax
lea eax, [ebx + 0x4512a0]
push eax
call edi
lea eax, [ebp - 0x478]
push eax
push 0x20119
push 0
lea eax, [ebp - 0x468]
push eax
push dword [ebp - 0x46c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404695
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x484]
push eax
push 0
push 0x42f394
push dword [ebp - 0x478]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40467b
mov ax, word [ebp - 0x238]
lea ebx, [ebp - 0x238]
xor edx, edx
test ax, ax
je 0x40459c
xor ecx, ecx
movzx esi, ax
cmp si, 0x5c
jne 0x404583
lea ebx, [ebp - 0x236]
add ebx, ecx
inc edx
lea ecx, [edx + edx]
movzx eax, word [ebp + ecx - 0x238]
mov esi, eax
test ax, ax
jne 0x404575
mov esi, dword [ebp - 0x470]
movzx eax, word [ebx]
xor edi, edi
mov edx, eax
test ax, ax
je 0x4045e7
mov ecx, ebx
nop word [eax + eax]
movzx edx, dx
mov esi, edx
lea eax, [edx - 0x41]
cmp ax, 0x19
ja 0x4045c7
lea eax, [edx + 0x20]
movzx esi, ax
mov word [ecx], ax
cmp si, 0x22
jne 0x4045d2
xor eax, eax
mov word [ecx], ax
inc edi
movzx eax, word [ebx + edi*2]
lea ecx, [ebx + edi*2]
mov edx, eax
test ax, ax
jne 0x4045b0
mov esi, dword [ebp - 0x470]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
mov ebx, dword [ebp - 0x47c]
lea eax, [ebx + 0x450da0]
push eax
call edi
push dword [ebp - 0x478]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x230
lea eax, [ebp - 0x238]
mov dword [ebp - 0x474], 0x118
push 0
inc esi
sub ebx, 0xffffff80
push eax
mov dword [ebp - 0x470], esi
mov dword [ebp - 0x47c], ebx
call fcn.0041e990
add esp, 0xc
lea eax, [ebp - 0x48c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x238]
push eax
push esi
push dword [ebp - 0x46c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x404480
test esi, esi
jne 0x4046a3
push eax
mov ebx, 0xfffffffe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4046a5
push eax
mov ebx, 0xfffffffc
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x478]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4046a5
push eax
mov ebx, 0xfffffffd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4046a5
xor ebx, ebx
push dword [ebp - 0x46c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d3d1
mov esp, ebp
pop ebp
ret
call fcn.0041d501
int3