Function at 0x413179
Capabilities:
Set registry value

Disassembly:
push 0xd8
mov eax, 0x4722c0
call fcn.00461c59
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 0x1c]
push edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x48], eax
call fcn.00412bba
push edi
call fcn.00412c25
mov eax, 0x49f090
push eax
mov dword [ebp - 0xd8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
push 3
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
call fcn.0040e571
push edi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0041281e
mov byte [ebp - 4], 2
cmp dword [ebp + 0x18], esi
jge 0x413205
push 0x47c80c
lea ecx, [ebp - 0x44]
call fcn.00412851
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00412b78
push eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 3
call fcn.0041288d
push dword [ebp - 0x98]
call fcn.00462159
push dword [ebp - 0x44]
call fcn.00462159
pop ecx
pop ecx
mov dword [ebp - 0x38], esi
push edi
lea eax, [ebp - 0x98]
push eax
mov byte [ebp - 4], 4
call fcn.00412b37
mov eax, dword [eax]
push esi
push esi
mov edi, 0xf003f
push edi
push esi
push esi
push eax
mov ebx, SysReAllocStringLen
push ebx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
call fcn.00436870
push dword [ebp - 0x98]
mov byte [ebp - 4], 4
call fcn.00462159
pop ecx
push dword [ebp - 0x78]
lea ecx, [ebp - 0x38]
push esi
call fcn.00436751
cmp dword [ebp - 0x48], esi
je 0x4132c8
mov dword [ebp - 0x34], esi
push esi
push esi
push edi
push esi
push esi
push dword [0x49afb8]
lea ecx, [ebp - 0x34]
push dword [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.00436870
push dword [ebp + 0x20]
lea ecx, [ebp - 0x34]
push dword [ebp - 0x48]
push dword [0x49afbc]
call fcn.00436779
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.004366e2
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.004366e2
mov dword [ebp - 0x4c], esi
push esi
push esi
push edi
push esi
push esi
push dword [ebp - 0x78]
lea ecx, [ebp - 0x4c]
push ebx
mov byte [ebp - 4], 7
call fcn.00436870
mov eax, dword [ebp - 0x50]
push dword [eax]
lea ecx, [ebp - 0x4c]
push esi
call fcn.00436a5d
mov dword [ebp - 0x34], esi
push esi
push esi
push edi
push esi
push esi
push dword [0x49afc0]
lea ecx, [ebp - 0x34]
push dword [ebp - 0x4c]
mov byte [ebp - 4], 8
call fcn.00436870
push dword [ebp - 0xd4]
lea ecx, [ebp - 0x68]
call fcn.0040d273
mov byte [ebp - 4], 9
cmp dword [ebp + 0x18], esi
jge 0x413331
mov dword [ebp + 0x18], esi
push 0x47e4e8
lea ecx, [ebp - 0x68]
call fcn.0040cf83
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0x18]
call fcn.0044ba37
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x68]
call fcn.0040cf83
push dword [ebp - 0x68]
lea ecx, [ebp - 0x34]
push esi
call fcn.00436a5d
push dword [ebp - 0x68]
call fcn.00462159
pop ecx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 7
call fcn.004366e2
mov dword [ebp - 0x5c], esi
push esi
push esi
push edi
push esi
push esi
push dword [0x49afc4]
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x4c]
mov byte [ebp - 4], 0xa
call fcn.00436870
mov ebx, 0x47c7e8
push ebx
push esi
lea ecx, [ebp - 0x5c]
call fcn.00436751
mov dword [ebp - 0x58], esi
push esi
push esi
push edi
push esi
push esi
push dword [0x49afc8]
lea ecx, [ebp - 0x58]
push dword [ebp - 0x5c]
mov byte [ebp - 4], 0xb
call fcn.00436870
push ebx
push esi
lea ecx, [ebp - 0x58]
call fcn.00436751
mov dword [ebp - 0x88], esi
push esi
push esi
push edi
push esi
push esi
push dword [0x49afcc]
lea ecx, [ebp - 0x88]
push dword [ebp - 0x58]
mov byte [ebp - 4], 0xc
call fcn.00436870
mov eax, dword [ebp - 0x84]
push dword [eax]
lea ecx, [ebp - 0x88]
push esi
call fcn.00436a5d
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x68]
call fcn.0041281e
mov dword [ebp - 0x54], esi
push esi
push esi
mov byte [ebp - 4], 0xe
push edi
push esi
push esi
push dword [0x49afd4]
lea ecx, [ebp - 0x54]
push dword [ebp - 0x4c]
call fcn.00436870
mov dword [ebp - 0x80], esi
push esi
push esi
push edi
push esi
push esi
push dword [0x49afdc]
lea ecx, [ebp - 0x80]
push dword [ebp - 0x54]
mov byte [ebp - 4], 0xf
call fcn.00436870
mov dword [ebp - 0x9c], esi
push esi
push esi
push edi
push esi
push esi
push dword [0x49afe4]
lea ecx, [ebp - 0x9c]
push dword [ebp - 0x80]
mov byte [ebp - 4], 0x10
call fcn.00436870
mov dword [ebp - 0x7c], esi
push esi
push esi
push edi
push esi
push esi
push dword [0x49afe0]
lea ecx, [ebp - 0x7c]
push dword [ebp - 0x54]
mov byte [ebp - 4], 0x11
call fcn.00436870
mov dword [ebp - 0x8c], esi
push esi
push esi
push edi
push esi
push esi
push dword [0x49afe4]
lea ecx, [ebp - 0x8c]
push dword [ebp - 0x7c]
mov byte [ebp - 4], 0x12
call fcn.00436870
push 0x47e4e4
lea eax, [ebp - 0x68]
push eax
call fcn.00412b1e
test al, al
jne 0x413515
push 0x47e4e0
lea eax, [ebp - 0x68]
push eax
call fcn.00412b1e
test al, al
jne 0x413515
push 0x47e4dc
lea eax, [ebp - 0x68]
push eax
call fcn.00412b1e
test al, al
jne 0x413515
push 0x47e4d8
lea eax, [ebp - 0x68]
push eax
call fcn.00412b1e
test al, al
jne 0x413515
push 0x47e4d4
lea eax, [ebp - 0x68]
push eax
call fcn.00412b1e
test al, al
jne 0x413515
push 0x47e4d0
lea eax, [ebp - 0x68]
push eax
call fcn.00412b1e
test al, al
je 0x41354d
mov dword [ebp - 0x34], esi
push esi
push esi
push edi
push esi
push esi
push dword [0x49afd8]
lea ecx, [ebp - 0x34]
push dword [ebp - 0x54]
mov byte [ebp - 4], 0x13
call fcn.00436870
push dword [0x49afe4]
lea ecx, [ebp - 0x34]
push esi
call fcn.00436751
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x12
call fcn.004366e2
mov ebx, vtable.CObjectVector_class_CStringBase_char__.0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x24], ebx
push str._shellexContextMenuHandlers
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x14
call fcn.00411e39
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x15
call fcn.004128f4
push dword [ebp - 0x44]
mov byte [ebp - 4], 0x14
call fcn.00462159
lea ecx, [ebp - 0x44]
mov dword [esp], str.Drive_shellexContextMenuHandlers
call fcn.00411e39
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x16
call fcn.004128f4
push dword [ebp - 0x44]
mov byte [ebp - 4], 0x14
call fcn.00462159
lea ecx, [ebp - 0x44]
mov dword [esp], str.Folder_shellexContextMenuHandlers
call fcn.00411e39
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x17
call fcn.004128f4
push dword [ebp - 0x44]
mov byte [ebp - 4], 0x14
call fcn.00462159
lea ecx, [ebp - 0x44]
mov dword [esp], str.Directory_shellexContextMenuHandlers
call fcn.00411e39
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x18
call fcn.004128f4
push dword [ebp - 0x44]
call fcn.00462159
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xac], 4
mov dword [ebp - 0xbc], ebx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x19
mov dword [esp], str.winrar
call fcn.00411e39
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0x1a
call fcn.004128f4
push dword [ebp - 0x44]
mov byte [ebp - 4], 0x19
call fcn.00462159
lea ecx, [ebp - 0x44]
mov dword [esp], str.winrar32
call fcn.00411e39
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0x1b
push eax
lea ecx, [ebp - 0xbc]
call fcn.004128f4
push dword [ebp - 0x44]
mov byte [ebp - 4], 0x19
call fcn.00462159
lea ecx, [ebp - 0x44]
mov dword [esp], str.haozip
call fcn.00411e39
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0x1c
call fcn.004128f4
push dword [ebp - 0x44]
call fcn.00462159
pop ecx
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 0x1d
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], esi
jle 0x41383f
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x34]
push dword [eax + ecx*4]
lea ecx, [ebp - 0x98]
call fcn.0041281e
push edi
push dword [ebp - 0x98]
lea ecx, [ebp - 0x38]
push SysReAllocStringLen
mov byte [ebp - 4], 0x1e
call fcn.004368be
test eax, eax
jne 0x413820
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xc0], 4
mov dword [ebp - 0xd0], ebx
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x1f
call fcn.00436dff
test eax, eax
jne 0x413809
mov dword [ebp - 0x48], esi
cmp dword [ebp - 0xc8], esi
jle 0x413809
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0x48]
push dword [eax + ecx*4]
lea ecx, [ebp - 0x44]
call fcn.0041281e
push dword [ebp - 0x44]
mov byte [ebp - 4], 0x20
call dword [sym.imp.USER32.dll_CharUpperA]
mov dword [ebp - 0x50], esi
cmp dword [ebp - 0xb4], esi
jle 0x4137ea
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0x50]
push dword [eax + ecx*4]
lea ecx, [ebp - 0xa8]
call fcn.0041281e
push dword [ebp - 0xa8]
mov byte [ebp - 4], 0x21
call dword [sym.imp.USER32.dll_CharUpperA]
lea ecx, [ebp - 0xa8]
call fcn.00413153
push esi
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x44]
call fcn.004129ed
test eax, eax
js 0x4137cc
push dword [ebp - 0x44]
lea ecx, [ebp - 0x38]
call fcn.004368f3
push dword [ebp - 0xa8]
mov byte [ebp - 4], 0x20
call fcn.00462159
inc dword [ebp - 0x50]
mov eax, dword [ebp - 0x50]
pop ecx
cmp eax, dword [ebp - 0xb4]
jl 0x41377b
push dword [ebp - 0x44]
mov byte [ebp - 4], 0x1f
call fcn.00462159
inc dword [ebp - 0x48]
mov eax, dword [ebp - 0x48]
pop ecx
cmp eax, dword [ebp - 0xc8]
jl 0x41374f
lea ecx, [ebp - 0x38]
call fcn.004366e2
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0x1e
call fcn.004128c3
push dword [ebp - 0x98]
mov byte [ebp - 4], 0x1d
call fcn.00462159
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
pop ecx
cmp eax, dword [ebp - 0x1c]
jl 0x4136cf
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x19
call fcn.004366e2
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0x14
call fcn.004128c3
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x12
call fcn.004128c3
push dword [ebp - 0x6c]
lea eax, [ebp - 0xe4]
push eax
call fcn.00412b37
mov ebx, eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x22
call fcn.00411e39
push ebx
push eax
lea eax, [ebp - 0xa8]
push eax
mov byte [ebp - 4], 0x23
call fcn.00412a9e
push dword [ebp - 0x98]
call fcn.00462159
push dword [ebp - 0xe4]
mov byte [ebp - 4], 0x26
call fcn.00462159
pop ecx
pop ecx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push edi
push esi
push esi
push esi
push dword [ebp - 0xa8]
mov ebx, SysReAllocStringLen
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x38]
push eax
push 0x20006
push esi
push dword [ebp - 0xa8]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x413913
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push 1
push esi
push str.Progid
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x6c]
lea eax, [ebp - 0x1c]
push eax
call fcn.00412b37
mov dword [ebp - 0x84], eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 0x27
call fcn.00411e39
push dword [ebp - 0x84]
mov byte [ebp - 4], 0x28
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00412a9e
push str.UserChoice
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 0x29
call fcn.00412ade
push dword [ebp - 0xc8]
call fcn.00462159
push dword [ebp - 0xb4]
call fcn.00462159
push dword [ebp - 0x1c]
call fcn.00462159
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push edi
push esi
push esi
push esi
push dword [ebp - 0x44]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x38]
push eax
push 0x20006
push esi
push dword [ebp - 0x44]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4139d3
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push 1
push esi
push str.Progid
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x44]
call fcn.00462159
push dword [ebp - 0xa8]
call fcn.00462159
pop ecx
pop ecx
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x11
call fcn.004366e2
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x10
call fcn.004366e2
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0xf
call fcn.004366e2
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xe
call fcn.004366e2
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xd
call fcn.004366e2
push dword [ebp - 0x68]
call fcn.00462159
pop ecx
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xb
call fcn.004366e2
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.004366e2
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
call fcn.004366e2
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.004366e2
push dword [ebp - 0x78]
call fcn.00462159
mov dword [esp], 0x49f090
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00461cdc
ret 0x1c