Function at 0x420a5c
Capabilities:
Get common file path
Persist via default file association registry key
Query or enumerate registry value
Read .ini file
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc8c
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov dword [ebp - 0xc7c], 1
push edi
xor edi, edi
mov dword [ebp - 0xc8c], edi
mov ebx, dword [esi + 0x34]
mov ecx, dword [esi]
mov dword [ebp - 0xc78], edi
mov dword [ebp - 0xc80], edi
call fcn.0041e3a4
test eax, eax
je 0x421307
mov ecx, dword [esi + 8]
call fcn.0041e3a4
test eax, eax
je 0x421307
mov ecx, dword [esi + 0x20]
call fcn.0041e3a4
test eax, eax
je 0x420c9c
push 0x122
lea eax, [ebp - 0x8d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x420c9c
push ecx
lea eax, [ebp - 0xc84]
mov edi, 0x122
push eax
mov edx, edi
lea ecx, [ebp - 0x8d8]
call fcn.00418514
test eax, eax
js 0x420b1d
mov eax, dword [ebp - 0xc84]
mov edx, edi
push ecx
push 0x404434
push ecx
lea ecx, [ebp - 0x8d8]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.00418577
push dword [esi + 0x20]
push 0x4044e8
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
neg eax
pop ecx
sbb edi, edi
lea eax, [ebp - 0x8d8]
push eax
push 0x104
lea eax, [ebp - 0x20c]
neg edi
push eax
push 0x401188
push dword [esi + 0x20]
push 0x404460
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x420bac
lea eax, [ebp - 0x20c]
push 0x40446c
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x420ba9
push dword [esi + 0x20]
push 0x4044e8
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x420c9a
lea eax, [ebp - 0x20c]
push eax
push 0x401188
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x420c9a
xor edi, edi
inc edi
test edi, edi
je 0x420c9a
push dword [esi + 0x20]
push 0x4044e8
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x420bf9
push 0x40446c
mov edx, 0x103
lea ecx, [ebp - 0x20c]
call fcn.00418392
lea eax, [ebp - 0x8d8]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x20]
push 0x404460
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [esi]
lea ecx, [ebp - 0x20c]
add eax, 2
mov edx, 0x103
push eax
call fcn.00418392
push 0x122
lea eax, [ebp - 0x450]
mov edi, 0x4044c8
push eax
push 0x401188
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
test eax, eax
je 0x420c74
lea eax, [ebp - 0x450]
push eax
push 0x401188
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x420c74
lea eax, [ebp - 0x450]
push eax
push 0x404488
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x420c9a
push dword [esi + 0x20]
lea eax, [ebp - 0x20c]
push eax
push edi
jmp 0x420c94
push dword [esi + 0x20]
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteProfileStringW]
push dword [esi + 0x20]
lea eax, [ebp - 0x20c]
push eax
push 0x4044a0
call dword [sym.imp.KERNEL32.dll_WriteProfileStringW]
xor edi, edi
push dword [esi]
lea eax, [ebp - 0xc74]
push 0x4044fc
push 0xc7
push eax
call fcn.00418481
add esp, 0x10
test eax, eax
js 0x420d01
push edi
lea eax, [ebp - 0xc78]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
lea eax, [ebp - 0xc74]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x420d01
push edi
push edi
push edi
push edi
push dword [esi + 8]
push dword [ebp - 0xc78]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea eax, [ebp - 0xc78]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push 0x404528
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x420d4a
push 2
push 0x401064
push 1
push edi
push dword [esi]
push dword [ebp - 0xc78]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea eax, [ebp - 0xc78]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push dword [esi]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x421307
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0xc88], edi
call fcn.0041e3a4
test eax, eax
je 0x420df4
lea eax, [ebp - 0xc80]
mov dword [ebp - 0xc80], 0x244
push eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0xc7c]
push eax
push edi
push 0x40457c
push dword [ebp - 0xc78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x420dc0
cmp dword [ebp - 0xc7c], 1
je 0x420df4
mov ecx, dword [esi + 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x420dc6
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [esi + 0xc]
push 1
push edi
push 0x40457c
push dword [ebp - 0xc78]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esi + 0x10]
call fcn.0041e3a4
test eax, eax
je 0x420e72
lea eax, [ebp - 0xc80]
mov dword [ebp - 0xc80], 0x244
push eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0xc7c]
push eax
push edi
push 0x404418
push dword [ebp - 0xc78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x420e3e
cmp dword [ebp - 0xc7c], 1
je 0x420e72
mov ecx, dword [esi + 0x10]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x420e44
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [esi + 0x10]
push 1
push edi
push 0x404418
push dword [ebp - 0xc78]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0xc80]
mov dword [ebp - 0xc80], 0x244
push eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0xc7c]
push eax
push edi
push edi
push dword [ebp - 0xc78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4212cb
cmp dword [ebp - 0xc7c], 1
jne 0x4212cb
lea ecx, [ebp - 0x450]
call fcn.0041e3a4
test eax, eax
je 0x4212cb
mov ecx, dword [esi]
call fcn.0041ec2c
test eax, eax
jne 0x420f0c
push dword [esi + 8]
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x420ef1
push 0x10
push 0x404408
jmp 0x420ef8
push 0xe
push 0x404598
push 1
push edi
push 0x4043f4
push dword [ebp - 0xc78]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test ebx, ebx
jne 0x4212fb
xor eax, eax
xor edi, edi
mov ebx, eax
inc edi
lea eax, [ebp - 0x450]
push eax
push 0x4030ec
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00418481
add esp, 0x10
lea eax, [ebp - 0xc88]
push eax
push 0x2001f
xor eax, eax
push eax
lea eax, [ebp - 0x20c]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x420fd0
lea eax, [ebp - 0xc80]
mov dword [ebp - 0xc80], 0x244
push eax
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0xc7c]
push eax
xor eax, eax
push eax
push eax
push dword [ebp - 0xc88]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x420fc5
cmp dword [ebp - 0xc7c], edi
je 0x420fa4
cmp dword [ebp - 0xc7c], 2
jne 0x420fc5
lea ecx, [ebp - 0x694]
call fcn.0041e3a4
test eax, eax
je 0x420fc5
mov edx, dword [esi]
mov eax, ecx
xor ecx, ecx
xor ebx, ebx
push eax
inc ecx
inc ebx
call fcn.0041e5a9
mov edi, eax
push dword [ebp - 0xc88]
jmp 0x42108b
push dword [esi]
xor eax, eax
push 0x403130
push 0x4045a8
mov dword [ebp - 0xc84], eax
lea eax, [ebp - 0xae4]
push 0x104
push eax
call fcn.00418481
add esp, 0x14
test eax, eax
js 0x421099
lea eax, [ebp - 0xc84]
push eax
push 1
xor eax, eax
push eax
lea eax, [ebp - 0xae4]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421099
lea eax, [ebp - 0xc80]
mov dword [ebp - 0xc80], 0x20a
push eax
lea eax, [ebp - 0xae4]
push eax
lea eax, [ebp - 0xc7c]
push eax
xor eax, eax
push eax
push 0x403e7c
push dword [ebp - 0xc84]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x421085
cmp dword [ebp - 0xc7c], 1
jne 0x421085
lea eax, [ebp - 0xae4]
push 0x401b58
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x421085
push dword [ebp - 0xc84]
jmp 0x421301
push dword [ebp - 0xc84]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x421221
lea eax, [ebp - 0x450]
push eax
push 0x403fa4
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00418481
add esp, 0x10
lea eax, [ebp - 0xc88]
push eax
push 1
xor eax, eax
push eax
lea eax, [ebp - 0x20c]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42121d
lea eax, [ebp - 0xc80]
mov dword [ebp - 0xc80], 0x244
push eax
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0xc7c]
push eax
xor eax, eax
push eax
push eax
push dword [ebp - 0xc88]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x421211
cmp dword [ebp - 0xc7c], 1
jne 0x421211
lea ecx, [ebp - 0x694]
call fcn.0041e3a4
test eax, eax
je 0x421211
mov eax, ecx
push 0x404030
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x421211
xor eax, eax
mov dword [ebp - 0xc84], eax
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0x450]
push eax
push 0x404008
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00418481
add esp, 0x14
lea eax, [ebp - 0xc84]
push eax
push 1
xor eax, eax
push eax
lea eax, [ebp - 0x20c]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421211
lea eax, [ebp - 0xc80]
mov dword [ebp - 0xc80], 0x244
push eax
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0xc7c]
push eax
xor eax, eax
push eax
push eax
push dword [ebp - 0xc84]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x421205
cmp dword [ebp - 0xc7c], 1
je 0x4211e4
cmp dword [ebp - 0xc7c], 2
jne 0x421205
lea ecx, [ebp - 0x694]
call fcn.0041e3a4
test eax, eax
je 0x421205
mov edx, dword [esi]
mov eax, ecx
xor ecx, ecx
xor ebx, ebx
push eax
inc ecx
inc ebx
call fcn.0041e5a9
mov edi, eax
push dword [ebp - 0xc84]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc88]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x421229
test ebx, ebx
jne 0x4212fb
push dword [esi + 8]
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x421280
lea ecx, [ebp - 0x450]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xc8c]
jne 0x421248
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x450]
push eax
push 1
xor eax, eax
push eax
push 0x4040a4
push dword [ebp - 0xc78]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esi + 8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xc8c]
jne 0x421286
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [esi + 8]
xor eax, eax
push 1
push eax
push eax
push dword [ebp - 0xc78]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esi + 8]
mov edx, 0x121
lea ecx, [ebp - 0x450]
call fcn.00418392
jmp 0x4212fb
mov ecx, dword [esi + 8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4212d1
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [esi + 8]
push 1
push edi
push edi
push dword [ebp - 0xc78]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc78]
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