Function at 0x140010380
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x140093010]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r12, r8
mov edi, edx
mov r13, rcx
mov qword [rsp + 0x40], rcx
test rcx, rcx
jne 0x1400103c5
xor eax, eax
jmp 0x1400106d9
xor r14d, r14d
mov dword [rsp + 0x34], r14d
lea esi, [r14 + 1]
cmp dword [rcx + 0x8c0], r14d
je 0x1400103e8
add rcx, 0x1350
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop
lea rbx, [r13 + 0x1378]
mov r9, rbx
xor r8d, r8d
lea rdx, str.Number
lea rcx, [0x1400819d8]
call qword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_GetPrivateProfileIntW]
mov dword [rsp + 0x3c], eax
xor r15d, r15d
mov dword [rsp + 0x38], r15d
cmp r15d, eax
jae 0x1400106b8
test r14d, r14d
jne 0x1400106b8
test esi, esi
je 0x1400106b8
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x260]
call fcn.140043ce0
mov r9d, r15d
lea r8, str.UWP_d
mov edx, 0x104
lea rcx, [rsp + 0x260]
call fcn.1400032c0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.140043ce0
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x50]
lea r8, [0x1400815c8]
lea rdx, [0x1400819d0]
lea rcx, [rsp + 0x260]
call qword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_GetPrivateProfileStringW]
movzx eax, word [rsp + 0x50]
cmp ax, word [0x1400815c8]
je 0x1400106ac
lea rax, [rsp + 0x50]
mov r8, r12
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400104d4
add rax, 2
test ecx, ecx
jne 0x1400104c0
test edx, edx
jne 0x1400106ac
cmp edi, 2
ja 0x1400106ac
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x50]
lea r8, [0x1400815c8]
lea rdx, str.Status
lea rcx, [rsp + 0x260]
call qword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_GetPrivateProfileStringW]
lea rdx, [rsp + 0x50]
mov rax, 0xffffffffffffffff
lea r10, str.Complete
nop word [rax + rax]
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r10 + rax*2 + 2]
jne 0x140010552
add rax, 2
cmp rax, 9
je 0x140010585
movzx ecx, word [rdx + rax*2]
cmp cx, word [r10 + rax*2]
je 0x140010530
xor ecx, ecx
lea rdx, [rsp + 0x50]
lea r11, str.Fail
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r11 + rcx*2 - 2]
jne 0x1400105dc
cmp rcx, 5
jne 0x140010560
cmp edi, 1
jne 0x1400105ba
xor esi, esi
mov dword [rsp + 0x30], esi
jmp 0x1400106ac
test edi, edi
jne 0x140010594
xor esi, esi
mov dword [rsp + 0x30], esi
jmp 0x1400106ac
mov r9, rbx
xor r8d, r8d
lea rdx, str.Number
mov rcx, r10
call qword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_GetPrivateProfileIntW]
test eax, eax
je 0x140010644
xor r8d, r8d
jmp 0x140010639
mov r9, rbx
xor r8d, r8d
lea rdx, str.Number
mov rcx, r11
call qword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_GetPrivateProfileIntW]
test eax, eax
je 0x140010644
mov r8d, 1
jmp 0x140010639
xor ecx, ecx
lea rdx, [rsp + 0x50]
lea r8, str.Cancel
nop word [rax + rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r8 + rcx*2 - 2]
jne 0x140010659
cmp rcx, 7
jne 0x1400105f0
cmp edi, 2
jne 0x140010615
xor esi, esi
mov dword [rsp + 0x30], esi
jmp 0x1400106ac
mov r9, rbx
xor r8d, r8d
lea rdx, str.Number
lea rcx, str.Cancel
call qword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_GetPrivateProfileIntW]
test eax, eax
je 0x140010644
mov r8d, 2
lea edx, [rax - 1]
mov rcx, rbx
call fcn.140016d10
lea r8, str.Cancel
lea r11, str.Fail
lea r10, str.Complete
test edi, edi
jne 0x140010662
mov r8, r10
jmp 0x140010671
cmp edi, 1
jne 0x14001066c
mov r8, r11
jmp 0x140010671
cmp edi, 2
jne 0x140010689
mov r9, rbx
lea rdx, str.Status
lea rcx, [rsp + 0x260]
call qword [sym.imp.api_ms_win_core_privateprofile_l1_1_0.dll_WritePrivateProfileStringW]
mov edx, edi
mov rcx, rbx
call fcn.140016ca0
lea edx, [rax + 1]
mov r8d, edi
mov rcx, rbx
call fcn.140016d10
mov r14d, 1
mov dword [rsp + 0x34], r14d
inc r15d
mov eax, dword [rsp + 0x3c]
jmp 0x140010410
cmp dword [r13 + 0x8c0], 0
je 0x1400106cf
lea rcx, [r13 + 0x1350]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
jmp 0x1400106d6
mov eax, r14d
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14001f4e0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret