Function at 0x47a210
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
mov eax, dword [0x55800c]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x18]
call fcn.00484080
test eax, eax
je 0x47a9d4
mov ecx, 0x518188
lea eax, [esp + 0x18]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x47a270
test dl, dl
je 0x47a26c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x47a270
add eax, 2
add ecx, 2
test dl, dl
jne 0x47a250
xor eax, eax
jmp 0x47a275
sbb eax, eax
or eax, 1
test eax, eax
jne 0x47a298
cmp dword [0x5674b8], eax
jne 0x47a298
push 0x101
lea eax, [esp + 0x1c]
push str.Default
push eax
call fcn.004daa40
add esp, 0xc
mov ecx, 0x518188
lea eax, [esp + 0x18]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x47a2c1
test dl, dl
je 0x47a2bd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x47a2c1
add eax, 2
add ecx, 2
test dl, dl
jne 0x47a2a1
xor eax, eax
jmp 0x47a2c6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x47a2f5
push str.d:_saasultravncwinvncwinvnc_vncproperties.cpp_:__DBG___Force_USER_SYSTEM_2_n
push 9
push 0x558c50
call fcn.0041c840
add esp, 0xc
lea eax, [esp + 0x18]
push str.SYSTEM
push 0x101
push eax
call fcn.004d0170
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ebx, [edi + 8]
push ebx
push 0
push str.DebugMode
push str.admin
call esi
push eax
call fcn.00471030
push ebx
push 0x200
lea eax, [esp + 0x230]
push eax
push 0x518188
push str.path
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x228]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47a340
sub ecx, edx
jne 0x47a385
push 0x104
lea eax, [esp + 0x124]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x47a37c
lea eax, [esp + 0x120]
push 0x5c
push eax
call fcn.004cd350
add esp, 8
test eax, eax
je 0x47a39f
mov byte [eax], 0
lea eax, [esp + 0x120]
jmp 0x47a38c
lea eax, [esp + 0x228]
push eax
push 0x104
push 0x558e6a
call fcn.004d0170
add esp, 0xc
push ebx
push 0
push str.DebugLevel
push str.admin
call esi
push ebx
push 0
push str.Avilog
push str.admin
mov dword [0x558c60], eax
call esi
push ebx
push 1
test eax, eax
push 0x53f760
push str.admin
setne byte [0x558e69]
call esi
mov edx, dword [edi + 0x10c]
mov ecx, dword [edx]
mov ebx, dword [ecx + 0x174]
cmp ecx, vtable.vncServer.0
jne 0x47a9fd
cmp eax, dword [edx + 0xec]
je 0x47a402
mov dword [edx + 0xec], eax
lea ebx, [edi + 8]
push ebx
push 0
push str.rdpmode
push str.admin
call esi
mov edx, dword [edi + 0x10c]
mov ecx, dword [edx]
mov ebx, dword [ecx + 0x17c]
cmp ecx, vtable.vncServer.0
jne 0x47aa07
cmp eax, dword [edx + 0xf0]
je 0x47a43c
mov dword [edx + 0xf0], eax
lea ebx, [edi + 8]
push ebx
push 0
push 0x53f778
push str.admin
call esi
mov ecx, dword [edi + 0x10c]
push eax
mov edx, dword [ecx]
call dword [edx + 0x16c]
push ebx
push 0
push str.Secure
push str.admin
mov dword [edi + 0x1bc], 0
call esi
mov ecx, dword [edi + 0x10c]
mov dword [edi + 0x1bc], eax
mov edx, dword [ecx]
cmp edx, vtable.vncServer.0
jne 0x47aa11
mov dword [ecx + 0x37c], eax
push ebx
push 0
push str.Secure
push str.admin
mov dword [edi + 0x1bc], 0
call esi
mov ecx, dword [edi + 0x10c]
mov dword [edi + 0x1bc], eax
mov edx, dword [ecx]
cmp edx, vtable.vncServer.0
jne 0x47aa1d
mov dword [ecx + 0x37c], eax
push ebx
push 0
push str.MSLogonRequired
push str.admin
mov dword [edi + 0x1b8], 0
call esi
mov ecx, dword [edi + 0x10c]
mov dword [edi + 0x1b8], eax
mov edx, dword [ecx]
cmp edx, vtable.vncServer.0
jne 0x47aa29
mov dword [ecx + 0x380], eax
push ebx
push 0
push str.NewMSLogon
push str.admin
mov dword [edi + 0x1c0], 0
call esi
mov ecx, dword [edi + 0x10c]
mov dword [edi + 0x1c0], eax
mov edx, dword [ecx]
cmp edx, vtable.vncServer.0
jne 0x47aa35
mov dword [ecx + 0x384], eax
push ebx
push 0
push str.UseDSMPlugin
push str.admin
mov dword [edi + 0x1c4], 0
call esi
push ebx
push 0x80
mov dword [edi + 0x1c4], eax
lea eax, [edi + 0x1c8]
push eax
push 0x518188
push str.DSMPlugin
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
push 0x200
lea eax, [edi + 0x248]
push eax
push 0x518188
push str.DSMPluginConfig
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [edi + 0x10c]
mov eax, dword [ecx]
cmp eax, vtable.vncServer.0
jne 0x47aa41
mov eax, dword [ecx + 0xa0]
test eax, eax
je 0x47a5e0
mov ecx, dword [edi + 0x10c]
mov eax, dword [ecx]
cmp eax, vtable.vncServer.0
jne 0x47aa4c
mov dword [ecx + 0x9c], 1
jmp 0x47a609
push ebx
push 1
push str.AllowLoopback
push str.admin
call esi
mov ecx, dword [edi + 0x10c]
mov edx, dword [ecx]
cmp edx, vtable.vncServer.0
jne 0x47aa59
mov dword [ecx + 0x9c], eax
push ebx
push 1
push str.AuthRequired
push str.admin
call esi
mov ecx, dword [edi + 0x10c]
mov edx, dword [ecx]
cmp edx, vtable.vncServer.0
jne 0x47aa65
mov dword [ecx + 0x98], eax
push ebx
push 0
push str.ConnectPriority
push str.admin
call esi
mov ecx, dword [edi + 0x10c]
mov edx, dword [ecx]
cmp edx, vtable.vncServer.0
jne 0x47aa71
mov dword [ecx + 0xc0], eax
mov ecx, dword [edi + 0x10c]
mov eax, dword [ecx]
cmp eax, vtable.vncServer.0
jne 0x47aa7d
mov eax, dword [ecx + 0xa0]
test eax, eax
jne 0x47a6cb
push 0x96
call fcn.004cbf7b
add esp, 4
mov esi, eax
push ebx
push 0x96
push esi
push 0x518188
push str.AuthHosts
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [edi + 0x10c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1a0]
mov ecx, eax
test esi, esi
je 0x47a6c5
push esi
call edx
push esi
call fcn.004cbf38
add esp, 4
jmp 0x47a6db
push 0
call edx
jmp 0x47a6db
mov ecx, dword [edi + 0x10c]
push 0
mov eax, dword [ecx]
call dword [eax + 0x1a0]
push str.d:_saasultravncwinvncwinvnc_vncproperties.cpp_:__DBG___Load_User_Preferences_n
push 9
push 0x558c50
call fcn.0041c840
add esp, 0xc
push str.d:_saasultravncwinvncwinvnc_vncproperties.cpp_:_clearing_user_settings_n
push 9
push 0x558c50
call fcn.0041c840
mov esi, dword [edi + 0x1bc]
add esp, 0xc
mov dword [edi + 0x140], 1
mov dword [edi + 0x13c], 1
mov dword [edi + 0x144], 0x170c
push str.d:_saasultravncwinvncwinvnc_vncpasswd.h_:_PASSWD_:_FromClear_called_n
push 9
push 0x558c50
mov dword [edi + 0x138], 1
call fcn.0041c840
xor eax, eax
lea edx, [esp + 0x1c]
add esp, 0xc
mov ecx, 0x518188
test esi, esi
setne al
push eax
call fcn.00432580
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [edi + 0x14c], eax
mov ecx, edi
mov eax, dword [esp + 0x14]
mov dword [edi + 0x150], eax
mov dword [edi + 0x15c], 2
mov dword [edi + 0x168], 0xa
mov dword [edi + 0x16c], 0
mov dword [edi + 0x164], 0
mov dword [edi + 0x170], 0
mov dword [edi + 0x184], 1
mov dword [edi + 0x18c], 0
mov dword [edi + 0x190], 0
mov dword [edi + 0x194], 0
mov dword [edi + 0x198], 0
mov dword [edi + 0x19c], 0
mov dword [edi + 0x188], 0xffffffff
mov dword [edi + 0x174], 0
mov dword [edi + 0x178], 0
mov dword [edi + 0x17c], 0
mov dword [edi + 0x180], 0
mov dword [edi + 0x120], 1
mov dword [edi + 0x11c], 1
mov dword [edi + 0x114], 1
mov dword [edi + 0x118], 0
mov dword [edi + 0x1a0], 0
mov dword [edi + 0x1c4], 0
mov byte [edi + 0x1c8], 0
mov byte [edi + 0x248], 0
mov dword [edi + 0x1a4], 1
mov dword [edi + 0x1a8], 1
mov dword [edi + 0x1ac], 1
mov dword [edi + 0x1b0], 0
mov dword [edi + 0x160], 0
mov dword [edi + 0x1b4], 1
call fcn.0047aa90
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebx
push dword [edi + 0x11c]
push str.AllowShutdown
push str.admin
call esi
push ebx
push dword [edi + 0x114]
mov dword [edi + 0x11c], eax
push str.AllowProperties
push str.admin
call esi
push ebx
push dword [edi + 0x118]
mov dword [edi + 0x114], eax
push str.AllowInjection
push str.admin
call esi
push ebx
push dword [edi + 0x120]
mov dword [edi + 0x118], eax
push str.AllowEditClients
push str.admin
call esi
push ebx
push dword [edi + 0x124]
mov dword [edi + 0x120], eax
push str.FileTransferTimeout
push str.admin
call esi
mov dword [edi + 0x124], eax
cmp eax, 0x258
jle 0x47a933
mov dword [edi + 0x124], 0x258
push ebx
push dword [edi + 0x128]
push str.KeepAliveInterval
push str.admin
call esi
push ebx
push dword [edi + 0x12c]
mov dword [edi + 0x128], eax
push str.IdleInputTimeout
push str.admin
call esi
mov ecx, dword [edi + 0x124]
mov dword [edi + 0x12c], eax
lea eax, [ecx - 1]
cmp dword [edi + 0x128], eax
jl 0x47a97c
mov dword [edi + 0x128], eax
mov eax, dword [edi + 0x10c]
mov dword [eax + 0x838], ecx
mov ecx, edi
mov esi, dword [edi + 0x10c]
mov edx, dword [edi + 0x128]
mov eax, dword [esi + 0x838]
dec eax
cmp edx, eax
cmovge edx, eax
mov dword [esi + 0x83c], edx
mov edx, dword [edi + 0x10c]
mov eax, dword [edi + 0x12c]
mov dword [edx + 0x840], eax
call fcn.00479b00
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret
push str.d:_saasultravncwinvncwinvnc_vncproperties.cpp_:__DBG___NO_current_user_n
push 9
push 0x558c50
call fcn.0041c840
mov ecx, dword [esp + 0x438]
add esp, 0xc
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret
push eax
mov ecx, edx
call ebx
jmp 0x47a402
push eax
mov ecx, edx
call ebx
jmp 0x47a43c
push eax
call dword [edx + 0x23c]
jmp 0x47a496
push eax
call dword [edx + 0x23c]
jmp 0x47a4cf
push eax
call dword [edx + 0x248]
jmp 0x47a508
push eax
call dword [edx + 0x250]
jmp 0x47a541
call dword [eax + 0x170]
jmp 0x47a5bd
push 1
call dword [eax + 0x1e4]
jmp 0x47a609
push eax
call dword [edx + 0x1e4]
jmp 0x47a609
push eax
call dword [edx + 0x198]
jmp 0x47a632
push eax
call dword [edx + 0x15c]
jmp 0x47a65b
call dword [eax + 0x170]
jmp 0x47a674