Function at 0x140003240
Capabilities:
Create thread
Read .ini file

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1b8]
sub rsp, 0x2a0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rsi, rcx
cmp byte [rcx + 0x1bc], 0
je 0x140003289
call qword [sym.imp.x64cw42.dll_void___cdecl_StopWebServer_void_]
xor edi, edi
cmp qword [rsi + 0x128], 1
jne 0x14000329c
mov qword [rsi + 0x128], rdi
call qword [sym.imp.x64cw42.dll_int___cdecl_CWMFCExitInstance_void_]
mov ecx, 1
call qword [sym.imp.x64cw42.dll_CWCsRelease]
mov rcx, qword [rsi + 0x1b0]
call qword [sym.imp.x64cw42.dll_void___cdecl_CWMFCHTMLHelpUninitialize_unsigned_long_long_unsigned___int64__]
xor eax, eax
mov word [rsp + 0x30], ax
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x80]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [str.cv.ver]
mov dword [rbp + 0x80], eax
movzx eax, word [0x140007a64]
mov word [rbp + 0x84], ax
movzx eax, byte [0x140007a66]
mov byte [rbp + 0x86], al
mov r8d, 0x4040
lea rdx, [rbp - 0x10]
lea rcx, str.cv.ver
call qword [sym.imp.KERNEL32.dll_OpenFile]
test eax, eax
js 0x1400033b0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
lea rax, [rbp - 8]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], dil
jne 0x140003330
inc ebx
lea r8, [rsp + 0x68]
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.140001330
movsxd r8, ebx
test ebx, ebx
je 0x14000337f
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jne 0x140003376
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
call qword [sym.imp.mfc140.dll_Ordinal_2342]
int3
lea rdx, [rbp - 8]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x60]
mov rdx, rcx
lea r8, [rbp + 0x80]
sub r8, rcx
movzx eax, byte [rdx]
mov byte [r8 + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140003391
lea rax, [rsp + 0x68]
cmp rcx, rax
je 0x1400033b0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rax, [rbp + 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
lea r9, [rsp + 0x30]
lea r8, [0x140007efc]
lea rdx, str.ThreadCOMHandling
lea rcx, str.version
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [rsp + 0x30], 0x31
sete r14b
xor eax, eax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140.dll_Ordinal_316]
nop
test r14b, r14b
je 0x14000349c
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r8, qword [rsp + 0x40]
lea rdx, str.CW_WORKING_PAPERS___d
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140.dll_Ordinal_4648]
mov ecx, 0x20
call qword [sym.imp.mfc140.dll_Ordinal_1485]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14000349c
mov r9, qword [rsp + 0x38]
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx], rax
test rax, rax
je 0x140003499
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 8], rax
lea rax, [rbx + 0x18]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x140001430]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x10], rax
mov rdi, rbx
xor ecx, ecx
call qword [sym.imp.mfc140.dll_Ordinal_2282]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [rsi + 0x1a8]
call qword [rsi + 0x198]
mov rcx, qword [rsi + 0x1a0]
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
test r14b, r14b
je 0x140003506
test rdi, rdi
je 0x140003506
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400034ea
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400034ea
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400034f9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x20
mov rcx, rdi
call fcn.140004cf0
mov rcx, rsi
call qword [sym.imp.mfc140.dll_Ordinal_4436]
mov ebx, eax
mov ecx, dword [rsi + 0x1b8]
test ecx, ecx
cmovne ebx, ecx
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
mov eax, ebx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400048d0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret