Function at 0x48c180
Capabilities:
Check mutex on windows
Create thread
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc94
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea ecx, [ebp - 0x40c]
call fcn.00425a60
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea eax, [ebp - 0x40c]
push eax
push 0
push str.DebugMode
push str.admin
call esi
push eax
call fcn.00471420
lea eax, [ebp - 0x40c]
push eax
push 0x200
lea eax, [ebp - 0x308]
push eax
push 0x584fd8
push str.path
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x308]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48c1f2
sub ecx, edx
jne 0x48c234
push 0x104
lea eax, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x48c22c
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0053eb80
add esp, 8
test eax, eax
je 0x48c24d
mov byte [eax], 0
lea eax, [ebp - 0x108]
jmp 0x48c23a
lea eax, [ebp - 0x308]
push eax
push 0x104
push 0x5d7f62
call fcn.005417f5
add esp, 0xc
lea eax, [ebp - 0x40c]
push eax
push 0
push str.DebugLevel
push str.admin
call esi
mov dword [0x5d7d58], eax
lea eax, [ebp - 0x40c]
push eax
push 0
push str.Avilog
push str.admin
call esi
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvncwinvnc.cpp_:_WinVNCAPPMain_____Application_started_n
test eax, eax
push 0xffffffffffffffff
push 0x5d7d48
setne byte [0x5d7f61]
call fcn.0041c960
push 4
call fcn.0053d643
mov edi, eax
add esp, 0x10
mov dword [ebp - 0xc94], edi
cmp dword [0x5e6878], 0
mov dword [edi], 0
jne 0x48c345
push str.WinVNC_Win32_Instance_Mutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi], eax
test eax, eax
je 0x48c2dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x48c345
push 0x5e7258
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvncwinvnc.cpp_:__s____exiting_n
push 9
push 0x5d7d48
call fcn.0041c960
add esp, 0x10
cmp dword [0x5e7498], 0
jne 0x48c313
push 0
push 0x5bf9fc
mov edx, 0x5e7258
call fcn.004254b0
add esp, 8
mov eax, dword [edi]
test eax, eax
je 0x48c328
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 4
push edi
call fcn.0053d673
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0xc90]
call fcn.00481670
mov eax, dword [ebp - 0xb48]
test eax, eax
je 0x48c36d
push eax
call fcn.005417da
add esp, 4
mov dword [ebp - 0xb48], 0
push 0x5bf9fc
call fcn.0054cea1
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvncwinvnc.cpp_:_server_created_ok_n
push 0
push 0x5d7d48
mov dword [ebp - 0xb48], eax
call fcn.0041c960
mov eax, dword [0x5e7498]
add esp, 0x10
mov dword [ebp - 0x440], eax
mov eax, dword [0x5e767c]
mov dword [ebp - 0x43c], eax
push str.GlobalSessionEventUltra
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [0x609464], eax
test eax, eax
je 0x48c3c9
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp byte [0x5d9e87], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x48c42e
nop dword [eax]
lea eax, [ebp - 0xc94]
push eax
push 0
lea eax, [ebp - 0xc90]
push eax
push 0x48bc10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x48c411
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvncwinvnc.cpp_:__Closing_Imp_Thread_n
push 0
push 0x5d7d48
call fcn.0041c960
add esp, 0xc
cmp byte [0x5d9e87], 0
je 0x48c3e0
mov eax, dword [edi]
mov byte [0x5d9e87], 1
test eax, eax
je 0x48c446
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [edi]
call ebx
push 4
push edi
call fcn.0053d673
mov eax, dword [0x609464]
add esp, 8
test eax, eax
je 0x48c45d
push eax
call ebx
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvncwinvnc.cpp_:__SHUTING_DOWN_SERVER__n
push 0
push 0x5d7d48
call fcn.0041c960
mov eax, dword [0x5e6630]
add esp, 0xc
pop ebx
test eax, eax
je 0x48c48e
push eax
call fcn.0053d63e
add esp, 4
mov dword [0x5e6630], 0
lea ecx, [ebp - 0xc90]
call fcn.00481b60
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0053d630
mov esp, ebp
pop ebp
ret