Function at 0x4047e0
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
sub esp, 0x230
mov eax, dword [0x424310]
xor eax, esp
mov dword [esp + 0x22c], eax
mov eax, dword [str.URL:VSee_Protocol]
mov ecx, dword [0x41f710]
mov edx, dword [0x41f714]
push ebp
xor ebp, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [0x41f718]
mov dword [esp + 0x20], ecx
mov cx, word [0x41f71c]
push esi
push 0x41f708
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov word [esp + 0x34], cx
mov byte [esp + 0xf], 0
call fcn.00406a30
push eax
lea edx, [esp + 0x3c]
push str._s_vsee.exe_s
push edx
call fcn.00401830
add esp, 0x10
push 0x41f6f4
call fcn.00406a30
push eax
lea eax, [esp + 0x13c]
push str._s_vsee.exe_s
push eax
call fcn.00401830
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
push ebp
push str.VSee_shellopenCommand
push 0x80000000
call esi
test eax, eax
jne 0x4048c5
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0040a52f
add esp, 0x230
ret
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea eax, [esp + 0x14]
push eax
push 0x41f6ec
push 0x80000000
call edi
test eax, eax
jne 0x404a28
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push 0xf003f
push ebp
push str.DefaultIcon
push edx
call esi
test eax, eax
je 0x40491a
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
push str.DefaultIcon
push ecx
call edi
test eax, eax
jne 0x404a28
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push 0xf003f
push ebp
push str.shell
push eax
call esi
test eax, eax
je 0x40494e
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push str.shell
push edx
call edi
test eax, eax
jne 0x404a28
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push 0xf003f
push ebp
push str.open
push ecx
call esi
test eax, eax
je 0x404982
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push str.open
push eax
call edi
test eax, eax
jne 0x404a28
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push 0xf003f
push ebp
push str.Command
push edx
call esi
test eax, eax
je 0x4049b2
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push str.Command
push ecx
call edi
test eax, eax
jne 0x404a28
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x28]
push edx
call esi
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
lea eax, [esp + 0x2c]
push eax
push 1
push ebp
push ebp
push ecx
call edi
lea edx, [esp + 0x13]
push edx
call esi
mov ecx, dword [esp + 0x14]
push eax
lea eax, [esp + 0x17]
push eax
push 1
push ebp
push str.URL_Protocol
push ecx
call edi
lea edx, [esp + 0x3c]
push edx
call esi
mov ecx, dword [esp + 0x24]
push eax
lea eax, [esp + 0x40]
push eax
push 1
push ebp
push ebp
push ecx
call edi
lea edx, [esp + 0x13c]
push edx
call esi
mov ecx, dword [esp + 0x20]
push eax
lea eax, [esp + 0x140]
push eax
push 1
push ebp
push ebp
push ecx
call edi
mov eax, dword [esp + 0x20]
cmp eax, ebp
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
je 0x404a3d
push eax
call esi
jmp 0x404a3f
xor bl, bl
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x404a4c
push eax
call esi
jmp 0x404a4e
xor bl, bl
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x404a5b
push eax
call esi
jmp 0x404a5d
xor bl, bl
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x404a6a
push eax
call esi
jmp 0x404a6c
xor bl, bl
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x404a79
push eax
call esi
jmp 0x404a7b
xor bl, bl
mov ecx, dword [esp + 0x23c]
pop edi
mov al, bl
pop ebx
pop esi
pop ebp
xor ecx, esp
call fcn.0040a52f
add esp, 0x230
ret