Function at 0x14013f650
Capabilities:
Check if file exists
Get disk information
Manipulate boot configuration
Read .ini file
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rdi
mov eax, 0x19e8
call fcn.1401da720
sub rsp, rax
mov qword [rsp + 0x1940], 0xfffffffffffffffe
mov rax, qword [0x1402aa5c0]
xor rax, rsp
mov qword [rsp + 0x19d8], rax
mov dword [rsp + 0x48], 0
xor ecx, ecx
call fcn.140139810
mov ecx, eax
call fcn.1400ad568
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rsp + 0x44], eax
mov byte [rsp + 0x864], 0x41
jmp 0x14013f6c6
movzx eax, byte [rsp + 0x864]
add al, 1
mov byte [rsp + 0x864], al
movsx eax, byte [rsp + 0x864]
cmp eax, 0x5a
jg 0x14013f9de
movsx ecx, byte [rsp + 0x864]
sub ecx, 0x41
mov eax, 1
shl eax, cl
mov ecx, eax
mov eax, dword [rsp + 0x44]
and eax, ecx
test eax, eax
jne 0x14013f6f7
jmp 0x14013f6b5
lea rcx, [rsp + 0x1098]
call fcn.140002de0
nop
movsx r8d, byte [rsp + 0x864]
lea rdx, [0x140238618]
lea rcx, [rsp + 0x1098]
call fcn.140002c70
lea r8, [0x140238620]
lea rdx, [rsp + 0x1098]
lea rcx, [rsp + 0x18c8]
call fcn.1400010b0
mov qword [rsp + 0x1948], rax
mov rcx, qword [rsp + 0x1948]
call fcn.14000f8f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x14013f76e
mov dword [rsp + 0x1950], 1
jmp 0x14013f779
mov dword [rsp + 0x1950], 0
movzx eax, byte [rsp + 0x1950]
mov byte [rsp + 0x18c0], al
lea rcx, [rsp + 0x18c8]
call fcn.140001490
movzx edx, byte [rsp + 0x18c0]
test edx, edx
je 0x14013f7b3
lea rcx, [rsp + 0x1098]
call fcn.140001490
jmp 0x14013f6b5
lea r8, [0x140238628]
lea rdx, [rsp + 0x1098]
lea rcx, [rsp + 0x18d8]
call fcn.1400010b0
mov qword [rsp + 0x1958], rax
mov rcx, qword [rsp + 0x1958]
call fcn.14000f8f0
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14013f7fe
mov dword [rsp + 0x1960], 1
jmp 0x14013f809
mov dword [rsp + 0x1960], 0
movzx eax, byte [rsp + 0x1960]
mov byte [rsp + 0x18d0], al
lea rcx, [rsp + 0x18d8]
call fcn.140001490
movzx edx, byte [rsp + 0x18d0]
test edx, edx
je 0x14013f843
lea rcx, [rsp + 0x1098]
call fcn.140001490
jmp 0x14013f6b5
lea r8, [0x140238630]
lea rdx, [rsp + 0x1098]
lea rcx, [rsp + 0x18e8]
call fcn.1400010b0
mov qword [rsp + 0x1968], rax
mov rcx, qword [rsp + 0x1968]
call fcn.14000f8f0
mov rcx, rax
mov dword [rsp + 0x38], 0x400
lea rax, [rsp + 0x870]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x10a0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1090]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1080]
mov r8d, 0x400
lea rdx, [rsp + 0x10b0]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x14013f8d3
mov dword [rsp + 0x1970], 1
jmp 0x14013f8de
mov dword [rsp + 0x1970], 0
movzx eax, byte [rsp + 0x1970]
mov byte [rsp + 0x18e0], al
lea rcx, [rsp + 0x18e8]
call fcn.140001490
movzx edx, byte [rsp + 0x18e0]
test edx, edx
je 0x14013f918
lea rcx, [rsp + 0x1098]
call fcn.140001490
jmp 0x14013f6b5
lea rcx, [rsp + 0x1088]
call fcn.140002de0
nop
mov r8d, dword [rsp + 0x1080]
lea rdx, [0x140238638]
lea rcx, [rsp + 0x1088]
call fcn.140002c70
mov rdx, qword [rsp + 0x1a00]
add rdx, 0x228
lea r8, [0x140238648]
lea rcx, [rsp + 0x18f0]
call fcn.1400010b0
mov qword [rsp + 0x1978], rax
mov rcx, qword [rsp + 0x1978]
call fcn.14000f8f0
mov rbx, rax
lea rcx, [rsp + 0x1088]
call fcn.14000f8f0
mov rdi, rax
lea rcx, [rsp + 0x1098]
call fcn.14000f8f0
mov r9, rbx
mov r8, rdi
mov rdx, rax
lea rcx, [0x140238660]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rcx, [rsp + 0x18f0]
call fcn.140001490
nop
lea rcx, [rsp + 0x1088]
call fcn.140001490
nop
lea rcx, [rsp + 0x1098]
call fcn.140001490
jmp 0x14013f6b5
xor eax, eax
mov word [rsp + 0x60], ax
lea rdi, [rsp + 0x62]
xor eax, eax
mov ecx, 0x7fe
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0x1a00]
add rdx, 0x228
lea r8, [0x140238688]
lea rcx, [rsp + 0x18f8]
call fcn.1400010b0
mov qword [rsp + 0x1980], rax
mov rcx, qword [rsp + 0x1980]
call fcn.14000f8f0
mov r9, rax
mov r8d, 1
lea rdx, [0x1402386a0]
lea rcx, [0x1402386c0]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, eax
mov rax, qword [rsp + 0x1a00]
mov dword [rax + 0x4c4], edx
lea rcx, [rsp + 0x18f8]
call fcn.140001490
mov rdx, qword [rsp + 0x1a00]
add rdx, 0x228
lea r8, [0x1402386d0]
lea rcx, [rsp + 0x1900]
call fcn.1400010b0
mov qword [rsp + 0x1988], rax
mov rcx, qword [rsp + 0x1988]
call fcn.14000f8f0
mov r9, rax
mov r8d, 1
lea rdx, str.DiskWriteCache
lea rcx, [0x140238708]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, eax
mov rax, qword [rsp + 0x1a00]
mov dword [rax + 0x234], edx
lea rcx, [rsp + 0x1900]
call fcn.140001490
mov rdx, qword [rsp + 0x1a00]
add rdx, 0x228
lea r8, [0x140238718]
lea rcx, [rsp + 0x1908]
call fcn.1400010b0
mov qword [rsp + 0x1990], rax
mov rcx, qword [rsp + 0x1990]
call fcn.14000f8f0
mov r9, rax
mov r8d, 1
lea rdx, str.SupportCDROM
lea rcx, [0x140238750]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, eax
mov rax, qword [rsp + 0x1a00]
mov dword [rax + 0x470], edx
lea rcx, [rsp + 0x1908]
call fcn.140001490
mov rdx, qword [rsp + 0x1a00]
add rdx, 0x228
lea r8, [0x140238760]
lea rcx, [rsp + 0x1910]
call fcn.1400010b0
mov qword [rsp + 0x1998], rax
mov rcx, qword [rsp + 0x1998]
call fcn.14000f8f0
mov r9, rax
mov r8d, 5
lea rdx, str.MaxConnections
lea rcx, [0x140238798]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, eax
mov rax, qword [rsp + 0x1a00]
mov dword [rax + 0x230], edx
lea rcx, [rsp + 0x1910]
call fcn.140001490
mov rdx, qword [rsp + 0x1a00]
add rdx, 0x228
lea r8, [0x1402387a8]
lea rcx, [rsp + 0x1918]
call fcn.1400010b0
mov qword [rsp + 0x19a0], rax
mov rcx, qword [rsp + 0x19a0]
call fcn.14000f8f0
mov r9, rax
xor r8d, r8d
lea rdx, str.BindARP
lea rcx, [0x1402387d0]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, eax
mov rax, qword [rsp + 0x1a00]
mov dword [rax + 0x474], edx
lea rcx, [rsp + 0x1918]
call fcn.140001490
mov rdx, qword [rsp + 0x1a00]
add rdx, 0x228
lea r8, [0x1402387e0]
lea rcx, [rsp + 0x1920]
call fcn.1400010b0
mov qword [rsp + 0x19a8], rax
mov rcx, qword [rsp + 0x19a8]
call fcn.14000f8f0
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x400
lea r9, [rsp + 0x60]
lea r8, [0x1402387f8]
lea rdx, str.iSCSIVendor
lea rcx, [0x140238820]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rsp + 0x1920]
call fcn.140001490
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x1928]
call fcn.140002e10
mov qword [rsp + 0x19b0], rax
mov rax, qword [rsp + 0x19b0]
mov qword [rsp + 0x19b8], rax
mov rcx, qword [rsp + 0x19b8]
call fcn.140002ec0
mov rcx, qword [rsp + 0x1a00]
add rcx, 0x338
mov rdx, rax
call fcn.1400ab970
nop
lea rcx, [rsp + 0x1928]
call fcn.140002ea0
mov rdx, qword [rsp + 0x1a00]
add rdx, 0x228
lea r8, [0x140238830]
lea rcx, [rsp + 0x1930]
call fcn.1400010b0
mov qword [rsp + 0x19c0], rax
mov rcx, qword [rsp + 0x19c0]
call fcn.14000f8f0
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x400
lea r9, [rsp + 0x60]
lea r8, str.CCBoot_iSCSI
lea rdx, str.iSCSIProduct
lea rcx, [0x140238888]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rsp + 0x1930]
call fcn.140001490
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x1938]
call fcn.140002e10
mov qword [rsp + 0x19c8], rax
mov rax, qword [rsp + 0x19c8]
mov qword [rsp + 0x19d0], rax
mov rcx, qword [rsp + 0x19d0]
call fcn.140002ec0
mov rcx, qword [rsp + 0x1a00]
add rcx, 0x238
mov rdx, rax
call fcn.1400ab970
nop
lea rcx, [rsp + 0x1938]
call fcn.140002ea0
mov dword [rsp + 0x48], 0
jmp 0x14013fddb
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0x1a
jge 0x14013fdf9
movsxd rcx, dword [rsp + 0x48]
mov rax, qword [rsp + 0x1a00]
mov byte [rax + rcx + 0x47c], 0
jmp 0x14013fdd0
xor r9d, r9d
mov r8, qword [rsp + 0x1a10]
mov edx, dword [rsp + 0x1a08]
mov rcx, qword [rsp + 0x1a00]
call fcn.1400e29c0
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x860], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x860]
mov r8d, 1
mov edx, 6
mov rcx, qword [rsp + 0x1a00]
mov rcx, qword [rcx + 0x208]
call qword [sym.imp.WSOCK32.dll_setsockopt]
mov rdx, qword [rsp + 0x1a00]
mov qword [rdx + 0x498], 0
mov rax, qword [rsp + 0x1a00]
mov qword [rax + 0x4a0], 0
mov ecx, 6
call fcn.1401398f0
mov edx, eax
mov rax, qword [rsp + 0x1a00]
mov dword [rax + 0x4bc], edx
mov ecx, 6
call fcn.1401398f0
mov edx, eax
mov rax, qword [rsp + 0x1a00]
mov dword [rax + 0x4cc], edx
mov edx, 0x67
mov rcx, qword [rsp + 0x1a00]
call fcn.1400e2940
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x19d8]
xor rcx, rsp
call fcn.1400a8790
add rsp, 0x19e8
pop rdi
pop rbx
ret