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

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x80
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov rbx, rdx
mov rsi, rcx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
test rdx, rdx
je 0x14004d443
cmp byte [rdx], r12b
je 0x14004d443
mov rcx, rdx
call fcn.1400d0090
test eax, eax
je 0x14004d443
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ecx, [rax + 1]
mov ebx, ecx
call fcn.14010a204
mov r13, rax
mov r8d, ebx
xor edx, edx
mov rcx, rax
call fcn.14010da60
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0xc8]
mov r8d, edi
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov qword [rsp + 0x58], r13
mov ebx, r12d
mov dword [rsp + 0xc0], ebx
nop word [rax + rax]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.1400c8f00
test eax, eax
je 0x14004d3be
test ebx, ebx
jne 0x14004d3be
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x14004d3b9
movzx eax, byte [rdx]
test al, al
je 0x14004d3b9
cmp al, 0x23
je 0x14004d3b9
cmp al, 0xd
je 0x14004d3b9
cmp al, 0xa
je 0x14004d3b9
lea rcx, [rsp + 0x48]
call fcn.1400cc800
nop
lea rcx, [rsp + 0x48]
call fcn.1400cb070
lea rcx, [rsp + 0x48]
call fcn.1400caf00
mov dl, 0xd
lea rcx, [rsp + 0x48]
call fcn.1400cc020
test rax, rax
jle 0x14004d30b
mov r8, rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.1400cc420
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400ca5a0
nop
lea rcx, [rsp + 0x60]
call fcn.1400ca400
mov dl, 0xa
lea rcx, [rsp + 0x48]
call fcn.1400cc020
test rax, rax
jle 0x14004d347
mov r8, rax
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.1400cc420
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400ca5a0
nop
lea rcx, [rsp + 0x68]
call fcn.1400ca400
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax - 0x10]
inc rcx
call fcn.14010a204
mov rbx, rax
mov rdx, qword [rsp + 0x48]
mov r8, rax
nop word [rax + rax]
movzx ecx, byte [rdx]
mov byte [r8], cl
inc rdx
inc r8
test cl, cl
jne 0x14004d370
lea r9, [rsp + 0xc0]
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
call fcn.14004cb50
mov rcx, rbx
call fcn.140085540
mov dword [rsi + 0xb0], 1
lea rcx, [rsp + 0x48]
call fcn.1400ca400
mov ebx, dword [rsp + 0xc0]
jmp 0x14004d260
mov rcx, r13
call fcn.14010d304
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14004d438
mov rbx, qword [0x1402bfb28]
mov rax, qword [0x1402b9cc8]
mov qword [rsp + 0x48], rax
lea rdx, [0x14024d112]
lea rcx, [rsp + 0x48]
call fcn.1400ca6a0
mov r8, rbx
mov edx, 0x2bef
lea rcx, [rsp + 0x48]
call fcn.1400cc060
nop
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
mov r9d, 0x40
lea r8, str.Import_URLs
mov rdx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
lea rcx, [rsp + 0x48]
call fcn.1400ca400
jmp 0x14004d443
mov r12d, 1
mov dword [rsp + 0x40], r12d
mov eax, r12d
jmp 0x14004d44c
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret