Function at 0x1400547a0
Capabilities:
Read .ini file

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x358]
sub rsp, 0x430
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1403c2c80]
xor rax, rsp
mov qword [rbp + 0x320], rax
mov r15, rcx
lea rcx, str.IS_SystemProperties::loadCustomizedFailureCode_start_n
call fcn.1400ba060
lea rdx, [rbp + 0x78]
mov rcx, r15
call fcn.140047900
cmp qword [rax + 0x18], 0x10
jb 0x140054805
mov rax, qword [rax]
mov r9, rax
xor r8d, r8d
lea rdx, str.CustomizedFailureCode
lea rcx, str.CodeForErrorState
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
setne al
mov byte [r15 + 0xcdc], al
cmp qword [rbp + 0x90], 0x10
jb 0x14005483e
mov rcx, qword [rbp + 0x78]
call fcn.140290ed8
mov qword [rbp - 0x68], shutdown
xor esi, esi
mov qword [rbp - 0x70], rsi
mov byte [rbp - 0x80], sil
lea rdx, [r15 + 0x168]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x80]
call fcn.1400082f0
nop
mov qword [rbp + 0x68], shutdown
mov qword [rbp + 0x60], rsi
mov byte [rbp + 0x50], sil
lea r8d, [rsi + 0x11]
lea rdx, str.CodeForErrorState
lea rcx, [rbp + 0x50]
call fcn.140008ba0
nop
lea rdx, [rbp + 0xa0]
mov rcx, r15
call fcn.140047900
nop
lea rcx, [r15 + 0xce0]
call fcn.14010fc00
mov rdi, qword [rbp - 0x70]
test rdi, rdi
je 0x140054f61
lea rbx, [rbp - 0x80]
mov rdx, qword [rbp - 0x80]
mov rax, qword [rbp - 0x68]
cmp rax, 0x10
cmovae rbx, rdx
add rbx, rdi
lea rdi, [rbp - 0x80]
cmp rax, 0x10
cmovae rdi, rdx
cmp rdi, rbx
jae 0x140054f61
movsx edx, byte [rdi]
mov r8d, 1
lea rcx, [0x1402c9ea0]
call qword [sym.imp.MSVCR100.dll_memchr]
test rax, rax
jne 0x140054902
inc rdi
jmp 0x1400548d9
lea rax, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rax, qword [rbp - 0x80]
sub rdi, rax
cmp rdi, 0xffffffffffffffff
je 0x140054f61
mov qword [rbp + 0xe8], shutdown
mov qword [rbp + 0xe0], rsi
mov byte [rbp + 0xd0], 0
mov qword [rbp + 0x108], rsi
mov ecx, 0x38
call sub.mfc100.dll_Ordinal_1272
mov r13, rax
test rax, rax
je 0x140054f2e
mov qword [rbp + 0x100], rax
mov qword [rax], rax
mov qword [rax + 8], rax
mov r8, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x68]
test r8, r8
je 0x140054a52
lea rbx, [rbp - 0x80]
cmp rdx, 0x10
cmovae rbx, rcx
add rbx, r8
lea rdi, [rbp - 0x80]
cmp rdx, 0x10
cmovae rdi, rcx
cmp rdi, rbx
jae 0x1400549cf
nop word [rax + rax]
movsx edx, byte [rdi]
mov r8d, 1
lea rcx, [0x1402cf5f0]
call qword [sym.imp.MSVCR100.dll_memchr]
test rax, rax
jne 0x1400549c3
inc rdi
cmp rdi, rbx
jb 0x1400549a0
mov rdx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x80]
test r8, r8
je 0x140054a52
lea rbx, [rbp - 0x80]
cmp rdx, 0x10
cmovae rbx, rcx
add rbx, r8
lea rdi, [rbp - 0x80]
cmp rdx, 0x10
cmovae rdi, rcx
cmp rdi, rbx
jae 0x140054a52
nop word [rax + rax]
movsx edx, byte [rdi]
mov r8d, 1
lea rcx, [0x1402cf5ec]
call qword [sym.imp.MSVCR100.dll_memchr]
test rax, rax
jne 0x140054a31
inc rdi
cmp rdi, rbx
jb 0x140054a00
mov rdx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x80]
jmp 0x140054a52
lea rax, [rbp - 0x80]
mov rcx, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
cmovae rax, rcx
sub rdi, rax
mov r8, qword [rbp - 0x70]
or rsi, 0xffffffffffffffff
jmp 0x140054a59
or rsi, 0xffffffffffffffff
mov rdi, rsi
test r8, r8
je 0x140054aba
lea rax, [rbp - 0x80]
cmp rdx, 0x10
cmovae rax, rcx
lea rbx, [r8 + rax]
lea r12, [rbp - 0x80]
cmovae r12, rcx
cmp r12, rbx
jae 0x140054aba
nop dword [rax + rax]
movsx edx, byte [r12]
mov r8d, 1
lea rcx, [0x1402c9ea0]
call qword [sym.imp.MSVCR100.dll_memchr]
test rax, rax
jne 0x140054aa7
inc r12
cmp r12, rbx
jb 0x140054a80
jmp 0x140054aba
lea rax, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rax, qword [rbp - 0x80]
sub r12, rax
jmp 0x140054abd
mov r12, rsi
mov eax, r12d
sub eax, edi
dec eax
movsxd r9, eax
lea eax, [rdi + 1]
movsxd r8, eax
lea rdx, [rbp + 0x78]
lea rcx, [rbp - 0x80]
call fcn.14000cc30
nop
mov r8, rax
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.1400544d0
nop
cmp qword [rbp + 0x90], 0x10
jb 0x140054aff
mov rcx, qword [rbp + 0x78]
call fcn.140290ed8
mov qword [rbp + 0x90], shutdown
xor edi, edi
mov qword [rbp + 0x88], rdi
mov byte [rbp + 0x78], dil
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsi]
cmp rbx, rsi
je 0x140054d39
nop dword [rax + rax]
mov qword [rbp - 0x40], shutdown
mov qword [rbp - 0x48], rdi
mov byte [rbp - 0x58], 0
lea rdx, [rbx + 0x10]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x58]
call fcn.1400082f0
lea rax, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 0x10
cmovae rax, qword [rbp + 0xa0]
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rdx, qword [rbp - 0x58]
lea rcx, [rbp + 0x50]
cmp qword [rbp + 0x68], 0x10
cmovae rcx, qword [rbp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x200
lea r9, [rbp + 0x120]
lea r8, [0x1402cba08]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov qword [rbp - 0x18], shutdown
mov qword [rbp - 0x20], rdi
mov byte [rbp - 0x30], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x120]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x120]
lea rcx, [rbp - 0x30]
call fcn.140008ba0
nop
mov r8d, 0xf
mov qword [rbp + 0x18], r8
xor eax, eax
mov qword [rbp + 0x10], rax
mov byte [rbp], al
mov rdi, qword [rbp - 0x48]
cmp rdi, 0xffffffffffffffff
mov rcx, 0xffffffffffffffff
cmova rdi, rcx
cmp rdi, 0xfffffffffffffffe
ja 0x140054e8f
cmp rdi, r8
jbe 0x140054c29
xor r8d, r8d
mov rdx, rdi
lea rcx, [rbp]
call fcn.140008f30
mov r8, qword [rbp + 0x18]
jmp 0x140054c35
test rdi, rdi
jne 0x140054c38
mov qword [rbp + 0x10], rax
mov byte [rbp], al
test rdi, rdi
setne al
test al, al
je 0x140054c78
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rdx, qword [rbp - 0x58]
lea rcx, [rbp]
cmp r8, 0x10
cmovae rcx, qword [rbp]
mov r8, rdi
call sub.MSVCR100.dll_memcpy
mov qword [rbp + 0x10], rdi
lea rax, [rbp]
cmp qword [rbp + 0x18], 0x10
cmovae rax, qword [rbp]
mov byte [rax + rdi], 0
mov qword [rbp + 0x40], shutdown
xor edi, edi
mov qword [rbp + 0x38], rdi
mov byte [rbp + 0x28], dil
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x28]
call fcn.1400082f0
nop
lea rdx, [rbp]
lea rcx, [r15 + 0xce0]
call fcn.140052de0
mov r8, rax
xor r9d, r9d
lea rdx, [rsp + 0x70]
lea rcx, [r15 + 0xce0]
call fcn.140049870
nop
cmp qword [rbp + 0x40], 0x10
jb 0x140054cd7
mov rcx, qword [rbp + 0x28]
call fcn.140290ed8
mov qword [rbp + 0x40], shutdown
mov qword [rbp + 0x38], rdi
mov byte [rbp + 0x28], 0
cmp qword [rbp + 0x18], 0x10
jb 0x140054cf8
mov rcx, qword [rbp]
call fcn.140290ed8
nop
cmp qword [rbp - 0x18], 0x10
jb 0x140054d08
mov rcx, qword [rbp - 0x30]
call fcn.140290ed8
mov qword [rbp - 0x18], shutdown
mov qword [rbp - 0x20], rdi
mov byte [rbp - 0x30], 0
cmp qword [rbp - 0x40], 0x10
jb 0x140054d28
mov rcx, qword [rbp - 0x58]
call fcn.140290ed8
mov rbx, qword [rbx]
cmp rbx, rsi
jne 0x140054b30
mov rsi, qword [rsp + 0x30]
movsxd rcx, r12d
mov r9, qword [rbp - 0x70]
lea rax, [r9 - 1]
cmp rcx, rax
je 0x140054e9d
sub r9, rcx
dec r9
lea eax, [r12 + 1]
movsxd r8, eax
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x80]
call fcn.14000cc30
mov rdi, rax
lea rax, [rbp - 0x80]
cmp rax, rdi
je 0x140054dde
cmp qword [rbp - 0x68], 0x10
jb 0x140054d84
mov rcx, qword [rbp - 0x80]
call fcn.140290ed8
mov qword [rbp - 0x68], shutdown
xor esi, esi
mov qword [rbp - 0x70], rsi
mov byte [rbp - 0x80], sil
cmp qword [rdi + 0x18], 0x10
jae 0x140054db3
mov r8, qword [rdi + 0x10]
inc r8
mov rdx, rdi
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCR100.dll_memmove]
jmp 0x140054dbd
mov rax, qword [rdi]
mov qword [rbp - 0x80], rax
mov qword [rdi], rsi
mov rax, qword [rdi + 0x10]
mov qword [rbp - 0x70], rax
mov rax, qword [rdi + 0x18]
mov qword [rbp - 0x68], rax
mov qword [rdi + 0x18], shutdown
mov qword [rdi + 0x10], rsi
mov byte [rdi], sil
jmp 0x140054de0
xor esi, esi
cmp qword [rbp - 0x18], 0x10
jb 0x140054df1
mov rcx, qword [rbp - 0x30]
call fcn.140290ed8
nop
mov rax, qword [rsp + 0x30]
mov rbx, qword [rax]
mov qword [rax], rax
mov rax, qword [rsp + 0x30]
mov qword [rax + 8], rax
mov qword [rsp + 0x38], rsi
mov rcx, qword [rsp + 0x30]
cmp rbx, rcx
je 0x140054e45
nop word [rax + rax]
mov rdi, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140048710
mov rcx, rbx
call fcn.140290ed8
mov rbx, rdi
mov rcx, qword [rsp + 0x30]
cmp rdi, rcx
jne 0x140054e20
call fcn.140290ed8
nop
mov rbx, qword [r13]
mov qword [r13], r13
mov qword [r13 + 8], r13
cmp rbx, r13
je 0x140054e82
nop dword [rax]
mov rdi, qword [rbx]
mov rdx, rbx
lea rcx, [rbp + 0x110]
call fcn.140048710
mov rcx, rbx
call fcn.140290ed8
mov rbx, rdi
cmp rdi, r13
jne 0x140054e60
mov rcx, r13
call fcn.140290ed8
jmp 0x1400548a9
lea rcx, str.string_too_long
call qword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
nop
mov rbx, qword [rsi]
mov qword [rsi], rsi
mov rax, qword [rsp + 0x30]
mov qword [rax + 8], rax
mov qword [rsp + 0x38], rdi
mov rcx, qword [rsp + 0x30]
cmp rbx, rcx
je 0x140054ee5
nop dword [rax + rax]
mov rdi, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140048710
mov rcx, rbx
call fcn.140290ed8
mov rbx, rdi
mov rcx, qword [rsp + 0x30]
cmp rdi, rcx
jne 0x140054ec0
call fcn.140290ed8
nop
mov rbx, qword [r13]
mov qword [r13], r13
mov qword [r13 + 8], r13
cmp rbx, r13
je 0x140054f22
nop dword [rax]
mov rdi, qword [rbx]
mov rdx, rbx
lea rcx, [rbp + 0x110]
call fcn.140048710
mov rcx, rbx
call fcn.140290ed8
mov rbx, rdi
cmp rdi, r13
jne 0x140054f00
mov rcx, r13
call fcn.140290ed8
xor esi, esi
jmp 0x140054f61
mov qword [rsp + 0x48], rsi
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCR100.dll_public:_void___cdecl_std::exception::constructor_char_const__const___ptr64_const____ptr64____ptr64]
lea rdx, vtable.std::bad_alloc.0
mov qword [rsp + 0x58], rdx
lea rdx, [0x1403abcc0]
lea rcx, [rsp + 0x58]
call sub.MSVCR100.dll__CxxThrowException
nop
lea rcx, str.IS_SystemProperties::loadCustomizedFailureCode_end_n
call fcn.1400ba060
nop
cmp qword [rbp + 0xb8], 0x10
jb 0x140054f84
mov rcx, qword [rbp + 0xa0]
call fcn.140290ed8
mov qword [rbp + 0xb8], shutdown
mov qword [rbp + 0xb0], rsi
mov byte [rbp + 0xa0], 0
cmp qword [rbp + 0x68], 0x10
jb 0x140054fad
mov rcx, qword [rbp + 0x50]
call fcn.140290ed8
mov qword [rbp + 0x68], shutdown
mov qword [rbp + 0x60], rsi
mov byte [rbp + 0x50], 0
cmp qword [rbp - 0x68], 0x10
jb 0x140054fcd
mov rcx, qword [rbp - 0x80]
call fcn.140290ed8
mov rcx, qword [rbp + 0x320]
xor rcx, rsp
call fcn.1402912a0
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret