Function at 0x409150
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417de1
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x278], edi
lea ecx, [ebp - 0x260]
call dword [sym.imp.mfc140.dll_Ordinal_316]
mov ecx, edi
mov dword [ebp - 4], 0
call dword [sym.imp.mfc140.dll_Ordinal_10421]
mov eax, dword [edi + 0xac]
lea ecx, [edi + 0xbc]
add eax, 0x10
push eax
call dword [sym.imp.mfc140.dll_Ordinal_1529]
mov eax, dword [edi + 0xac]
mov esi, dword [sym.imp.mfc140.dll_Ordinal_4468]
mov ecx, dword [edi + 0xb4]
mov dword [ebp - 0x27c], esi
cmp byte [eax + 0xc], 0
mov eax, dword [sym.imp.mfc140.dll_Ordinal_5401]
mov dword [ebp - 0x270], eax
jne 0x4091eb
test ecx, ecx
jne 0x4091eb
mov dword [edi + 0xc0], ecx
jmp 0x409208
mov dword [edi + 0xc0], 1
test ecx, ecx
je 0x409208
push 0
push 0x3f5
mov ecx, edi
call eax
mov ecx, eax
call esi
cmp dword [edi + 0xb4], 0
lea ecx, [edi + 0xb0]
push 0x104
je 0x40922e
call dword [sym.imp.mfc140.dll_Ordinal_5095]
mov ecx, eax
call fcn.00407ab0
jmp 0x409355
call dword [sym.imp.mfc140.dll_Ordinal_5095]
movups xmm0, xmmword [str.SYSTEMCurrentControlSetControlSession_ManagerDOS_Devices]
mov dword [ebp - 0x274], eax
xor esi, esi
mov eax, dword [0x41b318]
mov dword [ebp - 0x11c], eax
mov al, byte [0x41b31c]
movups xmmword [ebp - 0x154], xmm0
mov byte [ebp - 0x118], al
lea eax, [ebp - 0x26c]
movups xmm0, xmmword [0x41b2f0]
push eax
push 0xf003f
movups xmmword [ebp - 0x144], xmm0
push esi
movups xmm0, xmmword [0x41b300]
lea eax, [ebp - 0x154]
push eax
movups xmmword [ebp - 0x134], xmm0
push 0x80000002
movq xmm0, qword [0x41b310]
movq qword [ebp - 0x124], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409353
cmp esi, 0x400
jae 0x409347
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x264], 1
push eax
lea eax, [ebp - 0x258]
mov dword [ebp - 0x268], 0x40
push eax
lea eax, [ebp - 0x264]
mov dword [ebp - 0x25c], 0x104
push eax
push 0
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
inc esi
test eax, eax
jne 0x40933c
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4092b3
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x50]
jmp 0x409355
cmp eax, 0x103
jne 0x4092b3
push dword [ebp - 0x26c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov byte [edi + 0xb9], al
lea ecx, [edi + 0xc4]
mov esi, dword [sym.imp.mfc140.dll_Ordinal_4807]
test al, al
je 0x409390
movsx eax, al
push eax
push 0x41b320
push ecx
mov dword [edi + 0xd0], 0
mov dword [edi + 0xd4], 1
call esi
add esp, 0xc
jmp 0x40939b
push 0x41b778
call dword [sym.imp.mfc140.dll_Ordinal_1529]
mov ecx, dword [edi + 0xac]
mov eax, dword [ecx + 0x88]
and eax, 2
or eax, 0
je 0x40940c
movzx eax, word [ecx + 0x94]
push eax
lea eax, [edi + 0xdc]
push 0x41b0bc
push eax
call esi
mov eax, dword [edi + 0xac]
movzx eax, word [eax + 0x96]
push eax
lea eax, [edi + 0xe0]
push 0x41b0bc
push eax
call esi
mov eax, dword [edi + 0xac]
add esp, 0x18
test byte [eax + 0x90], 2
je 0x40940c
movzx eax, word [eax + 0x98]
push eax
lea eax, [edi + 0xe4]
push 0x41b0bc
push eax
call esi
add esp, 0xc
mov eax, dword [edi + 0xac]
mov cl, byte [eax + 0x40]
test cl, cl
je 0x40948f
and cl, 0x7f
mov al, cl
mov byte [edi + 0xb8], cl
sub al, 0x61
cmp al, 0x19
ja 0x409441
movzx eax, cl
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
mov cl, al
add esp, 4
mov byte [edi + 0xb8], cl
jmp 0x40944b
cmp cl, 0x41
jb 0x409466
cmp cl, 0x5a
ja 0x409466
lea edx, [edi + 0xd8]
test cl, cl
je 0x409473
movsx eax, cl
push eax
push 0x41b77c
push edx
call esi
add esp, 0xc
jmp 0x40947e
mov byte [edi + 0xb8], 0
lea edx, [edi + 0xd8]
push 0x41b778
push edx
call esi
add esp, 8
xor eax, eax
cmp dword [edi + 0xd4], eax
sete al
mov dword [edi + 0xd0], eax
mov eax, dword [edi + 0xac]
lea ecx, [edi + 0xc8]
add eax, 0x44
push eax
call dword [sym.imp.mfc140.dll_Ordinal_1529]
mov eax, dword [edi + 0xac]
lea ecx, [edi + 0xcc]
add eax, 0x64
push eax
call dword [sym.imp.mfc140.dll_Ordinal_1529]
push 0x3f8
mov ecx, edi
call dword [ebp - 0x270]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x274], eax
test eax, eax
je 0x409518
push 0
push 0
push 0x14b
push dword [eax + 0x20]
call esi
mov eax, dword [str.default]
test eax, eax
je 0x409518
xor edi, edi
push eax
mov eax, dword [ebp - 0x274]
push 0
push 0x143
push dword [eax + 0x20]
call esi
lea edi, [edi + 1]
mov eax, dword [edi*4 + 0x41b660]
test eax, eax
jne 0x4094f1
mov edi, dword [ebp - 0x278]
push 0x3f9
mov ecx, edi
call dword [ebp - 0x270]
push 0x3fa
mov ecx, edi
mov dword [ebp - 0x26c], eax
call dword [ebp - 0x270]
push 0x41b778
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x26c]
push 0
push 0x143
push dword [eax + 0x20]
call esi
mov eax, dword [ebp - 0x25c]
push 0x41b778
push 0
push 0x143
push dword [eax + 0x20]
call esi
mov al, byte [edi + 0xb8]
test al, al
je 0x4095a9
movsx eax, al
lea esi, [edi + 0xd8]
push eax
push 0x41b77c
push esi
call dword [sym.imp.mfc140.dll_Ordinal_4807]
mov eax, dword [ebp - 0x25c]
add esp, 0xc
push dword [esi]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x143
push dword [eax + 0x20]
call esi
cmp byte [edi + 0xb9], 0
je 0x4095ca
push dword [edi + 0xc4]
mov eax, dword [ebp - 0x26c]
push 0
push 0x143
push dword [eax + 0x20]
call esi
mov edi, dword [ebp - 0x26c]
mov esi, 0x423910
cmp dword [esi + 8], 0
jne 0x409626
movzx eax, byte [esi]
push eax
lea eax, [ebp - 0x260]
push 0x41b320
push eax
call dword [sym.imp.mfc140.dll_Ordinal_4807]
add esp, 0xc
push dword [ebp - 0x260]
push 0
push 0x143
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 0x260]
mov eax, dword [ebp - 0x25c]
push 0
push 0x143
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
add esi, 0x120
cmp esi, 0x425410
jl 0x4095d5
mov edi, dword [ebp - 0x278]
mov ecx, edi
push 0x422
mov esi, dword [edi + 0xd0]
call dword [ebp - 0x270]
push 0
push esi
push 0xf1
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [edi + 0xd4]
mov ecx, edi
push 0x423
call dword [ebp - 0x270]
push 0
push esi
push 0xf1
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [edi + 0xd4]
mov esi, dword [ebp - 0x270]
mov ecx, edi
push 0x3f9
call esi
mov ecx, eax
call dword [ebp - 0x27c]
push dword [edi + 0xd0]
mov ecx, edi
push 0x3fa
call esi
mov ecx, eax
call dword [ebp - 0x27c]
push 0
mov ecx, edi
call dword [sym.imp.mfc140.dll_Ordinal_14421]
lea ecx, [ebp - 0x260]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00416a63
mov esp, ebp
pop ebp
ret