Function at 0x4435b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x499e4b
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ba700]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x260]
mov dword [esp + 0x20], ebp
call fcn.00451100
mov dword [esp + 0x14], eax
lea eax, [esp + 0x3c]
push eax
xor ebx, ebx
push 0x104
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4436ae
push 0x104
lea ecx, [esp + 0x40]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x44364b
lea edx, [esp + 0x3c]
push 0x5c
push edx
call fcn.0047c410
add esp, 8
cmp eax, ebx
je 0x443b29
mov byte [eax], bl
add ebp, 0x95c
lea eax, [esp + 0x3c]
mov byte [ebp], bl
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x443660
mov edi, ebp
sub eax, ecx
mov esi, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x443670
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x443690
mov ax, word [0x4a3f08]
mov word [edi], ax
mov eax, ebp
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4436a4
jmp 0x4436f8
add ebp, 0x95c
lea eax, [esp + 0x3c]
mov byte [ebp], bl
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4436c0
mov edi, ebp
sub eax, ecx
mov esi, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4436d0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, ebp
rep movsb byte es:[edi], byte [esi]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4436f0
mov ecx, dword [str.ultravnc.ini]
mov dword [eax], ecx
mov edx, dword [0x4a997c]
mov dword [eax + 4], edx
mov ecx, dword [0x4a9980]
mov dword [eax + 8], ecx
mov dl, byte [0x4a9984]
mov byte [eax + 0xc], dl
cmp dword [esp + 0x14], ebx
je 0x4437bf
mov eax, dword [esp + 0x14]
push eax
push ebx
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x18]
push ecx
push 0x201eb
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4437bf
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x4437bf
mov eax, dword [esp + 0x18]
push 0x104
push ebp
push str._TEMP_
push eax
call dword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserA]
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x443781
mov cx, word [0x4a3f08]
mov word [edi], cx
dec ebp
mov al, byte [ebp + 1]
inc ebp
cmp al, bl
jne 0x443794
mov edx, dword [str.ultravnc.ini]
mov dword [ebp], edx
mov eax, dword [0x4a997c]
mov dword [ebp + 4], eax
mov ecx, dword [0x4a9980]
mov dword [ebp + 8], ecx
mov dl, byte [0x4a9984]
mov byte [ebp + 0xc], dl
mov ecx, dword [esp + 0x20]
cmp dword [ecx + 0x114], ebx
jne 0x4437ee
cmp dword [esp + 0x1c], ebx
jne 0x4437d7
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x443b27
mov eax, dword [ecx + 4]
cmp eax, ebx
je 0x443910
cmp dword [0x4f3794], ebx
je 0x443808
mov dword [esp + 0x264], ebx
mov edx, dword [esp + 0x264]
mov dword [ecx + 0x110], edx
cmp eax, ebx
je 0x443910
cmp edx, ebx
je 0x443885
lea eax, [esp + 0x144]
call fcn.00451550
test eax, eax
je 0x4437cb
mov ecx, 0x4a3fbe
lea eax, [esp + 0x144]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x443860
cmp dl, bl
je 0x44385c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x443860
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x443840
xor eax, eax
jmp 0x443865
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x443910
push 0x30
push 0x4f2360
push 0x4f2c68
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x443b09
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
push 0x20019
push ebx
push ebx
push ebx
push 0x4a85fc
push reloc.WSOCK32.dll_bind
mov edi, 1
call esi
test eax, eax
jne 0x4438d6
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x30]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.Default
push edx
call esi
test eax, eax
je 0x4438d8
xor edi, edi
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x4438e9
push eax
call esi
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x4438f4
push eax
call esi
cmp edi, ebx
jne 0x443910
push 0x30
push 0x4f2360
push 0x4f2ae8
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4437cb
mov ebp, dword [esp + 0x20]
cmp dword [ebp + 0x12c], ebx
jne 0x443b09
cmp dword [ebp + 4], ebx
je 0x443954
mov esi, dword [esp + 0x264]
mov ecx, 9
mov eax, 0x4bc990
cmp esi, ebx
je 0x443941
push str.._vncproperties.cpp_:_show_per_user_Properties_n
jmp 0x443946
push str.._vncproperties.cpp_:_show_default_system_Properties_n
call fcn.00401110
add esp, 4
mov dword [ebp + 0x110], esi
mov edx, dword [0x4f21d8]
push ebp
push 0x443b60
push ebx
push 0x92
push edx
mov dword [ebp + 0x128], ebx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov edi, eax
cmp dword [ebp + 0x128], ebx
jne 0x443982
mov edi, 2
push edi
push str.._vncproperties.cpp_:_dialog_result___d_n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
add esp, 8
cmp edi, 0xffffffff
je 0x443a99
mov ecx, dword [ebp + 0x10c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x120]
lea edx, [esp + 0x34]
push edx
call eax
push str.c:dataultravncultravnc_project_rootultravncwinvncwinvnc_vncPasswd.h_:_PASSWD_:_ToText_called_n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
add esp, 4
push 9
call fcn.0047da45
add esp, 4
push 1
mov ecx, 0x4bbf04
mov esi, eax
call fcn.00401e20
add esp, 4
lea eax, [esp + 0x34]
call fcn.004023e0
mov byte [esi + 8], bl
mov dword [esp + 0x20], esi
mov eax, esi
mov dword [esp + 0x258], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x443a06
sub eax, edx
jne 0x443ae0
mov ecx, dword [ebp + 0x10c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x188]
call eax
test eax, eax
je 0x443ae0
mov eax, esi
mov dword [esp + 0x258], 0xffffffff
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x443a40
sub eax, edx
push eax
push ebx
push esi
call fcn.004858b0
add esp, 0xc
push esi
call fcn.0047d643
add esp, 4
push str.._vncproperties.cpp_:_warning___empty_password_n
xor ecx, ecx
mov eax, 0x4bc990
call fcn.00401110
add esp, 4
cmp edi, 2
je 0x443ac0
push 0x30
push 0x4f2260
push 0x4f2730
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
push 4
call fcn.0047bbe0
add esp, 8
jmp 0x443954
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp dword [esp + 0x1c], ebx
jne 0x443aac
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
jmp 0x443b27
push str.._vncproperties.cpp_:_no_password___QUITTING_n
xor ecx, ecx
mov eax, 0x4bc990
call fcn.00401110
add esp, 4
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x4437cb
lea edi, [esp + 0x20]
mov dword [esp + 0x258], 0xffffffff
call fcn.004146d0
mov ecx, ebp
cmp dword [ebp + 4], ebx
je 0x443b04
push 1
call fcn.00445f70
jmp 0x443b09
call fcn.00447d40
cmp dword [esp + 0x1c], ebx
jne 0x443b15
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.0047c3ff
add esp, 0x248
ret 8