Function at 0x1400142f0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x6e0
mov qword [rsp + 0x6d0], 0xfffffffffffffffe
mov rax, qword [0x140038020]
xor rax, rsp
mov qword [rsp + 0x6d8], rax
mov dword [rsp + 0x40], 0
cmp qword [rsp + 0x708], 0
jne 0x1400143b6
mov dword [rsp + 0x40], 0x4ef9009
xor eax, eax
cmp eax, 1
je 0x1400143b1
call fcn.140004430
mov qword [rsp + 0x688], rax
cmp qword [rsp + 0x688], 0
je 0x1400143b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [rsp + 0x688]
mov rdi, qword [rdi]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0x4ef9009
mov dword [rsp + 0x28], 0x4e
lea rax, [0x140028b38]
mov qword [rsp + 0x20], rax
lea r9, [0x140028b80]
mov r8d, 0xf9
mov edx, 1
mov rcx, qword [rsp + 0x688]
call qword [rdi + 0x30]
jmp 0x1400149d4
cmp dword [rsp + 0x710], 0
ja 0x14001443a
mov dword [rsp + 0x40], 0x4ff9009
xor eax, eax
cmp eax, 1
je 0x140014435
call fcn.140004430
mov qword [rsp + 0x690], rax
cmp qword [rsp + 0x690], 0
je 0x140014435
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [rsp + 0x690]
mov rdi, qword [rdi]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0x4ff9009
mov dword [rsp + 0x28], 0x4f
lea rax, [0x140028be8]
mov qword [rsp + 0x20], rax
lea r9, [0x140028c30]
mov r8d, 0xf9
mov edx, 1
mov rcx, qword [rsp + 0x690]
call qword [rdi + 0x30]
jmp 0x1400149d4
mov rcx, qword [rsp + 0x6f0]
add rcx, 8
lea r8, [rsp + 0x700]
lea rdx, [rsp + 0x6c0]
call fcn.140015760
mov rdi, rax
mov rcx, qword [rsp + 0x6f0]
add rcx, 8
lea rdx, [rsp + 0x6b0]
call fcn.140015730
mov rdx, rdi
mov rcx, rax
call fcn.140011470
movzx eax, al
test eax, eax
je 0x140014503
mov dword [rsp + 0x40], 0x51f9009
xor eax, eax
cmp eax, 1
je 0x1400144fe
call fcn.140004430
mov qword [rsp + 0x698], rax
cmp qword [rsp + 0x698], 0
je 0x1400144fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [rsp + 0x698]
mov rdi, qword [rdi]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0x51f9009
mov dword [rsp + 0x28], 0x51
lea rax, [0x140028c98]
mov qword [rsp + 0x20], rax
lea r9, [0x140028ce0]
mov r8d, 0xf9
mov edx, 1
mov rcx, qword [rsp + 0x698]
call qword [rdi + 0x30]
jmp 0x1400149d4
mov rcx, qword [rsp + 0x6f0]
add rcx, 8
lea rdx, [rsp + 0x700]
call fcn.140015560
mov qword [rsp + 0x680], rax
mov byte [rsp + 0x570], 0
lea rdi, [rsp + 0x571]
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x680]
call qword [sym.imp.MSVCP90.dll_public:_wchar_t_const____ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const___ptr64]
mov r8, rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x570]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [rsp + 0x50], 0
lea rdi, [rsp + 0x51]
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, 0x5c
lea rcx, [rsp + 0x50]
call fcn.14000e790
mov qword [rsp + 0x4c0], rax
cmp qword [rsp + 0x4c0], 0
jne 0x140014647
mov dword [rsp + 0x40], 0x5cf9001
xor eax, eax
cmp eax, 1
je 0x140014642
call fcn.140004430
mov qword [rsp + 0x6a0], rax
cmp qword [rsp + 0x6a0], 0
je 0x140014642
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [rsp + 0x6a0]
mov rdi, qword [rdi]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0x5cf9001
mov dword [rsp + 0x28], 0x5c
lea rax, [0x140028d48]
mov qword [rsp + 0x20], rax
lea r9, [0x140028d90]
mov r8d, 0xf9
mov edx, 1
mov rcx, qword [rsp + 0x6a0]
call qword [rdi + 0x30]
jmp 0x1400149d4
mov rax, qword [rsp + 0x4c0]
mov byte [rax + 1], 0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x540]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const____ptr64____ptr64]
nop
lea rdx, [0x140028df8]
lea rcx, [rsp + 0x540]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const____ptr64____ptr64]
lea rdx, [rsp + 0x570]
lea rcx, [rsp + 0x540]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const____ptr64____ptr64]
lea rdx, str._resTBEMLib.ini
lea rcx, [rsp + 0x540]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const____ptr64____ptr64]
mov qword [rsp + 0x160], 0x20
mov byte [rsp + 0x168], 0
lea rdi, [rsp + 0x169]
xor eax, eax
mov ecx, 0x1f
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x6f8]
shr eax, 0x10
cmp eax, 0xf000
je 0x1400146ee
mov eax, dword [rsp + 0x6f8]
shr eax, 0x10
cmp eax, 0xf001
jne 0x140014712
mov r9d, dword [rsp + 0x6f8]
lea r8, [0x140028654]
mov edx, 0x20
lea rcx, [rsp + 0x168]
call qword [sym.imp.MSVCR90.dll_sprintf_s]
jmp 0x14001477f
mov eax, dword [rsp + 0x6f8]
shr eax, 0x10
cmp eax, 0xff00
je 0x140014734
mov eax, dword [rsp + 0x6f8]
shr eax, 0x10
cmp eax, 0xff01
jne 0x140014756
mov r9d, 0xff00
lea r8, [0x1400286d4]
mov edx, 0x20
lea rcx, [rsp + 0x168]
call qword [sym.imp.MSVCR90.dll_sprintf_s]
jmp 0x14001477f
mov r9d, dword [rsp + 0x6f8]
and r9d, 0xfff
lea r8, [0x1400286e4]
mov edx, 0x20
lea rcx, [rsp + 0x168]
call qword [sym.imp.MSVCR90.dll_sprintf_s]
mov byte [rsp + 0x4d0], 0
lea rdi, [rsp + 0x4d1]
xor eax, eax
mov ecx, 0x63
rep stosb byte [rdi], al
lea rcx, [rsp + 0x540]
call qword [sym.imp.MSVCP90.dll_public:_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const___ptr64]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x64
lea r9, [rsp + 0x4d0]
lea r8, str._BP_ERR_UNKNOWN_
lea rdx, [rsp + 0x168]
lea rcx, str.CODE
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [rsp + 0x3b0], 0
lea rdi, [rsp + 0x3b1]
xor eax, eax
mov ecx, 0x10f
rep stosb byte [rdi], al
lea rcx, [rsp + 0x540]
call qword [sym.imp.MSVCP90.dll_public:_char_const____ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const___ptr64]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x110
lea r9, [rsp + 0x3b0]
lea r8, str.Internal_error
lea rdx, [rsp + 0x4d0]
lea rcx, str.DEFAULT
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor edx, edx
mov word [rsp + 0x190], dx
lea rdi, [rsp + 0x192]
xor eax, eax
mov ecx, 0x21e
rep stosb byte [rdi], al
mov dword [rsp + 0x28], 0x110
lea rax, [rsp + 0x190]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [rsp + 0x3b0]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [rsp + 0x710]
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x190]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rax, rcx
add rax, 1
cmp rdx, rax
jae 0x140014935
mov dword [rsp + 0x40], 0x7df926b
xor eax, eax
cmp eax, 1
je 0x140014922
call fcn.140004430
mov qword [rsp + 0x6a8], rax
cmp qword [rsp + 0x6a8], 0
je 0x140014922
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [rsp + 0x6a8]
mov rdi, qword [rdi]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0x7df926b
mov dword [rsp + 0x28], 0x7d
lea rax, [0x140028e58]
mov qword [rsp + 0x20], rax
lea r9, [0x140028ea0]
mov r8d, 0xf9
mov edx, 1
mov rcx, qword [rsp + 0x6a8]
call qword [rdi + 0x30]
nop
lea rcx, [rsp + 0x540]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
jmp 0x1400149d4
lea rdx, str.Internal_error.
lea rcx, [rsp + 0x190]
sub rcx, rdx
movzx eax, word [rdx]
cmp ax, word [rdx + rcx]
jne 0x14001495d
add rdx, 2
test ax, ax
jne 0x140014947
xor eax, eax
jmp 0x140014962
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x140014997
mov edx, dword [rsp + 0x710]
mov eax, dword [rsp + 0x6f8]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x190]
lea r8, str._s_tErrorCode:0x_x
mov rcx, qword [rsp + 0x708]
call qword [sym.imp.MSVCR90.dll_swprintf_s]
jmp 0x1400149bc
mov edx, dword [rsp + 0x710]
lea r9, [rsp + 0x190]
lea r8, [0x140028f4c]
mov rcx, qword [rsp + 0x708]
call qword [sym.imp.MSVCR90.dll_swprintf_s]
nop
lea rcx, [rsp + 0x540]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
xor eax, eax
test eax, eax
jne 0x140014331
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x6d8]
xor rcx, rsp
call fcn.1400239c0
add rsp, 0x6e0
pop rdi
ret