Function at 0x14001e830
Capabilities:
Get file size
Read .ini file
Read file on windows
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb20]
sub rsp, 0xc20
mov qword [rbp + 0x200], 0xfffffffffffffffe
mov qword [rsp + 0xc70], rbx
mov rax, qword [0x1401222f0]
xor rax, rsp
mov qword [rbp + 0xb10], rax
mov r12, rdx
mov qword [rbp + 0x160], rdx
mov r13, rcx
mov qword [rbp + 0x168], rcx
cmp qword [0x1401261c8], 0
jne 0x14001e8d5
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.GetSystemDefaultLocaleName
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401261c8], rax
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.GetUserDefaultLocaleName
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401261d0], rax
mov rax, qword [r12]
mov rdi, qword [rax]
mov qword [rax], rax
mov rax, qword [r12]
mov qword [rax + 8], rax
xor eax, eax
mov qword [r12 + 8], rax
cmp rdi, qword [r12]
je 0x14001e911
mov rbx, qword [rdi]
lea rcx, [rdi + 0x10]
call fcn.14001e780
mov rcx, rdi
call fcn.1400a7cb8
mov rdi, rbx
cmp rbx, qword [r12]
jne 0x14001e8f4
xor r12d, r12d
mov ebx, r12d
mov qword [rbp - 0x50], rbx
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x58]
call fcn.140021950
mov rdi, rax
mov qword [rbp - 0x58], rax
mov esi, r12d
xor r8d, r8d
lea rdx, str.Section_d
lea rcx, [rbp + 0x240]
call fcn.1400aa864
mov word [rbp + 0x4c0], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x4c2]
call fcn.1400a8b00
mov rcx, r13
call fcn.140004340
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp + 0x4c0]
lea r15, [0x1400d1428]
mov r8, r15
lea rdx, [rbp + 0x240]
lea rcx, str.Root
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
movabs r14, 0xaaaaaaaaaaaaaa9
test eax, eax
je 0x14001ea74
lea rcx, [rbp + 0x4c0]
call fcn.1400ab1a4
mov dword [rbp + 4], eax
lea r9, [rbp + 4]
mov r8, qword [rdi + 8]
mov rdx, rdi
lea rcx, [rbp - 0x58]
call fcn.14001e4b0
mov rcx, r14
sub rcx, rbx
cmp rcx, 1
jb 0x14001ea67
inc rbx
mov qword [rbp - 0x50], rbx
mov qword [rdi + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
inc esi
mov r8d, esi
lea rdx, str.Section_d
lea rcx, [rbp + 0x240]
call fcn.1400aa864
mov word [rbp + 0x4c0], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x4c2]
call fcn.1400a8b00
mov rcx, r13
call fcn.140004340
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp + 0x4c0]
mov r8, r15
lea rdx, [rbp + 0x240]
lea rcx, str.Root
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x14001e9b1
jmp 0x14001ea74
lea rcx, str.list_T__too_long
call fcn.1400a6f84
int3
mov r14d, r12d
or rsi, 0xffffffffffffffff
nop dword [rax + rax]
mov word [rbp + 0x8e0], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x8e2]
call fcn.1400a8b00
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.1400a8e40
mov rdi, rax
mov qword [rbp + 0x88], rax
test rax, rax
je 0x14001eadb
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, str..disabled
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rdi], rax
test rax, rax
je 0x14001ec84
jmp 0x14001eade
mov rdi, r12
mov qword [rbp + 0x88], rdi
test rdi, rdi
je 0x140020bee
lea r8, [rbp + 0x88]
lea rdx, [rbp + 0xd0]
mov rcx, r13
call fcn.1400043a0
mov rbx, rax
mov edx, r14d
lea rcx, [rbp + 0x100]
call fcn.1400216a0
mov rdx, qword [rbx]
test rdx, rdx
je 0x14001eb23
mov rdx, qword [rdx]
jmp 0x14001eb26
mov rdx, r12
mov rax, qword [rax]
test rax, rax
je 0x14001eb33
mov rcx, qword [rax]
jmp 0x14001eb36
mov rcx, r12
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x104
lea r9, [rbp + 0x8e0]
mov r8, r15
lea rdx, str.PrivateSetting_GadgetName
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
sete r15b
mov rbx, qword [rbp + 0x100]
test rbx, rbx
je 0x14001eba9
lock dec dword [rbx + 0x10]
jne 0x14001eba2
test rbx, rbx
je 0x14001eba2
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001eb88
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14001eb9a
call fcn.1400aac28
mov qword [rbx + 8], r12
mov rcx, rbx
call fcn.1400a7cb8
mov qword [rbp + 0x100], r12
mov rbx, qword [rbp + 0xd0]
test rbx, rbx
je 0x14001ebf2
lock dec dword [rbx + 0x10]
jne 0x14001ebeb
test rbx, rbx
je 0x14001ebeb
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001ebd1
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14001ebe3
call fcn.1400aac28
mov qword [rbx + 8], r12
mov rcx, rbx
call fcn.1400a7cb8
mov qword [rbp + 0xd0], r12
or rax, 0xffffffffffffffff
lock xadd dword [rdi + 0x10], eax
dec eax
jne 0x14001ec2a
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001ec10
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r12
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14001ec22
call fcn.1400aac28
mov qword [rdi + 8], r12
mov rcx, rdi
call fcn.1400a7cb8
test r15b, r15b
jne 0x14001ec9c
mov dword [rbp + 0x20], esi
mov rbx, qword [rbp - 0x58]
lea r9, [rbp + 0x20]
mov r8, qword [rbx + 8]
mov rdx, rbx
lea rcx, [rbp - 0x58]
call fcn.14001e530
movabs rcx, 0xaaaaaaaaaaaaaa9
mov rdx, qword [rbp - 0x50]
sub rcx, rdx
cmp rcx, 1
jb 0x14001ec8f
inc rdx
mov qword [rbp - 0x50], rdx
mov qword [rbx + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
inc r14d
dec esi
lea r15, [0x1400d1428]
jmp 0x14001ea80
mov ecx, 0x8007000e
call fcn.1400a6a90
nop
lea rcx, str.list_T__too_long
call fcn.1400a6f84
int3
mov rdi, qword [rbp - 0x58]
mov rsi, qword [rdi]
cmp rsi, rdi
je 0x140020bc3
nop dword [rax]
mov qword [rbp + 0x38], r12
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x40], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x50], xmm1
movdqa xmmword [rbp + 0x60], xmm0
mov r14d, dword [rsi + 0x10]
mov dword [rbp + 0x30], r14d
mov word [rbp + 0x2b0], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x2b2]
call fcn.1400a8b00
test r14d, r14d
js 0x14001edb3
mov edx, r14d
lea rcx, [rbp + 0x138]
call fcn.1400216a0
mov rcx, qword [rax]
test rcx, rcx
je 0x14001ed12
mov rbx, qword [rcx]
jmp 0x14001ed15
mov rbx, r12
mov rcx, r13
call fcn.140004340
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp + 0x2b0]
lea rdi, [0x1400d1428]
mov r8, rdi
lea rdx, str.PrivateSetting_Enabled
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rbx, qword [rbp + 0x138]
test rbx, rbx
je 0x14001ed98
lock dec dword [rbx + 0x10]
jne 0x14001ed8d
test rbx, rbx
je 0x14001ed8d
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001ed73
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14001ed85
call fcn.1400aac28
mov qword [rbx + 8], r12
mov rcx, rbx
call fcn.1400a7cb8
mov qword [rbp + 0x138], r12
mov r14d, dword [rbp + 0x30]
lea rdx, str.false
lea rcx, [rbp + 0x2b0]
call fcn.1400a9bbc
test eax, eax
setne byte [rbp + 0x34]
jmp 0x14001edbe
mov byte [rbp + 0x34], 0
lea rdi, [0x1400d1428]
mov word [rbp + 0x2b0], r12w
test r14d, r14d
js 0x14001ee73
mov edx, r14d
lea rcx, [rbp + 0x148]
call fcn.1400216a0
mov rbx, qword [rax]
test rbx, rbx
je 0x14001edeb
mov rbx, qword [rbx]
jmp 0x14001edee
mov rbx, r12
mov rcx, r13
call fcn.140004340
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp + 0x2b0]
mov r8, rdi
lea rdx, str.PrivateSetting_GadgetName
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rbx, qword [rbp + 0x148]
or r15, 0xffffffffffffffff
test rbx, rbx
je 0x14001efff
lock dec dword [rbx + 0x10]
jne 0x14001ee67
test rbx, rbx
je 0x14001ee67
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001ee4d
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14001ee5f
call fcn.1400aac28
mov qword [rbx + 8], r12
mov rcx, rbx
call fcn.1400a7cb8
mov qword [rbp + 0x148], r12
jmp 0x14001efff
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
invalid