Function at 0x103585a
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, 0xc90
mov eax, dword [0x103f058]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x34]
mov edx, dword [esi]
push edi
xor edi, edi
push edx
mov dword [ebp - 0xc78], edi
mov dword [ebp - 0xc80], edi
mov dword [ebp - 0xc7c], 1
mov dword [ebp - 0xc84], eax
call fcn.010313bf
test eax, eax
je 0x1036255
push dword [esi + 8]
call fcn.010313bf
test eax, eax
je 0x1036255
push ebx
push edx
call fcn.010316cd
push dword [esi + 0x20]
call fcn.010313bf
test eax, eax
je 0x1035a84
push 0x122
lea eax, [ebp - 0xc74]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1035a84
push 0x1006da8
push 0x122
lea eax, [ebp - 0xc74]
push eax
call fcn.01027edd
push dword [esi + 0x20]
push 0x1006f44
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
mov ebx, eax
lea eax, [ebp - 0xc74]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x103f01c]
neg ebx
push dword [esi + 0x20]
sbb ebx, ebx
push 0x1006d88
neg ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x103598f
lea eax, [ebp - 0x20c]
push 0x1006d6c
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x103598c
push dword [esi + 0x20]
push 0x1006f44
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1035a84
lea eax, [ebp - 0x20c]
push eax
push dword [0x103f01c]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1035a84
xor ebx, ebx
inc ebx
cmp ebx, edi
je 0x1035a84
push dword [esi + 0x20]
push 0x1006f44
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x10359dd
push 0x1006d6c
push 0x103
lea eax, [ebp - 0x20c]
push eax
call fcn.01027e68
lea eax, [ebp - 0xc74]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x20]
push 0x1006d88
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [esi]
inc eax
inc eax
push eax
push 0x103
lea eax, [ebp - 0x20c]
push eax
call fcn.01027e68
push 0x122
lea eax, [ebp - 0x450]
push eax
push dword [0x103f01c]
lea eax, [ebp - 0x20c]
push eax
mov ebx, 0x1006d0c
push ebx
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
test eax, eax
je 0x1035a60
lea eax, [ebp - 0x450]
push eax
push dword [0x103f01c]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1035a60
lea eax, [ebp - 0x450]
push eax
push 0x1006d54
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1035a84
push dword [esi + 0x20]
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProfileStringW]
jmp 0x1035a84
push dword [esi + 0x20]
lea eax, [ebp - 0x20c]
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProfileStringW]
call ebx
push dword [esi + 0x20]
lea eax, [ebp - 0x20c]
push eax
push 0x1006d2c
call ebx
push edi
push edi
push edi
push 6
call fcn.0102fffb
mov ebx, 0xc7
test eax, eax
jne 0x1035ae7
push dword [0x103f070]
lea eax, [ebp - 0x824]
push dword [esi]
push 0x1006f1c
push ebx
push eax
call fcn.01027f64
add esp, 0x14
push edi
lea eax, [ebp - 0xc78]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
lea eax, [ebp - 0x824]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1035ae7
push dword [ebp - 0xc78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esi]
lea eax, [ebp - 0x824]
push 0x1006ef4
push ebx
push eax
call fcn.01027f64
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esp, 0x10
test eax, eax
jl 0x1035b4a
push edi
lea eax, [ebp - 0xc78]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
lea eax, [ebp - 0x824]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1035b4a
push edi
push edi
push edi
push edi
push dword [esi + 8]
push dword [ebp - 0xc78]
call ebx
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 0x1006ea0
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1035b8f
push 2
push 0x1002720
push 1
push edi
push dword [esi]
push dword [ebp - 0xc78]
call ebx
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 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1036254
push dword [esi + 0xc]
mov dword [ebp - 0xc8c], edi
call fcn.010313bf
test eax, eax
je 0x1035c3b
lea eax, [ebp - 0xc80]
push eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0xc7c]
push eax
push edi
push 0x1006e80
push dword [ebp - 0xc78]
mov dword [ebp - 0xc80], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1035c05
cmp dword [ebp - 0xc7c], 1
je 0x1035c3b
mov ecx, dword [esi + 0xc]
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0xc88], edx
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x1035c13
sub eax, dword [ebp - 0xc88]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push edi
push 0x1006e80
push dword [ebp - 0xc78]
call ebx
push dword [esi + 0x10]
call fcn.010313bf
test eax, eax
je 0x1035cbb
lea eax, [ebp - 0xc80]
push eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0xc7c]
push eax
push edi
push 0x1006dd0
push dword [ebp - 0xc78]
mov dword [ebp - 0xc80], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1035c85
cmp dword [ebp - 0xc7c], 1
je 0x1035cbb
mov ecx, dword [esi + 0x10]
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0xc88], edx
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x1035c93
sub eax, dword [ebp - 0xc88]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push edi
push 0x1006dd0
push dword [ebp - 0xc78]
call ebx
lea eax, [ebp - 0xc80]
push eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0xc7c]
push eax
push edi
push edi
push dword [ebp - 0xc78]
mov dword [ebp - 0xc80], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1036145
cmp dword [ebp - 0xc7c], 1
jne 0x1036145
lea eax, [ebp - 0x450]
push eax
call fcn.010313bf
test eax, eax
je 0x1036145
push dword [esi]
call fcn.010326b2
test eax, eax
jne 0x1035d52
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 0x1035d3b
push 0x10
push 0x1006dfc
jmp 0x1035d42
push 0xe
push 0x1006e70
push 1
push edi
push 0x1006e0c
push dword [ebp - 0xc78]
call ebx
cmp dword [ebp - 0xc84], edi
jne 0x1036177
lea eax, [ebp - 0x450]
push eax
push 0x1004250
lea eax, [ebp - 0x20c]
push 0x103
push eax
mov dword [ebp - 0xc90], 1
mov dword [ebp - 0xc88], edi
call fcn.01027f64
add esp, 0x10
lea eax, [ebp - 0xc8c]
push eax
push 0x2001f
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1035e2d
lea eax, [ebp - 0xc80]
push eax
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0xc7c]
push eax
push edi
push edi
push dword [ebp - 0xc8c]
mov dword [ebp - 0xc80], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1035e22
cmp dword [ebp - 0xc7c], 1
je 0x1035df4
cmp dword [ebp - 0xc7c], 2
jne 0x1035e22
lea eax, [ebp - 0x694]
push eax
call fcn.010313bf
test eax, eax
je 0x1035e22
lea ecx, [ebp - 0x694]
push ecx
push dword [esi]
xor eax, eax
inc eax
push eax
mov dword [ebp - 0xc88], eax
call fcn.01032084
mov dword [ebp - 0xc90], eax
push dword [ebp - 0xc8c]
jmp 0x1035ee3
push dword [esi]
lea eax, [ebp - 0xa30]
push dword [0x103f06c]
mov dword [ebp - 0xc84], edi
push 0x1006e4c
push 0x104
push eax
call fcn.01027f64
add esp, 0x14
test eax, eax
jl 0x1035ef5
lea eax, [ebp - 0xc84]
push eax
push 1
push edi
lea eax, [ebp - 0xa30]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1035ef5
lea eax, [ebp - 0xc80]
push eax
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0xc7c]
push eax
push edi
push 0x10066c4
push dword [ebp - 0xc84]
mov dword [ebp - 0xc80], 0x20a
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1035edd
cmp dword [ebp - 0xc7c], 1
jne 0x1035edd
lea eax, [ebp - 0xa30]
push 0x1001e30
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1035edd
push dword [ebp - 0xc84]
jmp 0x103613a
push dword [ebp - 0xc84]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc90], edi
je 0x1036089
lea eax, [ebp - 0x450]
push eax
push 0x1006794
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.01027f64
add esp, 0x10
lea eax, [ebp - 0xc8c]
push eax
push 1
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1036081
lea eax, [ebp - 0xc80]
push eax
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0xc7c]
push eax
push edi
push edi
push dword [ebp - 0xc8c]
mov dword [ebp - 0xc80], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1036075
cmp dword [ebp - 0xc7c], 1
jne 0x1036075
lea eax, [ebp - 0x694]
push eax
call fcn.010313bf
test eax, eax
je 0x1036075
lea eax, [ebp - 0x694]
push 0x1006830
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1036075
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0x450]
push eax
push 0x1006808
lea eax, [ebp - 0x20c]
push 0x103
push eax
mov dword [ebp - 0xc84], edi
call fcn.01027f64
add esp, 0x14
lea eax, [ebp - 0xc84]
push eax
push 1
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1036075
lea eax, [ebp - 0xc80]
push eax
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0xc7c]
push eax
push edi
push edi
push dword [ebp - 0xc84]
mov dword [ebp - 0xc80], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1036069
cmp dword [ebp - 0xc7c], 1
je 0x103603b
cmp dword [ebp - 0xc7c], 2
jne 0x1036069
lea eax, [ebp - 0x694]
push eax
call fcn.010313bf
test eax, eax
je 0x1036069
lea ecx, [ebp - 0x694]
push ecx
push dword [esi]
xor eax, eax
inc eax
push eax
mov dword [ebp - 0xc88], eax
call fcn.01032084
mov dword [ebp - 0xc90], eax
push dword [ebp - 0xc84]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc8c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc90], edi
jne 0x1036095
cmp dword [ebp - 0xc88], edi
jne 0x1036124
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 0x10360de
lea eax, [ebp - 0x450]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x10360b4
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x450]
push eax
push 1
push edi
push 0x10064bc
push dword [ebp - 0xc78]
call ebx
mov ecx, dword [esi + 8]
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0xc84], edx
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x10360ec
sub eax, dword [ebp - 0xc84]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push edi
push edi
push dword [ebp - 0xc78]
call ebx
push dword [esi + 8]
lea eax, [ebp - 0x450]
push 0x121
push eax
call fcn.01027e68
cmp dword [ebp - 0xc90], edi
jne 0x1036177
cmp dword [ebp - 0xc88], edi
je 0x1036177
push dword [ebp - 0xc78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1036254
mov ecx, dword [esi + 8]
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0xc88], edx
mov dx, word [eax]
inc eax
inc eax
cmp dx, di
jne 0x1036153
sub eax, dword [ebp - 0xc88]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push edi
push edi
push dword [ebp - 0xc78]
call ebx
push dword [ebp - 0xc78]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
mov edx, dword [esi + 0xc]
push edx
call fcn.010313bf
test eax, eax
je 0x1036254
push 0x1006e20
push edx
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1036254
push dword [esi]
lea eax, [ebp - 0x20c]
push 0x1006c88
push 0x103
push eax
call fcn.01027f64
add esp, 0x10
push edi
lea eax, [ebp - 0xc78]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1036254
lea eax, [ebp - 0xc80]
push eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0xc7c]
push eax
push edi
push edi
push dword [ebp - 0xc78]
mov dword [ebp - 0xc80], 0x244
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x103624c
cmp dword [ebp - 0xc7c], 1
jne 0x103624c
lea eax, [ebp - 0x450]
push eax
call fcn.010313bf
test eax, eax
je 0x103624c
lea eax, [ebp - 0x450]
push 0x1006c30
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
push dword [ebp - 0xc78]
call ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0102df7d
leave
ret 8