Function at 0x1401414e0
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.1401e9500
sub rsp, rax
mov qword [rsp + 0x1940], 0xfffffffffffffffe
mov rax, qword [0x1402bd5c0]
xor rax, rsp
mov qword [rsp + 0x19d8], rax
mov dword [rsp + 0x48], 0
xor ecx, ecx
call fcn.14013b6a0
mov ecx, eax
call fcn.1400acb98
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rsp + 0x44], eax
mov byte [rsp + 0x864], 0x41
jmp 0x140141556
movzx eax, byte [rsp + 0x864]
add al, 1
mov byte [rsp + 0x864], al
movsx eax, byte [rsp + 0x864]
cmp eax, 0x5a
jg 0x14014186e
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 0x140141587
jmp 0x140141545
lea rcx, [rsp + 0x1098]
call fcn.140002d10
nop
movsx r8d, byte [rsp + 0x864]
lea rdx, [0x140249118]
lea rcx, [rsp + 0x1098]
call fcn.140002ba0
lea r8, [0x140249120]
lea rdx, [rsp + 0x1098]
lea rcx, [rsp + 0x18c8]
call fcn.1400010b0
mov qword [rsp + 0x1948], rax
mov rcx, qword [rsp + 0x1948]
call fcn.140050200
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x1401415fe
mov dword [rsp + 0x1950], 1
jmp 0x140141609
mov dword [rsp + 0x1950], 0
movzx eax, byte [rsp + 0x1950]
mov byte [rsp + 0x18c0], al
lea rcx, [rsp + 0x18c8]
call fcn.140007060
movzx edx, byte [rsp + 0x18c0]
test edx, edx
je 0x140141643
lea rcx, [rsp + 0x1098]
call fcn.140007060
jmp 0x140141545
lea r8, [0x140249128]
lea rdx, [rsp + 0x1098]
lea rcx, [rsp + 0x18d8]
call fcn.1400010b0
mov qword [rsp + 0x1958], rax
mov rcx, qword [rsp + 0x1958]
call fcn.140050200
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14014168e
mov dword [rsp + 0x1960], 1
jmp 0x140141699
mov dword [rsp + 0x1960], 0
movzx eax, byte [rsp + 0x1960]
mov byte [rsp + 0x18d0], al
lea rcx, [rsp + 0x18d8]
call fcn.140007060
movzx edx, byte [rsp + 0x18d0]
test edx, edx
je 0x1401416d3
lea rcx, [rsp + 0x1098]
call fcn.140007060
jmp 0x140141545
lea r8, [0x140249130]
lea rdx, [rsp + 0x1098]
lea rcx, [rsp + 0x18e8]
call fcn.1400010b0
mov qword [rsp + 0x1968], rax
mov rcx, qword [rsp + 0x1968]
call fcn.140050200
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 0x140141763
mov dword [rsp + 0x1970], 1
jmp 0x14014176e
mov dword [rsp + 0x1970], 0
movzx eax, byte [rsp + 0x1970]
mov byte [rsp + 0x18e0], al
lea rcx, [rsp + 0x18e8]
call fcn.140007060
movzx edx, byte [rsp + 0x18e0]
test edx, edx
je 0x1401417a8
lea rcx, [rsp + 0x1098]
call fcn.140007060
jmp 0x140141545
lea rcx, [rsp + 0x1088]
call fcn.140002d10
nop
mov r8d, dword [rsp + 0x1080]
lea rdx, [0x140249138]
lea rcx, [rsp + 0x1088]
call fcn.140002ba0
mov rdx, qword [rsp + 0x1a00]
add rdx, 0x228
lea r8, [0x140249148]
lea rcx, [rsp + 0x18f0]
call fcn.1400010b0
mov qword [rsp + 0x1978], rax
mov rcx, qword [rsp + 0x1978]
call fcn.140050200
mov rbx, rax
lea rcx, [rsp + 0x1088]
call fcn.140050200
mov rdi, rax
lea rcx, [rsp + 0x1098]
call fcn.140050200
mov r9, rbx
mov r8, rdi
mov rdx, rax
lea rcx, [0x140249160]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rcx, [rsp + 0x18f0]
call fcn.140007060
nop
lea rcx, [rsp + 0x1088]
call fcn.140007060
nop
lea rcx, [rsp + 0x1098]
call fcn.140007060
jmp 0x140141545
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, [0x140249188]
lea rcx, [rsp + 0x18f8]
call fcn.1400010b0
mov qword [rsp + 0x1980], rax
mov rcx, qword [rsp + 0x1980]
call fcn.140050200
mov r9, rax
mov r8d, 1
lea rdx, [0x1402491a0]
lea rcx, [0x1402491c0]
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.140007060
mov rdx, qword [rsp + 0x1a00]
add rdx, 0x228
lea r8, [0x1402491d0]
lea rcx, [rsp + 0x1900]
call fcn.1400010b0
mov qword [rsp + 0x1988], rax
mov rcx, qword [rsp + 0x1988]
call fcn.140050200
mov r9, rax
mov r8d, 1
lea rdx, str.DiskWriteCache
lea rcx, [0x140249208]
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.140007060
mov rdx, qword [rsp + 0x1a00]
add rdx, 0x228
lea r8, [0x140249218]
lea rcx, [rsp + 0x1908]
call fcn.1400010b0
mov qword [rsp + 0x1990], rax
mov rcx, qword [rsp + 0x1990]
call fcn.140050200
mov r9, rax
mov r8d, 1
lea rdx, str.SupportCDROM
lea rcx, [0x140249250]
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.140007060
mov rdx, qword [rsp + 0x1a00]
add rdx, 0x228
lea r8, [0x140249260]
lea rcx, [rsp + 0x1910]
call fcn.1400010b0
mov qword [rsp + 0x1998], rax
mov rcx, qword [rsp + 0x1998]
call fcn.140050200
mov r9, rax
mov r8d, 5
lea rdx, str.MaxConnections
lea rcx, [0x140249298]
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.140007060
mov rdx, qword [rsp + 0x1a00]
add rdx, 0x228
lea r8, [0x1402492a8]
lea rcx, [rsp + 0x1918]
call fcn.1400010b0
mov qword [rsp + 0x19a0], rax
mov rcx, qword [rsp + 0x19a0]
call fcn.140050200
mov r9, rax
xor r8d, r8d
lea rdx, str.BindARP
lea rcx, [0x1402492d0]
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.140007060
mov rdx, qword [rsp + 0x1a00]
add rdx, 0x228
lea r8, [0x1402492e0]
lea rcx, [rsp + 0x1920]
call fcn.1400010b0
mov qword [rsp + 0x19a8], rax
mov rcx, qword [rsp + 0x19a8]
call fcn.140050200
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x400
lea r9, [rsp + 0x60]
lea r8, [0x1402492f8]
lea rdx, str.iSCSIVendor
lea rcx, [0x140249320]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rsp + 0x1920]
call fcn.140007060
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x1928]
call fcn.140002d40
mov qword [rsp + 0x19b0], rax
mov rax, qword [rsp + 0x19b0]
mov qword [rsp + 0x19b8], rax
mov rcx, qword [rsp + 0x19b8]
call fcn.140002df0
mov rcx, qword [rsp + 0x1a00]
add rcx, 0x338
mov rdx, rax
call fcn.1400acae0
nop
lea rcx, [rsp + 0x1928]
call fcn.140002dd0
mov rdx, qword [rsp + 0x1a00]
add rdx, 0x228
lea r8, [0x140249330]
lea rcx, [rsp + 0x1930]
call fcn.1400010b0
mov qword [rsp + 0x19c0], rax
mov rcx, qword [rsp + 0x19c0]
call fcn.140050200
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, [0x140249388]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rsp + 0x1930]
call fcn.140007060
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x1938]
call fcn.140002d40
mov qword [rsp + 0x19c8], rax
mov rax, qword [rsp + 0x19c8]
mov qword [rsp + 0x19d0], rax
mov rcx, qword [rsp + 0x19d0]
call fcn.140002df0
mov rcx, qword [rsp + 0x1a00]
add rcx, 0x238
mov rdx, rax
call fcn.1400acae0
nop
lea rcx, [rsp + 0x1938]
call fcn.140002dd0
mov dword [rsp + 0x48], 0
jmp 0x140141c6b
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0x1a
jge 0x140141c89
movsxd rcx, dword [rsp + 0x48]
mov rax, qword [rsp + 0x1a00]
mov byte [rax + rcx + 0x47c], 0
jmp 0x140141c60
xor r9d, r9d
mov r8, qword [rsp + 0x1a10]
mov edx, dword [rsp + 0x1a08]
mov rcx, qword [rsp + 0x1a00]
call fcn.1400e3c20
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.WS2_32.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.14013b780
mov edx, eax
mov rax, qword [rsp + 0x1a00]
mov dword [rax + 0x4bc], edx
mov ecx, 6
call fcn.14013b780
mov edx, eax
mov rax, qword [rsp + 0x1a00]
mov dword [rax + 0x4cc], edx
mov edx, 0x67
mov rcx, qword [rsp + 0x1a00]
call fcn.1400e3ba0
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x19d8]
xor rcx, rsp
call fcn.1400a9820
add rsp, 0x19e8
pop rdi
pop rbx
ret