Function at 0x140136610
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.1401d4c90
sub rsp, rax
mov qword [rsp + 0x1940], 0xfffffffffffffffe
mov rax, qword [0x1402a15c0]
xor rax, rsp
mov qword [rsp + 0x19d8], rax
call fcn.140133850
test eax, eax
jne 0x14013665e
mov eax, 1
jmp 0x140136e66
mov dword [rsp + 0x48], 0
xor ecx, ecx
call fcn.140132820
mov ecx, eax
call fcn.1400ab1c8
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rsp + 0x44], eax
mov byte [rsp + 0x864], 0x41
jmp 0x140136699
movzx eax, byte [rsp + 0x864]
add al, 1
mov byte [rsp + 0x864], al
movsx eax, byte [rsp + 0x864]
cmp eax, 0x5a
jg 0x1401369b1
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 0x1401366ca
jmp 0x140136688
lea rcx, [rsp + 0x1098]
call fcn.140002db0
nop
movsx r8d, byte [rsp + 0x864]
lea rdx, [0x140231fe8]
lea rcx, [rsp + 0x1098]
call fcn.140002c40
lea r8, [0x140231ff0]
lea rdx, [rsp + 0x1098]
lea rcx, [rsp + 0x18c8]
call fcn.1400010b0
mov qword [rsp + 0x1948], rax
mov rcx, qword [rsp + 0x1948]
call fcn.140023510
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x140136741
mov dword [rsp + 0x1950], 1
jmp 0x14013674c
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 0x140136786
lea rcx, [rsp + 0x1098]
call fcn.140001490
jmp 0x140136688
lea r8, [0x140231ff8]
lea rdx, [rsp + 0x1098]
lea rcx, [rsp + 0x18d8]
call fcn.1400010b0
mov qword [rsp + 0x1958], rax
mov rcx, qword [rsp + 0x1958]
call fcn.140023510
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1401367d1
mov dword [rsp + 0x1960], 1
jmp 0x1401367dc
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 0x140136816
lea rcx, [rsp + 0x1098]
call fcn.140001490
jmp 0x140136688
lea r8, [0x140232000]
lea rdx, [rsp + 0x1098]
lea rcx, [rsp + 0x18e8]
call fcn.1400010b0
mov qword [rsp + 0x1968], rax
mov rcx, qword [rsp + 0x1968]
call fcn.140023510
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 0x1401368a6
mov dword [rsp + 0x1970], 1
jmp 0x1401368b1
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 0x1401368eb
lea rcx, [rsp + 0x1098]
call fcn.140001490
jmp 0x140136688
lea rcx, [rsp + 0x1088]
call fcn.140002db0
nop
mov r8d, dword [rsp + 0x1080]
lea rdx, [0x140232008]
lea rcx, [rsp + 0x1088]
call fcn.140002c40
mov rdx, qword [rsp + 0x1a00]
add rdx, 0x228
lea r8, [0x140232018]
lea rcx, [rsp + 0x18f0]
call fcn.1400010b0
mov qword [rsp + 0x1978], rax
mov rcx, qword [rsp + 0x1978]
call fcn.140023510
mov rbx, rax
lea rcx, [rsp + 0x1088]
call fcn.140023510
mov rdi, rax
lea rcx, [rsp + 0x1098]
call fcn.140023510
mov r9, rbx
mov r8, rdi
mov rdx, rax
lea rcx, [0x140232030]
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 0x140136688
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, [0x140232058]
lea rcx, [rsp + 0x18f8]
call fcn.1400010b0
mov qword [rsp + 0x1980], rax
mov rcx, qword [rsp + 0x1980]
call fcn.140023510
mov r9, rax
mov r8d, 1
lea rdx, [0x140232070]
lea rcx, [0x140232090]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, eax
mov rax, qword [rsp + 0x1a00]
mov dword [rax + 0x4d8], edx
lea rcx, [rsp + 0x18f8]
call fcn.140001490
mov rdx, qword [rsp + 0x1a00]
add rdx, 0x228
lea r8, [0x1402320a0]
lea rcx, [rsp + 0x1900]
call fcn.1400010b0
mov qword [rsp + 0x1988], rax
mov rcx, qword [rsp + 0x1988]
call fcn.140023510
mov r9, rax
mov r8d, 1
lea rdx, str.DiskWriteCache
lea rcx, [0x1402320d8]
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, [0x1402320e8]
lea rcx, [rsp + 0x1908]
call fcn.1400010b0
mov qword [rsp + 0x1990], rax
mov rcx, qword [rsp + 0x1990]
call fcn.140023510
mov r9, rax
mov r8d, 1
lea rdx, str.SupportCDROM
lea rcx, [0x140232120]
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, [0x140232130]
lea rcx, [rsp + 0x1910]
call fcn.1400010b0
mov qword [rsp + 0x1998], rax
mov rcx, qword [rsp + 0x1998]
call fcn.140023510
mov r9, rax
mov r8d, 5
lea rdx, str.MaxConnections
lea rcx, [0x140232168]
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, [0x140232178]
lea rcx, [rsp + 0x1918]
call fcn.1400010b0
mov qword [rsp + 0x19a0], rax
mov rcx, qword [rsp + 0x19a0]
call fcn.140023510
mov r9, rax
xor r8d, r8d
lea rdx, str.BindARP
lea rcx, [0x1402321a0]
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, [0x1402321b0]
lea rcx, [rsp + 0x1920]
call fcn.1400010b0
mov qword [rsp + 0x19a8], rax
mov rcx, qword [rsp + 0x19a8]
call fcn.140023510
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x400
lea r9, [rsp + 0x60]
lea r8, [0x1402321c8]
lea rdx, str.iSCSIVendor
lea rcx, [0x1402321f0]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rsp + 0x1920]
call fcn.140001490
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x1928]
call fcn.140002de0
mov qword [rsp + 0x19b0], rax
mov rax, qword [rsp + 0x19b0]
mov qword [rsp + 0x19b8], rax
mov rcx, qword [rsp + 0x19b8]
call fcn.140002e90
mov rcx, qword [rsp + 0x1a00]
add rcx, 0x338
mov rdx, rax
call fcn.1400acdf0
nop
lea rcx, [rsp + 0x1928]
call fcn.140002e70
mov rdx, qword [rsp + 0x1a00]
add rdx, 0x228
lea r8, [0x140232200]
lea rcx, [rsp + 0x1930]
call fcn.1400010b0
mov qword [rsp + 0x19c0], rax
mov rcx, qword [rsp + 0x19c0]
call fcn.140023510
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, [0x140232258]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rsp + 0x1930]
call fcn.140001490
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x1938]
call fcn.140002de0
mov qword [rsp + 0x19c8], rax
mov rax, qword [rsp + 0x19c8]
mov qword [rsp + 0x19d0], rax
mov rcx, qword [rsp + 0x19d0]
call fcn.140002e90
mov rcx, qword [rsp + 0x1a00]
add rcx, 0x238
mov rdx, rax
call fcn.1400acdf0
nop
lea rcx, [rsp + 0x1938]
call fcn.140002e70
mov dword [rsp + 0x48], 0
jmp 0x140136dae
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0x1a
jge 0x140136dcc
movsxd rcx, dword [rsp + 0x48]
mov rax, qword [rsp + 0x1a00]
mov byte [rax + rcx + 0x47c], 0
jmp 0x140136da3
xor r9d, r9d
mov r8, qword [rsp + 0x1a10]
mov edx, dword [rsp + 0x1a08]
mov rcx, qword [rsp + 0x1a00]
call fcn.1400e3670
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 edx, 0x67
mov rcx, qword [rsp + 0x1a00]
call fcn.1400e35f0
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x19d8]
xor rcx, rsp
call fcn.1400a8050
add rsp, 0x19e8
pop rdi
pop rbx
ret