Function at 0x140005710
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 [0x1400cd070]
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.1400019f0
mov rcx, rax
test rax, rax
je 0x140005f80
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 0x140005797
movzx edx, dx
call fcn.1400028f0
jmp 0x1400057a3
mov r8d, reloc.WS2_32.dll_recv
call fcn.140002a80
nop
mov rbx, qword [rsp + 0x30]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
or eax, ecx
jge 0x1400057c8
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400025b0
mov rbx, qword [rsp + 0x30]
mov r8, rbx
lea rdx, str.test
lea rcx, [rbp + 0x100]
call fcn.14000d2b0
nop
lea rdx, [rbx - 0x18]
mov rdi, 0xffffffffffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400057ff
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
call fcn.1400019f0
mov rcx, rax
test rax, rax
je 0x140005f8b
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, [0x1400bdf04]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea r8, [rbp + 0x490]
lea rdx, [0x1400be3a0]
lea rcx, [rbp + 0xb0]
call fcn.140002720
lea rdx, [0x1400bde91]
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 0x1400058ce
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
or eax, ecx
jge 0x1400058c0
xor edx, edx
lea rcx, [rbp + 0xb0]
call fcn.1400025b0
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 0x140005948
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 0x140005ee3
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 0x140005918
mov rcx, rsi
jmp 0x140005ee5
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 0x140005eeb
mov dword [0x1400d013c], 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.1400019f0
mov rcx, rax
test rax, rax
je 0x140005f96
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rbp + 0xb8], rax
lea r8, [0x1400cd100]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae r8, qword [0x1400cd100]
mov r9d, r14d
lea rdx, str.http:___s_independ_request_getHomePageConfig_barId_d
lea rcx, [rbp + 0xb8]
call fcn.140002720
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.1400327f0
nop
mov rbx, qword [rbp + 0xb8]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
or eax, ecx
jge 0x140005a20
xor edx, edx
lea rcx, [rbp + 0xb8]
call fcn.1400025b0
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 0x140005a36
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140003150
call fcn.140032760
mov rsi, rax
test rax, rax
je 0x140005b2d
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae r8, qword [rsp + 0x50]
mov edx, 0x2712
mov rcx, rax
call fcn.140035390
xor r8d, r8d
lea edx, [r8 + 0x40]
mov rcx, rsi
call fcn.140035390
xor r8d, r8d
lea edx, [r8 + 0x51]
mov rcx, rsi
call fcn.140035390
mov edx, reloc.WLDAP32.dll_Ordinal_41
lea r8d, [rdx - 0x28]
mov rcx, rsi
call fcn.140035390
xor r8d, r8d
mov edx, 0x4e2c
mov rcx, rsi
call fcn.140035390
lea r8, [0x14000fca0]
mov edx, 0x4e2b
mov rcx, rsi
call fcn.140035390
lea r8, [rbp + 0xc0]
mov edx, 0x2711
mov rcx, rsi
call fcn.140035390
mov edx, 0x63
lea r8d, [rdx - 0x62]
mov rcx, rsi
call fcn.140035390
xor r8d, r8d
lea edx, [r8 + 0x2a]
mov rcx, rsi
call fcn.140035390
mov edx, Ordinal_79
lea r8d, [rdx - 0x4b]
mov rcx, rsi
call fcn.140035390
mov edx, reloc.WS2_32.dll_listen
lea r8d, [rdx - 0xa]
mov rcx, rsi
call fcn.140035390
mov rcx, rsi
call fcn.1400327a0
mov rcx, rsi
call fcn.140032740
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140005b75
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b70
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005b70
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140073454
cmp qword [rbp + 0xd0], 0
jbe 0x140005d9b
lea rdx, [rbp + 0xc0]
call fcn.14000d5f0
test al, al
je 0x140005ce2
mov ecx, 1
call fcn.1400731c8
mov qword [rbp + 0xf0], rax
lea rcx, [rbp + 0xe8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x140008590]
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 0x140005f6e
cmp dword [rbp + 0xe8], 0
je 0x140005fa1
movaps xmm0, xmmword [rbp + 0xe0]
movdqa xmmword [rbp + 0x90], xmm0
lea rcx, [rbp + 0x90]
call fcn.1400702cc
test eax, eax
jne 0x140005fac
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, [0x1400bde91]
lea rcx, [rsp + 0x70]
call fcn.140003150
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, [0x1400bdf68]
lea rcx, [rbp - 0x70]
call fcn.140003150
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, [0x1400bdf6c]
lea rcx, [rbp - 0x50]
call fcn.140003150
nop
call fcn.140007cf0
mov rcx, rax
lea r9, [rsp + 0x70]
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x50]
call fcn.14001d2a0
nop
cmp dword [rbp + 0xe8], 0
je 0x140005cda
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov sil, 1
jmp 0x140005e5d
lea rdx, str._bus2345_
lea rcx, [0x1400bdf70]
call fcn.14001cde0
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, [0x1400bde91]
lea rcx, [rbp - 0x30]
call fcn.140003150
nop
mov qword [rbp - 0x10], r15
mov qword [rbp], r15
mov qword [rbp + 8], reloc.WS2_32.dll_ntohs
mov r8d, 1
lea rdx, [0x1400bdf88]
lea rcx, [rbp - 0x10]
call fcn.140003150
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, [0x1400bdf6c]
lea rcx, [rbp + 0x10]
call fcn.140003150
nop
call fcn.140007cf0
mov rcx, rax
lea r9, [rbp - 0x30]
lea r8, [rbp - 0x10]
lea rdx, [rbp + 0x10]
jmp 0x140005e55
lea rdx, str._bus2345_
lea rcx, [0x1400bdf90]
call fcn.14001cde0
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, [0x1400bde91]
lea rcx, [rbp + 0x30]
call fcn.140003150
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, [0x1400bdf88]
lea rcx, [rbp + 0x50]
call fcn.140003150
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, [0x1400bdf6c]
lea rcx, [rbp + 0x70]
call fcn.140003150
nop
call fcn.140007cf0
mov rcx, rax
lea r9, [rbp + 0x30]
lea r8, [rbp + 0x50]
lea rdx, [rbp + 0x70]
call fcn.14001d2a0
xor sil, sil
call fcn.1400327b0
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140005e7d
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 0x140005ec1
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005ebc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005ebc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140073454
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 0x140005f0b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str._bus2345_
lea rcx, str._s_barID0...
call fcn.14001cde0
mov dword [0x1400d0138], 0x64
xor sil, sil
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140005f24
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.1400701a4
movzx eax, sil
mov rcx, qword [rbp + 0x898]
xor rcx, rsp
call fcn.140072f40
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.14006fed8
nop
mov ecx, 0x80004005
call fcn.140001850
nop
mov ecx, 0x80004005
call fcn.140001850
nop
mov ecx, 0x80004005
call fcn.140001850
nop
mov ecx, 1
call fcn.14006fed8
int3
mov ecx, eax
call fcn.14006fe9c
int3