Function at 0x1400d6840
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r12
mov eax, 0x20240
call fcn.140100df0
sub rsp, rax
mov rdi, r9
mov rsi, r8
mov rbx, rdx
test r9, r9
je 0x1400d686b
cmp word [r9], 0
jne 0x1400d6872
lea rdi, str.ERROR
xor r12d, r12d
lea r9, [rsp + 0x20278]
lea r8, [rsp + 0x30]
mov edx, 0x104
mov word [rsp + 0x240], r12w
mov word [rsp + 0x20270], r12w
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp word [rsi], r12w
je 0x1400d6910
cmp word [rbx], r12w
lea rax, [rsp + 0x30]
lea rcx, [rsp + 0x20270]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x240]
mov r8, rdi
cmovne rcx, rbx
mov rdx, rsi
mov dword [rsp + 0x20], 0xffff
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rbx, qword [0x14013f500]
movzx edx, byte [rbx + 0x23]
test dl, dl
jne 0x1400d697a
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x240]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400e6e20
jmp 0x1400d6bf9
cmp word [rbx], r12w
je 0x1400d6934
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x240]
mov r8d, 0xffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
jmp 0x1400d694c
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x240]
mov edx, 0xffff
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
test eax, eax
je 0x1400d68db
lea rax, [rsp + 0x240]
mov ecx, 0xa
nop dword [rax]
cmp word [rax], r12w
jne 0x1400d6974
cmp word [rax + 2], r12w
je 0x1400d68db
mov word [rax], cx
add rax, 2
jmp 0x1400d6960
lea rax, [rsp + 0x240]
mov qword [rsp + 0x20260], rbp
cmp qword [rbx + 8], rax
jne 0x1400d6999
mov rbp, qword [rbx + 0x10]
shr rbp, 1
jmp 0x1400d69b1
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x240]
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea rbp, [rcx - 1]
lea rax, [rbp + 1]
lea rsi, [rax + rax]
cmp dl, 2
jne 0x1400d69d3
lea rcx, [rsp + 0x240]
mov rdx, rbp
call fcn.140006bc0
jmp 0x1400d6bf1
mov rcx, qword [0x14013b0d0]
cmp rsi, rcx
jbe 0x1400d6a04
cmp rsi, qword [rbx + 0x18]
jbe 0x1400d6a04
lea r8, [0x1401035ac]
lea rdx, [0x140124720]
lea rcx, [0x140143150]
call fcn.14005f7b0
jmp 0x1400d6bf1
cmp rax, 2
jae 0x1400d6a1e
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 3]
call fcn.1400e74d0
jmp 0x1400d6bec
movzx eax, byte [rbx + 0x21]
test al, 2
je 0x1400d6a3b
mov rcx, qword [rbx]
and al, 0x3d
mov byte [rbx + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rcx, qword [0x14013b0d0]
mov r8, qword [rbx + 0x18]
and byte [rbx + 0x21], 0x82
cmp rsi, r8
jbe 0x1400d6bb6
movzx r9d, byte [rbx + 0x20]
movzx eax, r9b
cmp r9b, 1
jbe 0x1400d6a74
cmp al, 2
je 0x1400d6ab5
mov rdi, qword [rsp + 0x20270]
mov rax, qword [rsp + 0x20270]
jmp 0x1400d6baa
mov edi, 0x80
cmp rsi, rdi
ja 0x1400d6ab5
cmp rsi, 8
ja 0x1400d6a8b
mov edi, 8
jmp 0x1400d6a97
mov ecx, reloc.WSOCK32.dll_recv
cmp rsi, rcx
cmovbe rdi, rcx
mov rcx, rdi
call fcn.1400dd290
test rax, rax
jne 0x1400d6aac
mov eax, r12d
jmp 0x1400d6bf1
mov byte [rbx + 0x20], 1
jmp 0x1400d6baa
cmp rsi, 0x20
jae 0x1400d6ac5
mov edi, SafeArrayAllocDescriptor
jmp 0x1400d6b6f
mov edi, 0x208
cmp rsi, rdi
jb 0x1400d6b6f
cmp rsi, 0x50000
jae 0x1400d6b2b
pxor xmm0, xmm0
cvtsi2sd xmm0, rsi
test rsi, rsi
jns 0x1400d6af2
addsd xmm0, qword [0x1401279a8]
mulsd xmm0, qword [0x1401279e0]
movsd xmm1, qword [0x1401279d8]
xor eax, eax
comisd xmm0, xmm1
jbe 0x1400d6b21
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x1400d6b21
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si rdi, xmm0
add rdi, rax
jmp 0x1400d6b6f
cmp rsi, 0x320000
jae 0x1400d6b3d
lea rdi, [rsi + 0x8000]
jmp 0x1400d6b6f
cmp rsi, 0xc80000
jae 0x1400d6b68
movabs rax, 0x47ae147ae147ae15
mov rdi, rsi
mul rsi
sub rdi, rdx
shr rdi, 1
add rdi, rdx
shr rdi, 6
add rdi, rsi
jmp 0x1400d6b6f
lea rdi, [rsi + 0x20000]
cmp rdi, rcx
cmova rdi, rcx
cmp r9b, 2
jne 0x1400d6b90
test r8, r8
je 0x1400d6b90
mov rcx, qword [rbx + 8]
mov sil, 1
call qword [sym.imp.MSVCR100.dll_free]
jmp 0x1400d6b93
xor sil, sil
test rdi, rdi
js 0x1400d6c0d
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_malloc]
test rax, rax
je 0x1400d6c0d
mov byte [rbx + 0x20], 2
and byte [rbx + 0x21], 0x7f
mov qword [rbx + 8], rax
mov qword [rbx + 0x18], rdi
mov rcx, qword [rbx + 8]
lea rax, [rsp + 0x240]
cmp rcx, rax
je 0x1400d6bda
lea r8, [rbp + rbp]
lea rdx, [rsp + 0x240]
call qword [sym.imp.MSVCR100.dll_memmove]
mov rax, qword [rbx + 8]
lea rcx, [rbp + rbp]
mov word [rcx + rax], r12w
mov qword [rbx + 0x10], rcx
mov eax, 1
mov rbp, qword [rsp + 0x20260]
mov rbx, qword [rsp + 0x20268]
add rsp, 0x20240
pop r12
pop rdi
pop rsi
ret
test sil, sil
je 0x1400d6c23
lea rax, [0x140141fa8]
mov qword [rbx + 0x18], r12
mov qword [rbx + 8], rax
jmp 0x1400d6c2b
mov rax, qword [rbx + 8]
mov word [rax], r12w
lea r8, [0x1401035ac]
lea rdx, str.Out_of_memory.
lea rcx, [0x140143150]
mov qword [rbx + 0x10], r12
call fcn.14005f7b0
jmp 0x1400d6bf1