Function at 0x404870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x64
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x34]
push str.Recent_file_list
call dbg.registry_get_handle
add esp, 4
test eax, eax
jne 0x404ae4
mov ebx, dword [ebp + 8]
push esi
call dword [sym.imp.user32.dll_GetMenu]
mov esi, eax
mov dword [ebp - 0x64], 0x30
mov dword [ebp - 0x60], 0x20
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
lea edi, [ebp - 0x64]
push edi
push 0
push 0x3ed
push eax
call dword [sym.imp.user32.dll_GetMenuItemInfoW]
test eax, eax
je 0x404934
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], eax
push edi
push 0
push 0x3ee
push esi
call dword [sym.imp.user32.dll_GetMenuItemInfoW]
mov dword [ebp - 0x20], 0
test eax, eax
je 0x40494a
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], eax
push edi
push 0
push 0x3ef
push esi
call dword [sym.imp.user32.dll_GetMenuItemInfoW]
test eax, eax
je 0x404958
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], eax
push edi
push 0
push 0x3f0
push esi
call dword [sym.imp.user32.dll_GetMenuItemInfoW]
test eax, eax
je 0x40495f
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
jmp 0x40495f
push 0
push ebx
call dword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
jne 0x4049d5
jmp 0x404ad8
mov dword [ebp - 0x10], 0
xor edi, edi
mov esi, dword [ebp - 0x18]
jmp 0x404965
mov dword [ebp - 0x10], 0
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
push esi
push ebx
call dword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
je 0x404ad8
test esi, esi
je 0x4049d5
push ebx
push esi
call dword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
je 0x4049d5
test edi, edi
je 0x4049c9
push ebx
push edi
call dword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
je 0x404af2
cmp dword [ebp - 0x10], 0
je 0x4049c9
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
je 0x404af9
cmp dword [ebp - 0x20], 0
je 0x4049c9
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
je 0x404b00
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], esi
test ebx, ebx
je 0x404ad8
lea esi, [ebp - 0x70]
push 1
push str.File_d
push esi
call dword [sym.imp.user32.dll_wsprintfW]
add esp, 0xc
xor ecx, ecx
mov eax, dword [ebp - 0x14]
nop word cs:[eax + eax]
cmp word [ebx + ecx], 0
lea ecx, [ecx + 2]
jne 0x404a00
push ecx
push ebx
push 1
push 0
push esi
push eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x404ad8
push 2
push str.File_d
push esi
call dword [sym.imp.user32.dll_wsprintfW]
add esp, 0xc
xor ecx, ecx
mov eax, dword [ebp - 0x14]
nop dword [eax]
cmp word [edi + ecx], 0
lea ecx, [ecx + 2]
jne 0x404a40
push ecx
push edi
push 1
push 0
push esi
push eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x404ad8
push 3
push str.File_d
push esi
call dword [sym.imp.user32.dll_wsprintfW]
add esp, 0xc
xor ecx, ecx
mov eax, dword [ebp - 0x14]
nop word cs:[eax + eax]
cmp word [edi + ecx], 0
lea ecx, [ecx + 2]
jne 0x404a80
push ecx
push edi
push 1
push 0
push esi
push eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x404ad8
push 4
push str.File_d
push esi
call dword [sym.imp.user32.dll_wsprintfW]
add esp, 0xc
xor ecx, ecx
mov eax, dword [ebp - 0x14]
nop word cs:[eax + eax]
cmp word [edi + ecx], 0
lea ecx, [ecx + 2]
jne 0x404ac0
push ecx
push edi
push 1
push 0
push esi
push eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov esi, dword [ebp + 0xc]
push esi
call dbg.registry_read_filelist
add esp, 0x68
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 4
jmp 0x404b05
mov eax, 8
jmp 0x404b05
mov eax, 0xc
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x30]
push eax
push edx
push ecx
call sym._memmove
add esp, 0xc
test ebx, ebx
jne 0x4049dd
jmp 0x404ad8