Function at 0x1400012f0
Capabilities:
Read .ini file

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x2f0
mov qword [rsp + 0xc0], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x140009020]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov rsi, rcx
mov dword [rsp + 0x60], 8
mov dword [rsp + 0x64], 0xff
lea rcx, [rsp + 0x60]
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov rcx, rsi
call sub.mfc90.dll_Ordinal_3921
lea rcx, [rsp + 0x70]
call sub.mfc90.dll_Ordinal_340
lea rbp, vtable.CEncoderServerCommandLineInfo.0
mov qword [rsp + 0x70], rbp
xor r12d, r12d
mov dword [rsp + 0xb0], r12d
mov dword [rsp + 0xb4], r12d
lea rdx, [rsp + 0x70]
mov rcx, rsi
call sub.mfc90.dll_Ordinal_5239
lea rdx, str.EncoderServerConnectWnd
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
cmp dword [rsp + 0xb4], r12d
je 0x1400013c9
test rax, rax
je 0x1400013b3
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 0x12]
mov rcx, rax
call qword [sym.imp.USER32.dll_PostMessageA]
nop
mov qword [rsp + 0x70], rbp
lea rcx, [rsp + 0x70]
call sub.mfc90.dll_Ordinal_604
xor eax, eax
jmp 0x140001680
cmp dword [rsp + 0xb0], 0
jne 0x1400013e9
mov qword [rsp + 0x70], rbp
lea rcx, [rsp + 0x70]
call sub.mfc90.dll_Ordinal_604
xor eax, eax
jmp 0x140001680
lea rax, [0x140005d40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [0x140009948], rax
test rax, rax
je 0x14000143f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000143f
mov qword [rsp + 0x70], rbp
lea rcx, [rsp + 0x70]
call sub.mfc90.dll_Ordinal_604
xor eax, eax
jmp 0x140001680
mov r8d, Ordinal_265
lea rdx, [0x140009950]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [0x140009950]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea r8, str.EncoderServer.cfg
mov edx, 0x104
lea rcx, [0x140009950]
call qword [sym.imp.MSVCR90.dll_strcat_s]
lea r9, [0x140009950]
xor r8d, r8d
lea rdx, str.EnableLog
lea rcx, str.Debug
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, r12d
test eax, eax
setne cl
mov dword [0x140009334], ecx
test ecx, ecx
je 0x1400015ee
mov r8d, Ordinal_265
lea rdx, [0x140009a60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, str..log
lea rcx, [0x140009a60]
call qword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
lea r8, [0x140009a60]
mov edx, 0x104
lea rcx, [0x140009218]
call qword [sym.imp.MSVCR90.dll_strcpy_s]
mov dword [0x14000931c], 3
lea r9, [0x140009950]
xor r8d, r8d
lea rdx, str.LogBufferSize
lea rcx, str.Debug
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, eax
mov rcx, qword [0x140009328]
test rcx, rcx
je 0x140001539
call sub.mfc90.dll_Ordinal_266
mov qword [0x140009328], r12
mov dword [0x140009330], r12d
test edi, edi
je 0x14000155f
mov rcx, rdi
call sub.mfc90.dll_Ordinal_265
mov qword [0x140009328], rax
mov dword [0x140009330], edi
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.MSVCR90.dll_memset
lea rdx, str.ConnectThread
lea rcx, vtable.CLog.0
call fcn.140002d10
mov r8d, Ordinal_265
lea rdx, [rsp + 0x1d0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x68]
call fcn.1400016f0
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
lea r9, str.Init
lea r8, str.__16s_:_EncoderServer_v_s_started
mov edx, 0x100
lea rcx, [rsp + 0xd0]
call qword [sym.imp.MSVCR90.dll_sprintf_s]
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc90.dll_Ordinal_589]
cmp dword [0x140009334], 0
je 0x1400015ee
xor r8d, r8d
lea rdx, [rsp + 0xd0]
lea rcx, vtable.CLog.0
call fcn.1400028c0
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rdx, rax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call sub.mfc90.dll_Ordinal_1188
mov r8, rax
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 0x80000000
lea r9, str.EncoderServerConnectWnd
xor edx, edx
lea rbx, [0x140009d50]
mov rcx, rbx
call sub.mfc90.dll_Ordinal_1699
test eax, eax
jne 0x140001668
mov qword [rsp + 0x70], rbp
lea rcx, [rsp + 0x70]
call sub.mfc90.dll_Ordinal_604
xor eax, eax
jmp 0x140001680
mov qword [rsi + 0x40], rbx
mov qword [rsp + 0x70], rbp
lea rcx, [rsp + 0x70]
call sub.mfc90.dll_Ordinal_604
mov eax, 1
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.1400032b0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret