Function at 0x424967
Capabilities:
Persist via appinit_dlls registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x42d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x238], str.detoured.dll
push edi
mov dword [ebp - 0x234], str._etoured.dll
mov esi, ebx
mov dword [ebp - 0x230], str.nvd3d9wrap.dll
mov dword [ebp - 0x22c], str.nvdxgiwrap.dll
push dword [ebp + esi*4 - 0x238]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x424b90
inc esi
cmp esi, 4
jb 0x4249a9
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4249da
mov al, 1
jmp 0x424b92
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], ebx
push eax
push 1
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4249d3
mov eax, dword [ebp - 0x244]
lea edi, [ebp - 0x28]
push 6
pop ecx
mov esi, str.AppInit_DLLs
mov dword [ebp - 0x248], eax
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], ebx
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 0x248]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x424b5f
mov edx, dword [ebp - 0x240]
lea ecx, [ebp - 0x23c]
lea edx, [edx + 1]
shr edx, 1
call fcn.00423a82
xor edi, edi
mov ebx, dword [eax]
mov dword [eax], edi
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x23c], edi
test eax, eax
je 0x424a76
push eax
call dword [sym.imp.mozglue.dll_free]
pop ecx
lea eax, [ebp - 0x240]
push eax
push ebx
push edi
push edi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x424b53
mov eax, dword [0x428e5c]
mov dword [ebp - 0xc], eax
mov ax, word [0x428e60]
mov word [ebp - 8], ax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x23c], edi
push eax
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x424b53
xor esi, esi
push 0x200
lea eax, [ebp - 0x228]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
push esi
push esi
push 0x100
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
add esp, 0x30
test eax, eax
jne 0x424b32
mov esi, str.nvinit
lea edi, [ebp - 0x238]
push 7
lea eax, [ebp - 0x238]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x228]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x424b73
xor esi, esi
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x424ad1
mov esi, dword [ebp - 0x248]
test ebx, ebx
je 0x424b5f
push ebx
call dword [sym.imp.mozglue.dll_free]
pop ecx
test esi, esi
je 0x4249d3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4249d3
test ebx, ebx
je 0x424b7f
push ebx
call dword [sym.imp.mozglue.dll_free]
pop ecx
mov eax, dword [ebp - 0x248]
test eax, eax
je 0x424b90
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405160
mov esp, ebp
pop ebp
ret