Function at 0x1400c4bd0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x350]
sub rsp, 0x450
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x4a0], rbx
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rbp + 0x340], rax
mov r15, rdx
mov r13, rcx
xor r12d, r12d
mov edi, r12d
mov ebx, r12d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
mov word [rsp + 0x68], r12w
or r8d, 0xffffffff
mov rdx, qword [0x14044b580]
lea rcx, [rsp + 0x60]
call fcn.1400c76f0
nop
mov rdx, qword [0x14044b610]
cmp word [rdx], r12w
jne 0x1400c4d10
test r15, r15
je 0x1400c4c65
mov rdx, r15
lea rcx, [rsp + 0x60]
call fcn.1400c7590
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400c4cb7
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
je 0x1400c4ee8
call fcn.1402804a8
jmp 0x1400c4ee8
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test eax, eax
je 0x1400c4c9a
mov dword [rsp + 0x40], r12d
mov ecx, ebx
call fcn.14012a2dc
mov rdi, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x40], ebx
je 0x1400c4ecb
mov rcx, rdi
call fcn.14012a2d4
mov rdi, r12
jmp 0x1400c4c9a
lea rcx, [rsp + 0x60]
call fcn.1400c7590
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x1400c4d2c
mov rsi, qword [0x14045f1f8]
jmp 0x1400c4da5
lea rax, [rbp + 0x88]
mov qword [rbp + 0x80], rax
mov word [rbp + 0x88], r12w
or r8d, 0xffffffff
mov rdx, qword [0x14044b6a0]
lea rcx, [rbp + 0x80]
call fcn.1400c76f0
nop
mov rcx, qword [rbp + 0x80]
call fcn.1400c7220
mov r14, rax
mov r9, rax
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, qword [rsp + 0x60]
call fcn.1400eef60
mov rsi, rax
test r14, r14
je 0x1400c4d8d
mov rcx, r14
call fcn.14012a2d4
nop
lea rax, [rbp + 0x88]
mov rcx, qword [rbp + 0x80]
cmp rcx, rax
je 0x1400c4da5
call fcn.1402804a8
test rsi, rsi
je 0x1400c4c9a
mov dword [rsp + 0x40], r12d
lea rax, [rbp - 8]
mov qword [rbp - 0x10], rax
mov word [rbp - 8], r12w
or r8d, 0xffffffff
mov rdx, r15
lea rcx, [rbp - 0x10]
call fcn.1400c76f0
nop
lea r8, [0x140351bf4]
lea rdx, [0x140351bcc]
lea rcx, [rbp - 0x10]
call fcn.1400c7ad0
cmp dword [rsi], 1
je 0x1400c4df9
mov dword [0x14045fef0], 0x80000
jmp 0x1400c4e21
lea rax, [rbp + 0x110]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rsi + 8]
call fcn.1400eec80
mov dword [0x14045fef0], eax
test eax, eax
je 0x1400c4e3c
lea rax, [rbp - 8]
mov rcx, qword [rbp - 0x10]
cmp rcx, rax
je 0x1400c4c9a
call fcn.1402804a8
jmp 0x1400c4c9a
mov ebx, dword [rbp + 0x33c]
test ebx, ebx
je 0x1400c4e21
mov ecx, ebx
call fcn.14012a2dc
mov rdi, rax
cmp dword [rsi], 1
je 0x1400c4e61
mov dword [0x14045fef0], 0x80000
jmp 0x1400c4e85
mov r9d, ebx
mov r8, rdi
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsi + 8]
call fcn.1400eed80
mov dword [0x14045fef0], eax
test eax, eax
je 0x1400c4ea6
cmp eax, 0x600
je 0x1400c4ea6
mov rcx, rdi
call fcn.14012a2d4
mov rdi, r12
cmp byte [reloc.WS2_32.dll_accept], dil
jne 0x1400c4e21
mov rcx, rsi
call fcn.1400ef0f0
jmp 0x1400c4e21
cmp byte [reloc.WS2_32.dll_accept], 0
jne 0x1400c4eb8
mov rcx, rsi
call fcn.1400ef0f0
nop
lea rax, [rbp - 8]
mov rcx, qword [rbp - 0x10]
cmp rcx, rax
je 0x1400c4ecb
call fcn.1402804a8
nop
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
je 0x1400c4edf
call fcn.1402804a8
test rdi, rdi
jne 0x1400c4f6e
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400c4f6e
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test eax, eax
je 0x1400c4f6e
mov dword [rsp + 0x44], r12d
mov ecx, ebx
call fcn.14012a2dc
mov rdi, rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x44]
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x44], ebx
je 0x1400c4f6e
mov rcx, rdi
call fcn.14012a2d4
mov rdi, r12
lea r9, [rsp + 0x48]
xor r8d, r8d
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.GDI32.dll_AddFontMemResourceEx]
mov rbx, rax
mov rcx, rdi
call fcn.14012a2d4
lea rcx, [r13 + 0x5c0]
mov rdx, rbx
call fcn.1400c73b0
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.14012a2b0
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x450
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret