Function at 0x40d4f0
Capabilities:
Create thread
Print debug messages
Read .ini file

Disassembly:
sub esp, 0x53c
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x538], eax
mov eax, dword [esp + 0x540]
push ebp
push esi
push edi
lea ecx, [esp + 0x13]
mov dword [esp + 0x14], eax
call fcn.00401000
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor ecx, ecx
cmp ecx, str.active_svnmgr_log_index
je 0x40d546
push 0x43b4a8
push ecx
push str.active_svnmgr_log_index
push 0x43b5ac
call ebp
cmp eax, 2
jge 0x40d546
test eax, eax
jge 0x40d548
xor eax, eax
mov edi, eax
call fcn.0040a310
push str.InitInstance:_Set_current_log_file_index.
mov ecx, 0x43b48c
call fcn.0040a090
mov edx, dword [0x43b48c]
add esp, 4
push edx
mov ecx, str.active_svnmgr_log_index
call fcn.00406770
xor eax, eax
cmp eax, str.write_log_enable
je 0x40d594
push 0x43b4a8
push 1
push str.write_log_enable
push 0x43b5ac
call ebp
mov esi, eax
test esi, esi
je 0x40d599
mov esi, 1
push esi
mov ecx, str.write_log_enable
call fcn.00406770
xor ecx, ecx
cmp ecx, str.loglevel
jne 0x40d5b3
or edi, 0xffffffff
jmp 0x40d5c8
push 0x43b4a8
push 1
push str.loglevel
push 0x43b5ac
call ebp
mov edi, eax
push edi
mov ecx, str.loglevel
call fcn.00406770
cmp edi, 3
mov dword [0x43b490], esi
mov dword [0x43b4a4], edi
jbe 0x40d5ee
mov dword [0x43b4a4], 1
push str.InitInstance:_Reading_login_context_from_share_memory...
mov ecx, 0x43b48c
mov dword [0x43b494], 1
call fcn.0040a090
add esp, 4
push str.SVN_LOGINCONTEXT
push 0xff
push 0x43b5f8
call fcn.0041aff9
add esp, 0xc
push 0x43b5f8
push 0xff
push 0x43b6f7
mov dword [0x43b5f4], 0
call fcn.0041aff9
add esp, 0xc
push str.Mutex
push 0xff
push 0x43b6f7
call fcn.0041af88
add esp, 0xc
mov edi, 0x1000
mov esi, 0x43b5e8
call fcn.00401da0
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
je 0x40d6d2
push 1
push str.Write__Stopservicewhenclosebrowser__0x_x__to_share_memory
call fcn.00403400
mov edx, dword [0x43b7f8]
add esp, 8
push 0x1388
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.0040f190
mov esi, eax
mov eax, dword [0x43b7f8]
push eax
call ebp
test esi, esi
jne 0x40d6d2
push str.Read_inter_process_info_failed
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x538]
xor ecx, esp
call fcn.0041aec3
add esp, 0x53c
ret
push str.InitInstance:_Information_has_been_read_successfully.
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
call fcn.0040e050
test eax, eax
mov ecx, 0x43b48c
jne 0x40d719
push str.Boost_privilege_failed_under_vista_
call fcn.0040a090
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x538]
xor ecx, esp
call fcn.0041aec3
add esp, 0x53c
ret
push str.InitInstance:_Privilege_has_been_boosted_successfully.
call fcn.0040a090
add esp, 4
cmp dword [0x43af94], 0
mov ecx, 0x43b48c
je 0x40d75b
push str.Quit_after_Boost_privilege_under_vista_
call fcn.0040a090
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x538]
xor ecx, esp
call fcn.0041aec3
add esp, 0x53c
ret
push str.InitInstance:_Creating_message_certer_window...
call fcn.0040a090
mov ecx, dword [esp + 0x18]
add esp, 4
push 0
push ecx
push 0
push 0
push 0
push closesocket
push 0
push closesocket
push 0xcf0000
push 0x43ad38
push 0x43acd0
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push str.InitInstance:_Message_certer_window_has_been_created_successfully.
mov ecx, 0x43b48c
mov dword [0x43af78], eax
call fcn.0040a090
add esp, 4
cmp dword [0x43af78], 0
jne 0x40d7eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Create_main_window_failed_err_d
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x538]
xor ecx, esp
call fcn.0041aec3
add esp, 0x53c
ret
call fcn.00411340
test eax, eax
je 0x40d6b8
push str.InitInstance:_Creating_message_certer_socket...
mov ecx, 0x43b48c
mov dword [0x43b324], 1
call fcn.0040a090
add esp, 4
call fcn.004113b0
movzx esi, ax
test si, si
jne 0x40d854
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SVNCMgr_Create_Socket_failed_err_d
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x538]
xor ecx, esp
call fcn.0041aec3
add esp, 0x53c
ret
push str.InitInstance:_Message_certer_socket_has_been_created_successfully.
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
push 0x43b09c
push 0
push 0
push 0x4119c0
push 0
push 0
mov dword [0x43b328], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x43b320], eax
jne 0x40d8c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SVNCMgr_StartSocketThread_failed__error_d
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x538]
xor ecx, esp
call fcn.0041aec3
add esp, 0x53c
ret
push str.InitInstance:_Message_proc_thread_has_been_created_successfully.
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
push str.TaskbarCreated
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x43af6c], eax
call fcn.0040f160
call fcn.0040f190
push 0x287
movzx esi, si
push str..SVNCMgr.cpp
push str.Write:_file:_s__line:_d
mov dword [0x43accc], esi
call fcn.00403400
add esp, 0xc
call fcn.0040f260
mov edx, dword [0x43b7f8]
push edx
mov edi, eax
call ebp
test edi, edi
mov ecx, 0x43b48c
jne 0x40d950
push str.SVNCMgr_WriteLoginContext_failed
call fcn.0040a090
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x538]
xor ecx, esp
call fcn.0041aec3
add esp, 0x53c
ret
push esi
push str.InitInstance:_Client_manager_listen_port_is___d___has_been_written_to_the_share_memroy.
call fcn.0040a090
call fcn.00412470
push str.InitInstance:_UI_language_has_been_set.
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 0xc
push 0x100
mov eax, str.GlobalNAME_NEM_NET_INFO_MEMORY
mov ecx, 0x43b800
call fcn.00401e80
push 0x40
mov eax, str.GlobalNAME_NEM_COUNT_UPSTREAM_MEMORY
mov ecx, 0x43ba18
call fcn.00401e80
push 0x40
mov eax, str.GlobalNAME_NEM_COUNT_DOWNSTREAM_MEMORY
mov ecx, 0x43bc30
call fcn.00401e80
push 0x1000
mov eax, str.SVN_PROXY_INFO
mov ecx, 0x43be48
call fcn.00401e80
push str.InitInstance:_Share_memorys_has_been_inited.
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
push 0x520
lea eax, [esp + 0x1d]
push 0
push eax
mov byte [esp + 0x24], 0
call fcn.00420f50
add esp, 0xc
push 4
lea edi, [esp + 0x1c]
mov esi, str.ProxyUser
call fcn.004068c0
test eax, eax
jg 0x40da06
push str.InitInstance:There_is_no_configured_proxy_account_in_configuration_file.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x18]
call fcn.0040f320
push str.InitInstance:_Proxy_info_has_been_set_to_the_share_memory.
mov ecx, 0x43b48c
call fcn.0040a090
mov edx, dword [0x43af70]
mov ecx, dword [0x43af78]
add esp, 4
push 0x8f
push edx
mov dword [0x4393b0], ecx
mov dword [0x4393bc], 0x7fd
call dword [sym.imp.USER32.dll_LoadIconA]
call fcn.0040b3e0
push 0x43a8f8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push str.InitInstance:_Critical_settion_has_been_inited.
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
cmp dword [0x43af7c], 1
jne 0x40da79
call fcn.0040dfa0
push 0
push 0x101
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push str.InitInstance:_Completed.
mov ecx, 0x43b48c
call fcn.0040a090
mov ecx, dword [esp + 0x548]
add esp, 4
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.0041aec3
add esp, 0x53c
ret