Function at 0x140005720
Capabilities:
Create thread
Read .ini file
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x8a0]
sub rsp, 0x9a0
mov rax, qword [0x1400cf070]
xor rax, rsp
mov qword [rbp + 0x898], rax
xor edx, edx
mov r8d, 0x378
lea rcx, [rbp + 0x100]
call sub.VCRUNTIME140.dll_memset
call fcn.140001a00
mov rcx, rax
test rax, rax
je 0x140005f90
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rdx, str.C:wz_test_2345_
lea rcx, [rsp + 0x30]
cmp rdx, 0x10000
jae 0x1400057a7
movzx edx, dx
call fcn.140002900
jmp 0x1400057b3
mov r8d, reloc.WS2_32.dll_recv
call fcn.140002a90
nop
mov rbx, qword [rsp + 0x30]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
or eax, ecx
jge 0x1400057d8
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400025c0
mov rbx, qword [rsp + 0x30]
mov r8, rbx
lea rdx, str.test
lea rcx, [rbp + 0x100]
call fcn.14000d8e0
nop
lea rdx, [rbx - 0x18]
mov rdi, 0xffffffffffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000580f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
call fcn.140001a00
mov rcx, rax
test rax, rax
je 0x140005f9b
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rbp + 0xb0], rax
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x490]
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp + 0x20c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x400
lea r9, [rbp + 0x490]
xor r8d, r8d
lea rdx, str.barID
lea rcx, [0x1400c02e4]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea r8, [rbp + 0x490]
lea rdx, [0x1400c07a0]
lea rcx, [rbp + 0xb0]
call fcn.140002730
lea rdx, [0x1400c0271]
mov rbx, qword [rbp + 0xb0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
je 0x1400058de
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
or eax, ecx
jge 0x1400058d0
xor edx, edx
lea rcx, [rbp + 0xb0]
call fcn.1400025c0
mov rbx, qword [rbp + 0xb0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov r14d, eax
jmp 0x140005958
lea r8, str.GlobalFD921876_60EB_4799_A084_872BEDB29151
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov rsi, rax
test rax, rax
je 0x140005ef3
mov qword [rsp + 0x20], 0x400
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rax
test rax, rax
jne 0x140005928
mov rcx, rsi
jmp 0x140005ef5
mov byte [rbp + 0x488], 0
mov rax, qword [rax]
mov qword [rbp + 0x480], rax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea rcx, [rbp + 0x480]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov r14d, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14d, r14d
je 0x140005efb
mov dword [0x1400d2154], r14d
xor r15d, r15d
mov qword [rbp + 0xc0], r15
mov qword [rbp + 0xd0], r15
mov qword [rbp + 0xd8], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0xc0], r15b
call fcn.140001a00
mov rcx, rax
test rax, rax
je 0x140005fa6
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rbp + 0xb8], rax
lea r8, [0x1400cf120]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae r8, qword [0x1400cf120]
mov r9d, r14d
lea rdx, str.http:___s_independ_request_getHomePageConfig_barId_d
lea rcx, [rbp + 0xb8]
call fcn.140002730
mov qword [rbp + 0xd0], r15
lea rax, [rbp + 0xc0]
cmp qword [rbp + 0xd8], 0x10
cmovae rax, qword [rbp + 0xc0]
mov byte [rax], r15b
lea ecx, [r15 + 3]
call fcn.140032ef0
nop
mov rbx, qword [rbp + 0xb8]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
or eax, ecx
jge 0x140005a30
xor edx, edx
lea rcx, [rbp + 0xb8]
call fcn.1400025c0
mov rbx, qword [rbp + 0xb8]
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov r8, rdi
inc r8
cmp byte [rbx + r8], 0
jne 0x140005a46
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140003160
call fcn.140032e60
mov rsi, rax
test rax, rax
je 0x140005b3d
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae r8, qword [rsp + 0x50]
mov edx, 0x2712
mov rcx, rax
call fcn.140035a90
xor r8d, r8d
lea edx, [r8 + 0x40]
mov rcx, rsi
call fcn.140035a90
xor r8d, r8d
lea edx, [r8 + 0x51]
mov rcx, rsi
call fcn.140035a90
mov edx, reloc.WLDAP32.dll_Ordinal_41
lea r8d, [rdx - 0x28]
mov rcx, rsi
call fcn.140035a90
xor r8d, r8d
mov edx, 0x4e2c
mov rcx, rsi
call fcn.140035a90
lea r8, [0x140010150]
mov edx, 0x4e2b
mov rcx, rsi
call fcn.140035a90
lea r8, [rbp + 0xc0]
mov edx, 0x2711
mov rcx, rsi
call fcn.140035a90
mov edx, 0x63
lea r8d, [rdx - 0x62]
mov rcx, rsi
call fcn.140035a90
xor r8d, r8d
lea edx, [r8 + 0x2a]
mov rcx, rsi
call fcn.140035a90
mov edx, Ordinal_79
lea r8d, [rdx - 0x4b]
mov rcx, rsi
call fcn.140035a90
mov edx, reloc.WS2_32.dll_listen
lea r8d, [rdx - 0xa]
mov rcx, rsi
call fcn.140035a90
mov rcx, rsi
call fcn.140032ea0
mov rcx, rsi
call fcn.140032e40
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140005b85
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b80
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005b80
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140073b54
cmp qword [rbp + 0xd0], 0
jbe 0x140005dab
lea rdx, [rbp + 0xc0]
call fcn.14000dc20
test al, al
je 0x140005cf2
mov ecx, 1
call fcn.1400738c8
mov qword [rbp + 0xf0], rax
lea rcx, [rbp + 0xe8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x140008be0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0xe0], rax
test rax, rax
je 0x140005f7e
cmp dword [rbp + 0xe8], 0
je 0x140005fb1
movaps xmm0, xmmword [rbp + 0xe0]
movdqa xmmword [rbp + 0x90], xmm0
lea rcx, [rbp + 0x90]
call fcn.1400709cc
test eax, eax
jne 0x140005fbc
xorps xmm0, xmm0
movaps xmmword [rbp + 0xa0], xmm0
movdqa xmmword [rbp + 0xe0], xmm0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x70], r15
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], reloc.WS2_32.dll_ntohs
xor r8d, r8d
lea rdx, [0x1400c0271]
lea rcx, [rsp + 0x70]
call fcn.140003160
nop
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x58], reloc.WS2_32.dll_ntohs
mov r8d, 1
lea rdx, [0x1400c0348]
lea rcx, [rbp - 0x70]
call fcn.140003160
nop
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], reloc.WS2_32.dll_ntohs
mov r8d, 1
lea rdx, [0x1400c034c]
lea rcx, [rbp - 0x50]
call fcn.140003160
nop
call fcn.140008330
mov rcx, rax
lea r9, [rsp + 0x70]
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x50]
call fcn.14001dd70
nop
cmp dword [rbp + 0xe8], 0
je 0x140005cea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov sil, 1
jmp 0x140005e6d
lea rdx, str._bus2345_
lea rcx, [0x1400c0350]
call fcn.14001d3c0
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], reloc.WS2_32.dll_ntohs
xor r8d, r8d
lea rdx, [0x1400c0271]
lea rcx, [rbp - 0x30]
call fcn.140003160
nop
mov qword [rbp - 0x10], r15
mov qword [rbp], r15
mov qword [rbp + 8], reloc.WS2_32.dll_ntohs
mov r8d, 1
lea rdx, [0x1400c0368]
lea rcx, [rbp - 0x10]
call fcn.140003160
nop
mov qword [rbp + 0x10], r15
mov qword [rbp + 0x20], r15
mov qword [rbp + 0x28], reloc.WS2_32.dll_ntohs
mov r8d, 1
lea rdx, [0x1400c034c]
lea rcx, [rbp + 0x10]
call fcn.140003160
nop
call fcn.140008330
mov rcx, rax
lea r9, [rbp - 0x30]
lea r8, [rbp - 0x10]
lea rdx, [rbp + 0x10]
jmp 0x140005e65
lea rdx, str._bus2345_
lea rcx, [0x1400c0370]
call fcn.14001d3c0
lea rax, [rbp + 0x30]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rbp + 0x30], r15
mov qword [rbp + 0x40], r15
mov qword [rbp + 0x48], reloc.WS2_32.dll_ntohs
xor r8d, r8d
lea rdx, [0x1400c0271]
lea rcx, [rbp + 0x30]
call fcn.140003160
nop
mov qword [rbp + 0x50], r15
mov qword [rbp + 0x60], r15
mov qword [rbp + 0x68], reloc.WS2_32.dll_ntohs
mov r8d, 1
lea rdx, [0x1400c0368]
lea rcx, [rbp + 0x50]
call fcn.140003160
nop
mov qword [rbp + 0x70], r15
mov qword [rbp + 0x80], r15
mov qword [rbp + 0x88], reloc.WS2_32.dll_ntohs
mov r8d, 1
lea rdx, [0x1400c034c]
lea rcx, [rbp + 0x70]
call fcn.140003160
nop
call fcn.140008330
mov rcx, rax
lea r9, [rbp + 0x30]
lea r8, [rbp + 0x50]
lea rdx, [rbp + 0x70]
call fcn.14001dd70
xor sil, sil
call fcn.140032eb0
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140005e8d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0x10
jb 0x140005ed1
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005ecc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005ecc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140073b54
mov qword [rbp + 0xd0], r15
mov qword [rbp + 0xd8], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0xc0], 0
mov rbx, qword [rbp + 0xb0]
jmp 0x140005f1b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str._bus2345_
lea rcx, str._s_barID0...
call fcn.14001d3c0
mov dword [0x1400d2150], 0x64
xor sil, sil
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140005f34
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
nop
lea rax, vtable.CConfig.0
mov qword [rbp + 0x100], rax
lea rcx, [rbp + 0x428]
call fcn.1400708a4
movzx eax, sil
mov rcx, qword [rbp + 0x898]
xor rcx, rsp
call fcn.140073640
lea r11, [rsp + 0x9a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov dword [rbp + 0xe8], r15d
mov ecx, 6
call fcn.1400705d8
nop
mov ecx, 0x80004005
call fcn.140001860
nop
mov ecx, 0x80004005
call fcn.140001860
nop
mov ecx, 0x80004005
call fcn.140001860
nop
mov ecx, 1
call fcn.1400705d8
int3
mov ecx, eax
call fcn.14007059c
int3