Function at 0x461ff0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf3db
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x238], ebx
xor eax, eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x22c], eax
call fcn.0046fbd0
mov dword [ebp - 0x23c], eax
xor eax, eax
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x120]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4620f2
push 0x104
lea eax, [ebp - 0x120]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x462095
lea eax, [ebp - 0x120]
push 0x5c
push eax
call fcn.004ad400
add esp, 8
test eax, eax
je 0x4625e0
mov byte [eax], 0
add ebx, 0xb5c
lea edx, [ebp - 0x120]
mov esi, edx
mov byte [ebx], 0
mov al, byte [edx]
inc edx
test al, al
jne 0x4620a6
sub edx, esi
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4620b2
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 1]
jmp 0x4620d0
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4620d0
mov ax, word [0x4dfc28]
lea ecx, [ebx - 1]
mov word [edi], ax
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4620e6
jmp 0x46213a
add ebx, 0xb5c
lea edx, [ebp - 0x120]
mov esi, edx
mov byte [ebx], 0
mov al, byte [edx]
inc edx
test al, al
jne 0x462103
sub edx, esi
lea edi, [ebx - 1]
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x462110
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx - 1]
lea esp, [esp]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x462130
mov eax, dword [str.UltraVNC.ini]
mov dword [ecx], eax
mov eax, dword [0x4e13f4]
mov dword [ecx + 4], eax
mov eax, dword [0x4e13f8]
mov dword [ecx + 8], eax
mov al, byte [0x4e13fc]
mov byte [ecx + 0xc], al
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x46221b
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
lea eax, [ebp - 0x22c]
push eax
push 0x201eb
push edi
mov dword [ebp - 0x234], edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x46221d
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x230], eax
test eax, eax
jne 0x46221f
push 0x104
push ebx
push str._TEMP_
push dword [ebp - 0x22c]
call dword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserA]
lea edi, [ebx - 1]
mov edi, edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4621d0
mov ax, word [0x4dfc28]
dec ebx
mov word [edi], ax
mov al, byte [ebx + 1]
lea ebx, [ebx + 1]
test al, al
jne 0x4621e4
mov eax, dword [str.UltraVNC.ini]
mov edi, dword [ebp - 0x234]
mov dword [ebx], eax
mov eax, dword [0x4e13f4]
mov dword [ebx + 4], eax
mov eax, dword [0x4e13f8]
mov dword [ebx + 8], eax
mov al, byte [0x4e13fc]
mov byte [ebx + 0xc], al
mov eax, dword [ebp - 0x230]
jmp 0x46221f
xor edi, edi
xor eax, eax
mov ebx, dword [ebp - 0x238]
cmp dword [ebx + 0x114], 0
jne 0x46224c
test eax, eax
jne 0x462238
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4625d3
push edi
jmp 0x4625d1
mov eax, dword [ebx + 4]
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x4623c5
xor ecx, ecx
cmp dword [0x501498], ecx
cmovne esi, ecx
mov dword [ebx + 0x110], esi
test eax, eax
je 0x4623c5
test esi, esi
je 0x462303
lea ecx, [ebp - 0x228]
call fcn.0046fff0
test eax, eax
jne 0x4622ae
mov eax, dword [ebp - 0x230]
test eax, eax
jne 0x46229a
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push dword [ebp - 0x22c]
jmp 0x4625de
mov ecx, 0x4d9f42
lea eax, [ebp - 0x228]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4622e0
test dl, dl
je 0x4622dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4622e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4622c0
xor eax, eax
jmp 0x4622e5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4623c5
push 0x30
push 0x502668
mov edx, 0x502978
call fcn.0041b520
add esp, 8
jmp 0x46228a
lea eax, [ebp - 0x240]
mov dword [ebp - 0x238], 0
push eax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x23c], 0
push eax
push 0
push 0x20019
push 0
push 0
push 0
push 0x4db79c
push reloc.WS2_32.dll_bind
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x46234f
xor edi, edi
jmp 0x462382
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x23c]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.Default
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
xor ecx, ecx
test eax, eax
cmovne edi, ecx
mov eax, dword [ebp - 0x238]
mov ecx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x46239b
push eax
call ecx
mov ecx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x4623a8
push eax
call ecx
test edi, edi
jne 0x4623c5
push 0x30
push 0x502668
mov edx, 0x5028f8
call fcn.0041b520
add esp, 8
jmp 0x4625b0
cmp dword [ebx + 0x130], 0
jne 0x4625b0
cmp dword [ebx + 4], 0
je 0x4623fd
test esi, esi
je 0x4623e3
push str.vncproperties.cpp_:_show_per_user_Properties_n
jmp 0x4623e8
push str.vncproperties.cpp_:_show_default_system_Properties_n
push 9
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
mov dword [ebx + 0x110], esi
push ebx
push 0x462600
push 0
push 0x92
push dword [0x502044]
mov edi, 2
mov dword [ebx + 0x12c], 0
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp dword [ebx + 0x12c], 0
mov esi, eax
cmove esi, edi
push esi
push str.vncproperties.cpp_:_dialog_result___d_n
push 9
push 0x4f6c50
call fcn.00414f90
add esp, 0x10
cmp esi, 0xffffffff
je 0x462550
mov ecx, dword [ebx + 0x10c]
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ecx]
call dword [eax + 0x12c]
push str.l:ultravnc_install_vs2013ultravnc_test2ultravnc_project_rootultravncwinvncwinvnc_vncpasswd.h_:_PASSWD_:_ToText_called_n
push 9
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
push 9
call fcn.004ae57a
add esp, 4
mov edx, 1
mov ecx, 0x4f6498
mov edi, eax
call fcn.00415e60
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.004160e0
mov byte [edi + 8], 0
mov dword [ebp - 0x244], edi
mov ecx, edi
mov dword [ebp - 4], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4624b0
sub ecx, edx
jne 0x46257f
mov ecx, dword [ebx + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x18c]
test eax, eax
je 0x46257f
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4624e1
sub ecx, edx
push ecx
push 0
push edi
call fcn.004b67a0
add esp, 0xc
push edi
call fcn.004ae337
add esp, 4
push str.vncproperties.cpp_:_warning___empty_password_n
push 0
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
cmp esi, 2
je 0x46253c
push 0x30
push 0x5025e8
mov edx, 0x5026e8
call fcn.0041b520
add esp, 8
push 0xfa0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4623fd
push str.vncproperties.cpp_:_no_password___QUITTING_n
push 0
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 0x230]
test eax, eax
jne 0x462568
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [ebp - 0x234]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
push dword [ebp - 0x22c]
jmp 0x4625de
lea ecx, [ebp - 0x244]
mov dword [ebp - 4], 0xffffffff
call fcn.0042d460
cmp dword [0x501498], 0
jne 0x4625b0
cmp dword [ebx + 4], 0
mov ecx, ebx
je 0x4625ab
push 1
call fcn.00464770
jmp 0x4625b0
call fcn.00466b70
mov eax, dword [ebp - 0x230]
test eax, eax
jne 0x4625c0
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [ebp - 0x234]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4625d3
push eax
call esi
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x4625e0
push eax
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret 8