Function at 0x466b70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x31c
mov eax, dword [0x4f5568]
xor eax, esp
mov dword [esp + 0x318], eax
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x14]
push edi
call fcn.0046fff0
test eax, eax
jne 0x466bc5
push str.vncproperties.cpp_:__DBG___NO_current_user_n
push 9
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x318]
xor ecx, esp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
mov ecx, 0x4d9f42
lea eax, [esp + 0x18]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x466bf0
test dl, dl
je 0x466bec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x466bf0
add eax, 2
add ecx, 2
test dl, dl
jne 0x466bd0
xor eax, eax
jmp 0x466bf5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x466c2a
push str.vncproperties.cpp_:__DBG___Force_USER_SYSTEM_2_n
push 9
push 0x4f6c50
call fcn.00414f90
mov eax, dword [str.SYSTEM]
add esp, 0xc
mov dword [esp + 0x18], eax
mov ax, word [0x4e0918]
mov word [esp + 0x1c], ax
mov al, byte [0x4e091a]
mov byte [esp + 0x1e], al
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea edi, [esi + 8]
push edi
push 0
push str.DebugMode
push str.admin
call ebx
push eax
call fcn.0045b8b0
push edi
push 0x200
lea eax, [esp + 0x128]
push eax
push 0x4d9f42
push str.path
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x120]
push eax
call fcn.0045bdb0
push edi
push 0
push str.DebugLevel
push str.admin
call ebx
push edi
push 0
push str.Avilog
push str.admin
mov dword [0x4f6c60], eax
call ebx
push edi
push 0
test eax, eax
push 0x4e05b8
push str.admin
setne byte [0x4f6e69]
call ebx
mov ecx, dword [esi + 0x10c]
push eax
mov edx, dword [ecx]
call dword [edx + 0x16c]
push edi
push 0
push 0x4e05c8
push str.admin
call ebx
mov ecx, dword [esi + 0x10c]
push eax
mov edx, dword [ecx]
call dword [edx + 0x164]
push edi
push 0
push str.MSLogonRequired
push str.admin
mov dword [esi + 0x1a8], 0
call ebx
mov ecx, dword [esi + 0x10c]
mov dword [esi + 0x1a8], eax
push eax
mov edx, dword [ecx]
call dword [edx + 0x224]
push edi
push 0
push str.NewMSLogon
push str.admin
mov dword [esi + 0x1ac], 0
call ebx
mov ecx, dword [esi + 0x10c]
mov dword [esi + 0x1ac], eax
push eax
mov edx, dword [ecx]
call dword [edx + 0x22c]
push edi
push 0
push str.UseDSMPlugin
push str.admin
mov dword [esi + 0x1b0], 0
call ebx
mov dword [esi + 0x1b0], eax
lea eax, [esi + 0x1b4]
push edi
push 0x80
push eax
push 0x4d9f42
push str.DSMPlugin
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
push 0x200
lea eax, [esi + 0x234]
push eax
push 0x4d9f42
push str.DSMPluginConfig
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x168]
test eax, eax
je 0x466dc3
mov ecx, dword [esi + 0x10c]
push 1
mov eax, dword [ecx]
call dword [eax + 0x1c8]
jmp 0x466de1
push edi
push 1
push str.AllowLoopback
push str.admin
call ebx
mov ecx, dword [esi + 0x10c]
push eax
mov edx, dword [ecx]
call dword [edx + 0x1c8]
push edi
push 1
push str.AuthRequired
push str.admin
call ebx
mov ecx, dword [esi + 0x10c]
push eax
mov edx, dword [ecx]
call dword [edx + 0x188]
push edi
push 0
push str.ConnectPriority
push str.admin
call ebx
mov ecx, dword [esi + 0x10c]
push eax
mov edx, dword [ecx]
call dword [edx + 0x154]
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x168]
test eax, eax
jne 0x466e81
push 0x96
call fcn.004aca50
add esp, 4
mov dword [esp + 0x10], eax
push edi
push 0x96
push eax
push 0x4d9f42
push str.AuthHosts
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esi + 0x10c]
mov edx, dword [esp + 0x10]
mov eax, dword [ecx]
test edx, edx
je 0x466e89
push edx
call dword [eax + 0x190]
push dword [esp + 0x10]
call fcn.004ad334
add esp, 4
jmp 0x466e91
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
push 0
call dword [eax + 0x190]
push str.vncproperties.cpp_:__DBG___Load_User_Preferences_n
push 9
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
push str.vncproperties.cpp_:_clearing_user_settings_n
push 9
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
mov dword [esi + 0x13c], 1
mov dword [esi + 0x138], 1
mov dword [esi + 0x140], 0x170c
mov dword [esi + 0x134], 1
push str.l:ultravnc_install_vs2013ultravnc_test2ultravnc_project_rootultravncwinvncwinvnc_vncpasswd.h_:_PASSWD_:_FromClear_called_n
push 9
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
lea edx, [esp + 0x10]
mov ecx, 0x4d9f42
call fcn.0042a240
mov eax, dword [esp + 0x10]
mov ecx, esi
mov dword [esi + 0x148], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x14c], eax
mov dword [esi + 0x158], 2
mov dword [esi + 0x164], 0xa
mov dword [esi + 0x160], 0
mov dword [esi + 0x168], 0
mov dword [esi + 0x17c], 1
mov dword [esi + 0x184], 0
mov dword [esi + 0x188], 0
mov dword [esi + 0x18c], 0
mov dword [esi + 0x180], 0xffffffff
mov dword [esi + 0x16c], 0
mov dword [esi + 0x170], 0
mov dword [esi + 0x174], 0
mov dword [esi + 0x178], 0
mov dword [esi + 0x11c], 1
mov dword [esi + 0x118], 1
mov dword [esi + 0x114], 1
mov dword [esi + 0x190], 0
mov dword [esi + 0x1b0], 0
mov byte [esi + 0x1b4], 0
mov byte [esi + 0x234], 0
mov dword [esi + 0x194], 1
mov dword [esi + 0x198], 1
mov dword [esi + 0x19c], 1
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x15c], 0
mov dword [esi + 0x1a4], 1
call fcn.00467130
push edi
push dword [esi + 0x118]
push str.AllowShutdown
push str.admin
call ebx
push edi
push dword [esi + 0x114]
mov dword [esi + 0x118], eax
push str.AllowProperties
push str.admin
call ebx
push edi
push dword [esi + 0x11c]
mov dword [esi + 0x114], eax
push str.AllowEditClients
push str.admin
call ebx
push edi
push dword [esi + 0x120]
mov dword [esi + 0x11c], eax
push str.FileTransferTimeout
push str.admin
call ebx
mov ecx, 0x3c
cmp eax, ecx
cmovg eax, ecx
mov dword [esi + 0x120], eax
push edi
push dword [esi + 0x124]
push str.KeepAliveInterval
push str.admin
call ebx
push edi
push dword [esi + 0x128]
mov dword [esi + 0x124], eax
push str.IdleInputTimeout
push str.admin
call ebx
mov ecx, dword [esi + 0x120]
mov dword [esi + 0x128], eax
lea eax, [ecx - 1]
cmp dword [esi + 0x124], eax
jl 0x4670d3
mov dword [esi + 0x124], eax
mov eax, dword [esi + 0x10c]
mov dword [eax + 0x840], ecx
mov edx, dword [esi + 0x10c]
mov ecx, dword [esi + 0x124]
mov eax, dword [edx + 0x840]
dec eax
cmp ecx, eax
cmovge ecx, eax
mov dword [edx + 0x844], ecx
mov ecx, esi
mov edx, dword [esi + 0x10c]
mov eax, dword [esi + 0x128]
mov dword [edx + 0x848], eax
call fcn.00465e70
mov ecx, dword [esp + 0x324]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004aca59
mov esp, ebp
pop ebp
ret