Function at 0x140006358
Capabilities:
Access peb ldr_data
Read .ini file

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x160
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140035010]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rdi, rcx
mov qword [rsp + 0x60], rcx
and dword [rsp + 0x38], 0
mov r15d, 4
mov rax, qword gs:[0x58]
mov rbx, qword [rax]
or esi, 0xffffffff
mov eax, dword [r15 + rbx]
cmp dword [0x140036f48], eax
jg 0x1400065df
lea r14, [0x140036f10]
mov eax, dword [r15 + rbx]
cmp dword [0x140036f38], eax
jg 0x1400065a0
mov qword [rsp + 0x68], r14
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rax, qword [0x140036f40]
mov ebx, dword [rax - 0x10]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea r15, [0x140036f40]
test ebx, ebx
jne 0x140006561
lea rcx, [rsp + 0x30]
call fcn.1400061c0
nop
xor edx, edx
mov r8d, 0xc8
lea rcx, [rbp - 0x80]
call fcn.140010f90
lea r8, str.AliWorkbench.ini
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1400070ac
nop
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x64
lea r9, [rbp - 0x80]
lea r8, [0x14002c7b4]
lea rdx, str.Version
lea rcx, str.Common
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14000648a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov qword [rsp + 0x70], r14
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rax, qword [0x140036f40]
cmp dword [rax - 0x10], 0
jne 0x140006537
lea rcx, [rbp - 0x80]
call fcn.140013a94
lea rdx, [rsp + 0x30]
test rax, rax
jne 0x1400064c7
mov rcx, r15
call fcn.140007328
jmp 0x140006537
lea r8, [rbp - 0x80]
lea rcx, [rsp + 0x50]
call fcn.1400070ac
nop
lea r8, [0x14002c7b0]
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400070ac
nop
mov rdx, rax
mov rcx, r15
call fcn.140007328
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x140006517
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x140006537
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x140006561
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rdx, r15
mov rcx, rdi
call fcn.140005408
mov dword [rsp + 0x38], 1
mov rax, rdi
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14000f3d0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea rcx, [0x140036f38]
call fcn.14000f67c
cmp dword [0x140036f38], esi
jne 0x1400063d7
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x1400235cc]
call fcn.14000fa48
nop
lea rcx, [0x140036f38]
call fcn.14000f61c
jmp 0x1400063d7
lea rcx, [0x140036f48]
call fcn.14000f67c
cmp dword [0x140036f48], esi
jne 0x1400063c0
call fcn.140005e30
mov rcx, rax
test rax, rax
jne 0x14000660f
mov ecx, 0x80004005
call fcn.140005bc4
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [0x140036f40], rax
lea rcx, [0x1400235dc]
call fcn.14000fa48
nop
lea rcx, [0x140036f48]
call fcn.14000f61c
jmp 0x1400063c0