Function at 0x41f476
Capabilities:
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x874
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
push edi
push edx
push 0x4040e0
mov dword [ebp - 0x870], eax
mov edi, eax
mov dword [ebp - 0x864], eax
mov dword [ebp - 0x86c], eax
lea eax, [ebp - 0x61c]
push 0x121
push eax
mov dword [ebp - 0x874], ecx
mov dword [ebp - 0x868], 1
call fcn.00418481
add esp, 0x10
lea eax, [ebp - 0x864]
xor ecx, ecx
push ecx
push eax
push ecx
push 0x2001f
push ecx
push ecx
push ecx
push dword [ebp - 0x874]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41f649
lea eax, [ebp - 0x86c]
mov dword [ebp - 0x86c], 0x244
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x868]
push eax
xor eax, eax
push eax
push 0x4040f4
push dword [ebp - 0x864]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41f540
cmp dword [ebp - 0x868], 1
je 0x41f55d
push 2
push 0x401064
push 1
xor eax, eax
push eax
push 0x4040f4
push dword [ebp - 0x864]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x86c]
mov dword [ebp - 0x86c], 0x244
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x868]
push eax
xor eax, eax
push eax
push eax
push dword [ebp - 0x864]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41f5a8
cmp dword [ebp - 0x868], 1
jne 0x41f5a8
lea ecx, [ebp - 0x248]
call fcn.0041e3a4
test eax, eax
jne 0x41f604
push dword [ebp - 0x874]
lea eax, [ebp - 0x248]
push 0x404110
push 0x121
push eax
call fcn.00418481
lea ecx, [ebp - 0x248]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x870]
jne 0x41f5d0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x248]
push eax
push 1
xor eax, eax
push eax
push eax
push dword [ebp - 0x864]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x870]
jne 0x41f609
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
xor esi, esi
push esi
push 0x404130
push dword [ebp - 0x864]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x864]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41f64b
xor esi, esi
push dword [ebp - 0x874]
lea eax, [ebp - 0x3d8]
push 0x4030ec
push 0xc7
push eax
call fcn.00418481
add esp, 0x10
lea eax, [ebp - 0x864]
push esi
push eax
push esi
push 0x2001f
push esi
push esi
push esi
lea eax, [ebp - 0x3d8]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41f9e7
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x86c], 0x244
push eax
lea eax, [ebp - 0x868]
push eax
push esi
push esi
push dword [ebp - 0x864]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x868]
test eax, eax
jne 0x41f846
cmp edx, 1
je 0x41f6e5
cmp edx, 2
jne 0x41f846
lea ecx, [ebp - 0x248]
call fcn.0041e3a4
test eax, eax
je 0x41f846
push dword [ebp - 0x874]
xor eax, eax
push 0x403130
push 0x40414c
mov dword [ebp - 0x870], eax
lea eax, [ebp - 0x3d8]
push 0xc7
push eax
call fcn.00418481
add esp, 0x14
lea eax, [ebp - 0x870]
push eax
push 1
xor eax, eax
push eax
lea eax, [ebp - 0x3d8]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41f7b2
lea eax, [ebp - 0x86c]
mov dword [ebp - 0x86c], 0x190
push eax
lea eax, [ebp - 0x3d8]
push eax
lea eax, [ebp - 0x868]
push eax
xor eax, eax
push eax
push 0x403eb0
push dword [ebp - 0x870]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41f7a2
cmp dword [ebp - 0x868], 1
jne 0x41f7a2
lea eax, [ebp - 0x3d8]
push 0x403ed8
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
mov esi, eax
neg esi
pop ecx
sbb esi, esi
pop ecx
neg esi
push dword [ebp - 0x870]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x41f7cb
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x248]
push eax
xor ecx, ecx
call fcn.0041e5a9
test eax, eax
je 0x41f89e
lea eax, [ebp - 0x248]
mov edx, 0x121
push eax
lea ecx, [ebp - 0x860]
call fcn.00418392
lea eax, [ebp - 0x860]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
pop ecx
lea ecx, [ebp - 0x860]
call fcn.0041e3eb
xor esi, esi
test eax, eax
jne 0x41f840
lea ecx, [ebp - 0x248]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41f80a
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x868]
push esi
push 0x4040a4
push dword [ebp - 0x864]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x868]
xor edi, edi
inc edi
cmp edx, edi
je 0x41f852
cmp edx, 2
jne 0x41f867
lea edx, [ebp - 0x61c]
lea ecx, [ebp - 0x248]
call fcn.0041e51f
test eax, eax
jne 0x41f89e
lea ecx, [ebp - 0x61c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41f870
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x61c]
push eax
push 1
push esi
push esi
push dword [ebp - 0x864]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x864]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x41f9e7
mov ecx, ebx
call fcn.0041e3a4
test eax, eax
je 0x41f9e7
push dword [ebp - 0x874]
lea eax, [ebp - 0x3d8]
push 0x4040c0
push 0xc7
push eax
call fcn.00418481
add esp, 0x10
lea eax, [ebp - 0x864]
xor esi, esi
push esi
push eax
push esi
push 0x2001f
push esi
push esi
push esi
lea eax, [ebp - 0x3d8]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41f9e7
lea eax, [ebp - 0x86c]
mov dword [ebp - 0x86c], 0x244
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x868]
push eax
push esi
push esi
push dword [ebp - 0x864]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41f9ae
cmp dword [ebp - 0x868], 1
je 0x41f950
cmp dword [ebp - 0x868], 2
jne 0x41f9ae
lea ecx, [ebp - 0x248]
call fcn.0041e3a4
test eax, eax
je 0x41f9ae
mov eax, ecx
push eax
push ebx
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x41f9ae
lea ecx, [ebp - 0x248]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41f978
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x868]
push esi
push 0x4040a4
push dword [ebp - 0x864]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41f9b3
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 2
push esi
push esi
push dword [ebp - 0x864]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x864]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429770
mov esp, ebp
pop ebp
ret 0xc