Function at 0x140187550
Capabilities:
Manipulate boot configuration
Read .ini file

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1830
call fcn.1401d5c30
sub rsp, rax
mov qword [rsp + 0x17e8], 0xfffffffffffffffe
mov rax, qword [0x1402a25c0]
xor rax, rsp
mov qword [rsp + 0x1828], rax
lea rax, [rsp + 0x1780]
mov qword [rsp + 0x1788], rax
lea rdx, [0x1403ad8a0]
add rdx, 0x228
lea r8, [0x140240e88]
mov rcx, qword [rsp + 0x1788]
call fcn.1400010b0
mov qword [rsp + 0x17f0], rax
mov rcx, qword [rsp + 0x17f0]
call fcn.1401b8070
mov r8d, 0x3e8
lea rdx, [rsp + 0x810]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dx, 0x2e
lea rcx, [rsp + 0x810]
call fcn.14000d0b0
mov r11, rax
xor eax, eax
mov word [r11], ax
lea rdx, [0x140240e98]
lea rcx, [rsp + 0x810]
call fcn.1400a9434
lea r11, [rsp + 0x810]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], 0x3e8
lea r9, [rsp + 0x40]
lea r8, [0x140240ea8]
lea rdx, [0x140240eb8]
lea rcx, [0x140240ed8]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [0x1403ad8a0]
add rdx, 0x228
lea r8, [0x140240ee8]
lea rcx, [rsp + 0x1798]
call fcn.1400010b0
mov qword [rsp + 0x17f8], rax
mov rcx, qword [rsp + 0x17f8]
call fcn.1400012c0
mov r9, rax
mov r8d, 1
lea rdx, [0x140240f00]
lea rcx, [0x140240f18]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [rsp + 0x1790], eax
lea rcx, [rsp + 0x1798]
call fcn.140001470
cmp dword [rsp + 0x1790], 0
je 0x1401877bd
lea rdx, [0x1403ad8a0]
add rdx, 0x228
lea r8, [0x140240f28]
lea rcx, [rsp + 0x17a0]
call fcn.1400010b0
mov qword [rsp + 0x1800], rax
mov rcx, qword [rsp + 0x1800]
call fcn.1400012c0
mov r9, rax
xor r8d, r8d
lea rdx, [0x140240f40]
lea rcx, [0x140240f58]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [rsp + 0x1770], eax
lea rcx, [rsp + 0x17a0]
call fcn.140001470
cmp dword [rsp + 0x1770], 0
jne 0x140187768
mov dword [rsp + 0x1770], 0xcbc
jmp 0x140187742
mov eax, dword [rsp + 0x1770]
add eax, 1
mov dword [rsp + 0x1770], eax
cmp dword [rsp + 0x1770], 0xcc1
jae 0x140187768
mov edx, 1
mov ecx, dword [rsp + 0x1770]
call fcn.1400d6d10
test eax, eax
jne 0x140187766
jmp 0x140187768
jmp 0x140187731
lea rdx, str.Start_iSCSI_Target_Service
xor ecx, ecx
call fcn.1400dc5d0
lea rcx, [0x1403ab660]
call fcn.140010f40
test eax, eax
jne 0x1401877bd
lea r8, [rsp + 0x40]
mov edx, dword [rsp + 0x1770]
lea rcx, [0x1403ab660]
call fcn.140136550
test eax, eax
jne 0x1401877bd
mov r8d, dword [rsp + 0x1770]
lea rdx, str.iSCSI_Target_Service_Startup_Error
lea rcx, [0x1403ad8a0]
call fcn.1401bc8b0
lea rdx, [0x1403ad8a0]
add rdx, 0x228
lea r8, [0x140240fe8]
lea rcx, [rsp + 0x17b0]
call fcn.1400010b0
mov qword [rsp + 0x1808], rax
mov rcx, qword [rsp + 0x1808]
call fcn.1400012c0
mov r9, rax
mov r8d, 1
lea rdx, [0x140241000]
lea rcx, [0x140241018]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [rsp + 0x17a8], eax
lea rcx, [rsp + 0x17b0]
call fcn.140001470
cmp dword [rsp + 0x17a8], 0
je 0x140187866
lea rdx, str.Start_TFTP_Service
xor ecx, ecx
call fcn.1400dc5d0
lea rcx, [0x1403acb30]
call fcn.140010f40
test eax, eax
jne 0x140187866
mov r9d, 1
lea r8, [rsp + 0x40]
xor edx, edx
lea rcx, [0x1403acb30]
call fcn.1400e3600
lea rdx, [0x1403ad8a0]
add rdx, 0x228
lea r8, [0x140241050]
lea rcx, [rsp + 0x17c0]
call fcn.1400010b0
mov qword [rsp + 0x1810], rax
mov rcx, qword [rsp + 0x1810]
call fcn.1400012c0
mov r9, rax
mov r8d, 1
lea rdx, [0x140241068]
lea rcx, [0x140241080]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [rsp + 0x17b8], eax
lea rcx, [rsp + 0x17c0]
call fcn.140001470
cmp dword [rsp + 0x17b8], 0
je 0x14018790c
lea rdx, str.Start_DHCP_Service
xor ecx, ecx
call fcn.1400dc5d0
lea rcx, [0x1403abc90]
call fcn.140010f40
test eax, eax
jne 0x14018790c
lea r8, [rsp + 0x40]
mov edx, 0x43
lea rcx, [0x1403abc90]
call fcn.1401104c0
lea rdx, [0x1403ad8a0]
add rdx, 0x228
lea r8, [0x1402410b8]
lea rcx, [rsp + 0x17d0]
call fcn.1400010b0
mov qword [rsp + 0x1818], rax
mov rcx, qword [rsp + 0x1818]
call fcn.1400012c0
mov r9, rax
mov r8d, 1
lea rdx, [0x1402410d0]
lea rcx, [0x1402410f0]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [rsp + 0x17c8], eax
lea rcx, [rsp + 0x17d0]
call fcn.140001470
cmp dword [rsp + 0x17c8], 0
je 0x140187a44
lea rdx, str.Start_Proxy_DHCP_Service
xor ecx, ecx
call fcn.1400dc5d0
lea rcx, [0x1403ac010]
call fcn.140010f40
test eax, eax
jne 0x140187a44
lea rdx, [0x1403ad8a0]
add rdx, 0x228
lea r8, [0x140241138]
lea rcx, [rsp + 0x17d8]
call fcn.1400010b0
mov qword [rsp + 0x1820], rax
mov rcx, qword [rsp + 0x1820]
call fcn.1400012c0
mov r9, rax
mov r8d, 0xfab
lea rdx, [0x140241150]
lea rcx, [0x140241170]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [rsp + 0x1774], eax
lea rcx, [rsp + 0x17d8]
call fcn.140001470
cmp dword [rsp + 0x1774], 0x43
jne 0x140187a2e
lea r8, [rsp + 0x40]
mov edx, 0x43
lea rcx, [0x1403abc90]
call fcn.1401104c0
jmp 0x140187a44
lea r8, [rsp + 0x40]
mov edx, 0xfab
lea rcx, [0x1403ac010]
call fcn.1401104c0
lea rdx, str.Start_Client_Communication_Service
xor ecx, ecx
call fcn.1400dc5d0
lea rcx, [0x1403ac600]
call fcn.140010f40
test eax, eax
jne 0x140187a98
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, 0x3e8
lea rcx, [0x1403ac600]
call fcn.1401c3560
test eax, eax
jne 0x140187a98
mov r8d, 0x3e8
lea rdx, str.Client_Communication_Service_Startup_Error
lea rcx, [0x1403ad8a0]
call fcn.1401bc8b0
xor ecx, ecx
call fcn.1401d5280
lea rcx, [rsp + 0x1430]
call fcn.14000fb00
nop
mov dword [rsp + 0x15c8], 1
lea rcx, [rsp + 0x1430]
call fcn.1401d0bc0
lea rcx, [rsp + 0x1040]
call fcn.14000f930
nop
lea rcx, [rsp + 0x13d0]
call fcn.140007bb0
nop
lea rdx, [rsp + 0x13d0]
lea rcx, [rsp + 0x1040]
call fcn.1401b8110
mov dword [rsp + 0x1778], 0
jmp 0x140187b14
mov eax, dword [rsp + 0x1778]
add eax, 1
mov dword [rsp + 0x1778], eax
mov ebx, dword [rsp + 0x1778]
lea rcx, [rsp + 0x13d0]
call fcn.140007c30
cmp rbx, rax
jae 0x140187ce2
mov edx, dword [rsp + 0x1778]
lea rcx, [rsp + 0x13d0]
call fcn.140007c60
mov rcx, rax
add rcx, 0x1a8
lea rdx, [0x140241228]
call fcn.140006050
test eax, eax
je 0x140187b91
mov edx, dword [rsp + 0x1778]
lea rcx, [rsp + 0x13d0]
call fcn.140007c60
mov rcx, rax
add rcx, 0x1a8
lea rdx, [0x140241238]
call fcn.140006050
test eax, eax
jne 0x140187c33
mov edx, dword [rsp + 0x1778]
lea rcx, [rsp + 0x13d0]
call fcn.140007c60
mov rcx, rax
add rcx, 0x1b8
call fcn.1400012c0
mov rcx, rax
call fcn.1400a947c
mov esi, eax
lea rcx, [rsp + 0x1658]
xor edx, edx
call fcn.140006d70
movzx edi, ax
mov edx, dword [rsp + 0x1778]
lea rcx, [rsp + 0x13d0]
call fcn.140007c60
mov rcx, rax
add rcx, 0x1b0
call fcn.1400012c0
mov rcx, rax
call fcn.1400a947c
mov ebx, eax
mov edx, dword [rsp + 0x1778]
lea rcx, [rsp + 0x13d0]
call fcn.140007c60
mov rcx, rax
add rcx, 0x1a0
xor edx, edx
call fcn.140006d70
mov r9d, esi
movzx r8d, di
mov edx, ebx
movzx ecx, ax
call fcn.1401d5710
mov edx, dword [rsp + 0x1778]
lea rcx, [rsp + 0x13d0]
call fcn.140007c60
mov rcx, rax
add rcx, 0x1a8
lea rdx, [0x140241248]
call fcn.140006050
test eax, eax
jne 0x140187cdd
lea rcx, [rsp + 0x1660]
call fcn.1400012c0
mov rcx, rax
call fcn.1400a947c
mov edi, eax
mov edx, dword [rsp + 0x1778]
lea rcx, [rsp + 0x13d0]
call fcn.140007c60
mov rcx, rax
add rcx, 0x1b0
call fcn.1400012c0
mov rcx, rax
call fcn.1400a947c
mov ebx, eax
mov edx, dword [rsp + 0x1778]
lea rcx, [rsp + 0x13d0]
call fcn.140007c60
mov rcx, rax
add rcx, 0x1a0
xor edx, edx
call fcn.140006d70
mov r9d, edi
mov r8d, 1
mov edx, ebx
movzx ecx, ax
call fcn.1401d53f0
jmp 0x140187b03
lea rcx, [rsp + 0x1380]
call fcn.1400774a0
nop
lea rcx, [rsp + 0x1400]
call fcn.140081e00
nop
lea rcx, [rsp + 0x13a8]
call fcn.140081e00
nop
lea rcx, [rsp + 0x1010]
call fcn.140081e00
nop
lea r9, [rsp + 0x1010]
lea r8, [rsp + 0x13a8]
lea rdx, [rsp + 0x1400]
lea rcx, [rsp + 0x1380]
call fcn.140186310
mov dword [rsp + 0x17e0], 1
lea rcx, [rsp + 0x1010]
call fcn.140081e20
nop
lea rcx, [rsp + 0x13a8]
call fcn.140081e20
nop
lea rcx, [rsp + 0x1400]
call fcn.140081e20
nop
lea rcx, [rsp + 0x1380]
call fcn.140077764
nop
lea rcx, [rsp + 0x13d0]
call fcn.140007c00
nop
lea rcx, [rsp + 0x1040]
call fcn.140005d50
nop
lea rcx, [rsp + 0x1430]
call fcn.140005d50
mov eax, dword [rsp + 0x17e0]
mov rcx, qword [rsp + 0x1828]
xor rcx, rsp
call fcn.1400a8040
add rsp, 0x1830
pop rdi
pop rsi
pop rbx
ret