Function at 0x1400104e0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x2b0]
sub rsp, 0x3b0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x140232230]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov r15, r9
mov rsi, r8
mov r14, rdx
mov r12, qword [rbp + 0x310]
mov r9, rdx
lea r8, str._Configuration___LoadFile_____loading_file:__s_
mov edx, 0x100
lea rcx, [rbp + 0xa0]
call fcn.140167410
lea rax, [rsp + 0x78]
mov qword [rsp + 0x60], rax
mov qword [rbp - 0x70], 7
xor ebx, ebx
mov qword [rbp - 0x78], rbx
mov word [rsp + 0x78], bx
cmp word [rbp + 0xa0], bx
jne 0x14001056a
mov r8d, ebx
jmp 0x14001057f
lea rax, [rbp + 0xa0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x140010575
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x78]
call fcn.14000dc20
nop
mov r8d, 5
lea rdx, [rsp + 0x78]
call fcn.140078560
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
jne 0x14001065b
lea rax, [rsp + 0x78]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x68], rax
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rbx
mov word [rsp + 0x78], bx
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.Cant_open_file
lea rcx, [rsp + 0x78]
call fcn.14000dc20
nop
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rbx
mov word [rsp + 0x40], bx
mov r8d, 0x1a
lea rdx, str._Configuration___LoadFile_
lea rcx, [rsp + 0x40]
call fcn.14000dc20
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x40]
call fcn.140078b90
xor al, al
jmp 0x140010a36
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x60], eax
test eax, eax
jne 0x1400106c6
lea rax, [rsp + 0x40]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rbx
mov word [rsp + 0x40], bx
mov r8d, 0x2e
lea rdx, str._Configuration___LoadFile_____0_byte_conf_file
lea rcx, [rsp + 0x40]
call fcn.14000dc20
nop
mov r8d, 3
lea rdx, [rsp + 0x40]
call fcn.140078560
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], rbx
xor al, al
jmp 0x140010a36
cmp eax, 0xffffffff
jne 0x140010762
lea rax, [rsp + 0x40]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rbx
mov word [rsp + 0x40], bx
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Cant_get_file_size
lea rcx, [rsp + 0x40]
call fcn.14000dc20
nop
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rbx
mov word [rsp + 0x78], bx
mov r8d, 0x1a
lea rdx, str._Configuration___LoadFile_
lea rcx, [rsp + 0x78]
call fcn.14000dc20
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x78]
call fcn.140078b90
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], rbx
xor al, al
jmp 0x140010a36
lea rdx, str._Configuration___LoadFile_____about_to_memory_map_file___size:___1__
lea rcx, [rbp - 0x60]
call fcn.140021a10
mov rdi, rax
cmp byte [rax + 0x44], 0
je 0x140010783
mov rcx, rax
call fcn.140009270
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.14001a310
inc dword [rdi + 0x3c]
mov edx, dword [rdi + 0x3c]
cmp qword [rdi + 0x30], 0
je 0x1400107fe
mov r10d, dword [rdi + 0x40]
cmp edx, r10d
jge 0x1400107fe
mov r9, qword [rdi + 0x18]
nop word [rax + rax]
movsxd rcx, edx
test edx, edx
jns 0x1400107da
mov rax, rcx
neg rax
je 0x1400107da
or rax, 0xffffffffffffffff
sub rax, rcx
shr rax, 5
lea rax, [rax*4 + 4]
mov r8, r9
sub r8, rax
jmp 0x1400107e5
mov rax, rcx
shr rax, 5
lea r8, [r9 + rax*4]
and ecx, 0x1f
mov eax, 1
shl eax, cl
test dword [r8], eax
je 0x1400107fe
inc edx
mov dword [rdi + 0x3c], edx
cmp edx, r10d
jl 0x1400107b0
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.14000dbe0
nop
lea rcx, [rbp - 0x60]
call fcn.1400090e0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rbx
mov word [rsp + 0x40], bx
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x40]
call fcn.14000e0c0
nop
mov r8d, 5
lea rdx, [rsp + 0x40]
call fcn.140078560
nop
cmp qword [rbp - 0x70], 8
jb 0x14001086b
mov rcx, qword [rsp + 0x78]
call fcn.1401669a0
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rbx
mov word [rsp + 0x78], bx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [r15], rax
test rax, rax
jne 0x14001092a
lea rax, [rsp + 0x40]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rbx
mov word [rsp + 0x40], bx
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, str.Cant_create_file_map
lea rcx, [rsp + 0x40]
call fcn.14000dc20
nop
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rbx
mov word [rsp + 0x78], bx
mov r8d, 0x1a
lea rdx, str._Configuration___LoadFile_
lea rcx, [rsp + 0x78]
call fcn.14000dc20
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x78]
call fcn.140078b90
xor al, al
jmp 0x140010a36
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [r12], rax
test rax, rax
jne 0x1400109b8
lea rax, [rsp + 0x40]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rbx
mov word [rsp + 0x40], bx
mov r8d, socket
lea rdx, str.Cant_map_view_of_file
lea rcx, [rsp + 0x40]
call fcn.14000dc20
nop
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rbx
mov word [rsp + 0x78], bx
mov r8d, 0x1a
lea rdx, str._Configuration___LoadFile_
lea rcx, [rsp + 0x78]
call fcn.14000dc20
nop
jmp 0x14001090b
mov r9, r14
lea r8, str._Configuration___LoadFile_____Successfully_loaded_file:__s_
mov edx, 0x100
lea rcx, [rbp + 0xa0]
call fcn.140167410
lea rax, [rsp + 0x40]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rbx
mov word [rsp + 0x40], bx
cmp word [rbp + 0xa0], 0
je 0x140010a0f
lea rax, [rbp + 0xa0]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140010a05
mov r8, rbx
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x40]
call fcn.14000dc20
nop
mov r8d, 4
lea rdx, [rsp + 0x40]
call fcn.140078560
mov al, 1
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.140166980
add rsp, 0x3b0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret