Function at 0x140136550
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.1401d5c30
sub rsp, rax
mov qword [rsp + 0x1940], 0xfffffffffffffffe
mov rax, qword [0x1402a25c0]
xor rax, rsp
mov qword [rsp + 0x19d8], rax
call fcn.1401337e0
test eax, eax
jne 0x14013659e
mov eax, 1
jmp 0x140136da6
mov dword [rsp + 0x48], 0
xor ecx, ecx
call fcn.1401327b0
mov ecx, eax
call fcn.1400ab1a8
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rsp + 0x44], eax
mov byte [rsp + 0x864], 0x41
jmp 0x1401365d9
movzx eax, byte [rsp + 0x864]
add al, 1
mov byte [rsp + 0x864], al
movsx eax, byte [rsp + 0x864]
cmp eax, 0x5a
jg 0x1401368f1
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 0x14013660a
jmp 0x1401365c8
lea rcx, [rsp + 0x1098]
call fcn.140002d50
nop
movsx r8d, byte [rsp + 0x864]
lea rdx, [0x140232fe8]
lea rcx, [rsp + 0x1098]
call fcn.140002be0
lea r8, [0x140232ff0]
lea rdx, [rsp + 0x1098]
lea rcx, [rsp + 0x18c8]
call fcn.1400010b0
mov qword [rsp + 0x1948], rax
mov rcx, qword [rsp + 0x1948]
call fcn.1400012c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x140136681
mov dword [rsp + 0x1950], 1
jmp 0x14013668c
mov dword [rsp + 0x1950], 0
movzx eax, byte [rsp + 0x1950]
mov byte [rsp + 0x18c0], al
lea rcx, [rsp + 0x18c8]
call fcn.140001470
movzx edx, byte [rsp + 0x18c0]
test edx, edx
je 0x1401366c6
lea rcx, [rsp + 0x1098]
call fcn.140001470
jmp 0x1401365c8
lea r8, [0x140232ff8]
lea rdx, [rsp + 0x1098]
lea rcx, [rsp + 0x18d8]
call fcn.1400010b0
mov qword [rsp + 0x1958], rax
mov rcx, qword [rsp + 0x1958]
call fcn.1400012c0
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140136711
mov dword [rsp + 0x1960], 1
jmp 0x14013671c
mov dword [rsp + 0x1960], 0
movzx eax, byte [rsp + 0x1960]
mov byte [rsp + 0x18d0], al
lea rcx, [rsp + 0x18d8]
call fcn.140001470
movzx edx, byte [rsp + 0x18d0]
test edx, edx
je 0x140136756
lea rcx, [rsp + 0x1098]
call fcn.140001470
jmp 0x1401365c8
lea r8, [0x140233000]
lea rdx, [rsp + 0x1098]
lea rcx, [rsp + 0x18e8]
call fcn.1400010b0
mov qword [rsp + 0x1968], rax
mov rcx, qword [rsp + 0x1968]
call fcn.1400012c0
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 0x1401367e6
mov dword [rsp + 0x1970], 1
jmp 0x1401367f1
mov dword [rsp + 0x1970], 0
movzx eax, byte [rsp + 0x1970]
mov byte [rsp + 0x18e0], al
lea rcx, [rsp + 0x18e8]
call fcn.140001470
movzx edx, byte [rsp + 0x18e0]
test edx, edx
je 0x14013682b
lea rcx, [rsp + 0x1098]
call fcn.140001470
jmp 0x1401365c8
lea rcx, [rsp + 0x1088]
call fcn.140002d50
nop
mov r8d, dword [rsp + 0x1080]
lea rdx, [0x140233008]
lea rcx, [rsp + 0x1088]
call fcn.140002be0
mov rdx, qword [rsp + 0x1a00]
add rdx, 0x228
lea r8, [0x140233018]
lea rcx, [rsp + 0x18f0]
call fcn.1400010b0
mov qword [rsp + 0x1978], rax
mov rcx, qword [rsp + 0x1978]
call fcn.1400012c0
mov rbx, rax
lea rcx, [rsp + 0x1088]
call fcn.1400012c0
mov rdi, rax
lea rcx, [rsp + 0x1098]
call fcn.1400012c0
mov r9, rbx
mov r8, rdi
mov rdx, rax
lea rcx, [0x140233030]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rcx, [rsp + 0x18f0]
call fcn.140001470
nop
lea rcx, [rsp + 0x1088]
call fcn.140001470
nop
lea rcx, [rsp + 0x1098]
call fcn.140001470
jmp 0x1401365c8
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, [0x140233058]
lea rcx, [rsp + 0x18f8]
call fcn.1400010b0
mov qword [rsp + 0x1980], rax
mov rcx, qword [rsp + 0x1980]
call fcn.1400012c0
mov r9, rax
mov r8d, 1
lea rdx, [0x140233070]
lea rcx, [0x140233090]
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.140001470
mov rdx, qword [rsp + 0x1a00]
add rdx, 0x228
lea r8, [0x1402330a0]
lea rcx, [rsp + 0x1900]
call fcn.1400010b0
mov qword [rsp + 0x1988], rax
mov rcx, qword [rsp + 0x1988]
call fcn.1400012c0
mov r9, rax
mov r8d, 1
lea rdx, str.DiskWriteCache
lea rcx, [0x1402330d8]
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.140001470
mov rdx, qword [rsp + 0x1a00]
add rdx, 0x228
lea r8, [0x1402330e8]
lea rcx, [rsp + 0x1908]
call fcn.1400010b0
mov qword [rsp + 0x1990], rax
mov rcx, qword [rsp + 0x1990]
call fcn.1400012c0
mov r9, rax
mov r8d, 1
lea rdx, str.SupportCDROM
lea rcx, [0x140233120]
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.140001470
mov rdx, qword [rsp + 0x1a00]
add rdx, 0x228
lea r8, [0x140233130]
lea rcx, [rsp + 0x1910]
call fcn.1400010b0
mov qword [rsp + 0x1998], rax
mov rcx, qword [rsp + 0x1998]
call fcn.1400012c0
mov r9, rax
mov r8d, 5
lea rdx, str.MaxConnections
lea rcx, [0x140233168]
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.140001470
mov rdx, qword [rsp + 0x1a00]
add rdx, 0x228
lea r8, [0x140233178]
lea rcx, [rsp + 0x1918]
call fcn.1400010b0
mov qword [rsp + 0x19a0], rax
mov rcx, qword [rsp + 0x19a0]
call fcn.1400012c0
mov r9, rax
xor r8d, r8d
lea rdx, str.BindARP
lea rcx, [0x1402331a0]
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.140001470
mov rdx, qword [rsp + 0x1a00]
add rdx, 0x228
lea r8, [0x1402331b0]
lea rcx, [rsp + 0x1920]
call fcn.1400010b0
mov qword [rsp + 0x19a8], rax
mov rcx, qword [rsp + 0x19a8]
call fcn.1400012c0
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x400
lea r9, [rsp + 0x60]
lea r8, [0x1402331c8]
lea rdx, str.iSCSIVendor
lea rcx, [0x1402331f0]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rsp + 0x1920]
call fcn.140001470
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x1928]
call fcn.140002d80
mov qword [rsp + 0x19b0], rax
mov rax, qword [rsp + 0x19b0]
mov qword [rsp + 0x19b8], rax
mov rcx, qword [rsp + 0x19b8]
call fcn.140002e30
mov rcx, qword [rsp + 0x1a00]
add rcx, 0x338
mov rdx, rax
call fcn.1400acdd0
nop
lea rcx, [rsp + 0x1928]
call fcn.140002e10
mov rdx, qword [rsp + 0x1a00]
add rdx, 0x228
lea r8, [0x140233200]
lea rcx, [rsp + 0x1930]
call fcn.1400010b0
mov qword [rsp + 0x19c0], rax
mov rcx, qword [rsp + 0x19c0]
call fcn.1400012c0
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, [0x140233258]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rsp + 0x1930]
call fcn.140001470
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x1938]
call fcn.140002d80
mov qword [rsp + 0x19c8], rax
mov rax, qword [rsp + 0x19c8]
mov qword [rsp + 0x19d0], rax
mov rcx, qword [rsp + 0x19d0]
call fcn.140002e30
mov rcx, qword [rsp + 0x1a00]
add rcx, 0x238
mov rdx, rax
call fcn.1400acdd0
nop
lea rcx, [rsp + 0x1938]
call fcn.140002e10
mov dword [rsp + 0x48], 0
jmp 0x140136cee
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0x1a
jge 0x140136d0c
movsxd rcx, dword [rsp + 0x48]
mov rax, qword [rsp + 0x1a00]
mov byte [rax + rcx + 0x47c], 0
jmp 0x140136ce3
xor r9d, r9d
mov r8, qword [rsp + 0x1a10]
mov edx, dword [rsp + 0x1a08]
mov rcx, qword [rsp + 0x1a00]
call fcn.1400e3600
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.1400e3580
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x19d8]
xor rcx, rsp
call fcn.1400a8040
add rsp, 0x19e8
pop rdi
pop rbx
ret