Function at 0x140247180
Capabilities:
Read .ini file

Disassembly:
push rdi
push r12
push r13
push r14
push r15
mov eax, Ordinal_4162
call sub.ntdll.dll___chkstk
sub rsp, rax
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_4216], rbx
mov qword [rsp + Ordinal_4228], rbp
mov qword [rsp + Ordinal_4235], rsi
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_4144], rax
mov rdi, rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
mov rcx, qword [rcx + reloc.MFC80U.DLL_Ordinal_4896]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
js 0x140247793
movsxd r8, eax
xor r9d, r9d
mov edx, reloc.MFC80U.DLL_Ordinal_336
mov rcx, qword [rdi + reloc.MFC80U.DLL_Ordinal_4896]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbp, rax
lea r9, [rdi + 0x2188]
xor r8d, r8d
lea rdx, [0x140374488]
lea rcx, [0x140374494]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov r15d, eax
mov dword [rsp + 0x20], eax
mov rdx, qword [rbp]
mov rcx, rbp
call qword [rdx + 0x78]
mov r13, rax
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x30]
mov rbx, rax
xor r14d, r14d
mov r12d, r14d
mov esi, r14d
mov word [rsp + 0x30], si
xor edx, edx
mov r8d, 0xffe
lea rcx, [rsp + 0x32]
call sub.ntdll.dll_memset
mov r8d, 0x1000
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test rbx, rbx
je 0x1402472ce
lea r15d, [r14 + 1]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0xc8]
test eax, eax
jne 0x1402472a2
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0xd0]
test eax, eax
je 0x1402472a5
mov r12d, r15d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x50]
cmp ax, word [rsp + 0x30]
cmove esi, r15d
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0x38]
mov rbx, rax
test rax, rax
jne 0x140247282
mov r15d, dword [rsp + 0x20]
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x58]
test eax, eax
jne 0x140247357
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0xb8]
test eax, eax
jne 0x140247357
test esi, esi
je 0x14024731d
call fcn.140049500
mov r8, qword [rax]
lea rdx, [0x1403744b0]
mov rcx, rax
call qword [r8]
mov rcx, rax
xor r8d, r8d
xor edx, edx
call sub.MFC80U.DLL_Ordinal_1134
mov rcx, rdi
call fcn.140238130
jmp 0x140247381
test r12d, r12d
je 0x140247381
cmp dword [rdi + 0xd38], r14d
jne 0x140247381
call fcn.140049500
mov r8, qword [rax]
lea rdx, [0x1403744c0]
mov rcx, rax
call qword [r8]
mov rcx, rax
xor r8d, r8d
xor edx, edx
call sub.MFC80U.DLL_Ordinal_1134
mov rcx, rdi
call fcn.140238130
jmp 0x140247381
call fcn.140049500
mov r8, qword [rax]
lea rdx, [0x1403744a0]
mov rcx, rax
call qword [r8]
mov rcx, rax
xor r8d, r8d
xor edx, edx
call sub.MFC80U.DLL_Ordinal_1134
mov rcx, rdi
call fcn.140238130
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0xb0]
mov r11d, eax
movabs rax, 0x280000000
cqo
idiv r11
mov rbx, rax
mov rdx, qword [rbp]
mov rcx, rbp
call qword [rdx + 0x38]
cmp rax, rbx
jae 0x1402473dc
call fcn.140049500
mov r8, qword [rax]
lea rdx, [0x1403744d0]
mov rcx, rax
call qword [r8]
mov rcx, rax
xor r8d, r8d
xor edx, edx
call sub.MFC80U.DLL_Ordinal_1134
mov rcx, rdi
call fcn.140238130
mov rcx, rdi
call fcn.1402393b0
xor edx, edx
mov rcx, rdi
call fcn.14023bb60
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
mov rcx, qword [rdi + reloc.MFC80U.DLL_Ordinal_4896]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
js 0x140247565
movsxd r8, eax
xor r9d, r9d
mov edx, reloc.MFC80U.DLL_Ordinal_336
mov rcx, qword [rdi + reloc.MFC80U.DLL_Ordinal_4896]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbp, rax
mov rax, qword [rax]
mov rcx, rbp
call qword [rax + 0xb0]
mov r11d, eax
movabs rax, 0x20000000000
cqo
idiv r11
mov rbx, rax
mov rdx, qword [rbp]
mov rcx, rbp
call qword [rdx + 0x38]
cmp rax, rbx
jae 0x1402474e6
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x60]
test eax, eax
jne 0x1402474e6
xor r9d, r9d
mov ebx, 1
mov r8, rbx
mov edx, 0xf1
mov rcx, qword [rdi + 0x2718]
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf1
mov rcx, qword [rdi + 0x27c0]
call qword [sym.imp.USER32.dll_SendMessageW]
mov esi, r14d
cmp dword [rdi + 0xfc0], r14d
jle 0x14024756a
lea rbx, [rdi + 0xd78]
nop
nop
nop
mov edx, 5
mov rcx, qword [rbx]
call fcn.14015fd58
add esi, 1
add rbx, 0x40
cmp esi, dword [rdi + 0xfc0]
jl 0x1402474c0
mov ebx, 1
jmp 0x14024756a
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf1
mov rcx, qword [rdi + 0x2718]
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
mov ebx, 1
mov r8, rbx
mov edx, 0xf1
mov rcx, qword [rdi + 0x27c0]
call qword [sym.imp.USER32.dll_SendMessageW]
mov esi, r14d
cmp dword [rdi + 0xfc0], r14d
jle 0x14024754e
lea rbx, [rdi + 0xd78]
nop
xor edx, edx
mov rcx, qword [rbx]
call fcn.14015fd58
add esi, 1
add rbx, 0x40
cmp esi, dword [rdi + 0xfc0]
jl 0x140247530
mov ebx, 1
test r15d, r15d
jne 0x14024756a
lea rcx, [rdi + 0x6c38]
lea edx, [r15 + 5]
call fcn.14015fd58
jmp 0x14024756a
mov ebx, 1
xor r9d, r9d
mov edx, reloc.MFC80U.DLL_Ordinal_334
lea r8d, [r9 + 0xa]
mov rcx, qword [rdi + 0x15c0]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r11, qword [rbp]
mov rcx, rbp
call qword [r11 + 0xb0]
cmp eax, 0x1000
jne 0x1402475ce
lea rcx, [rdi + 0x14d8]
xor edx, edx
call sub.MFC80U.DLL_Ordinal_2183
lea rcx, [rdi + 0x1580]
xor edx, edx
call sub.MFC80U.DLL_Ordinal_2183
xor r9d, r9d
mov r8, rbx
mov edx, 0xf1
mov rcx, qword [rdi + 0x1518]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1402475ea
lea rcx, [rdi + 0x14d8]
mov edx, ebx
call sub.MFC80U.DLL_Ordinal_2183
lea rcx, [rdi + 0x1580]
mov edx, ebx
call sub.MFC80U.DLL_Ordinal_2183
mov rcx, rdi
call fcn.14023b3b0
xor edx, edx
mov rcx, rdi
call fcn.140243df0
mov r11, qword [rbp]
mov rcx, rbp
call qword [r11 + 0x78]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x30]
mov rsi, rax
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x78]
test al, al
jne 0x140247636
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x78]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x38]
mov rsi, rax
test rsi, rsi
je 0x140247746
lea r12, [rdi + 0xd70]
movabs r13, 0x183c977ab2bedd29
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x78]
test al, al
je 0x140247746
lea rdx, [0x14036e95c]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MFC80U.DLL_Ordinal_286]
nop
lea rdx, [rsp + 0x20]
mov rcx, qword [r12]
call sub.MFC80U.DLL_Ordinal_3790
mov rbx, qword [rsi]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MFC80U.DLL_Ordinal_2492]
mov rdx, rax
mov rcx, rsi
call qword [rbx + pe_nt_image_headers64]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MFC80U.DLL_Ordinal_2492]
mov rbx, rax
movsxd rsi, r14d
mov rax, qword [rdi + reloc.MFC80U.DLL_Ordinal_4048]
test rax, rax
je 0x1402476dc
mov rcx, qword [rdi + 0xfd8]
sub rcx, rax
mov rax, r13
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rsi, rdx
jb 0x1402476e2
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
imul rsi, rsi, 0xa9
mov rax, qword [rdi + reloc.MFC80U.DLL_Ordinal_4048]
lea rcx, [rsi + rax + 0x1e]
nop
nop
nop
movzx eax, word [rbx]
mov word [rcx], ax
add rbx, 2
add rcx, 2
test ax, ax
jne 0x140247700
add r14d, 1
add r12, 0x40
lea rcx, [rsp + 0x20]
call qword [sym.imp.MFC80U.DLL_Ordinal_588]
mov r11, qword [rbp]
mov rcx, rbp
call qword [r11 + 0x78]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x38]
mov rsi, rax
test rax, rax
jne 0x140247650
mov rdx, rbp
mov rcx, rdi
call fcn.14023bb60
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf0
mov rcx, qword [rdi + 0x2718]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x14024777e
lea rcx, [rdi + 0x6c38]
xor edx, edx
call fcn.14015fd58
jmp 0x140247793
test r15d, r15d
jne 0x140247793
lea rcx, [rdi + 0x6c38]
lea edx, [r15 + 5]
call fcn.14015fd58
mov rcx, qword [rsp + reloc.MFC80U.DLL_Ordinal_4144]
xor rcx, rsp
call fcn.140161080
lea r11, [rsp + 0x1040]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret