Function at 0x140052500
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 0x1400527c5
cmp byte [rdx], r12b
je 0x1400527c5
mov rcx, rdx
call fcn.1400b6a90
test eax, eax
je 0x1400527c5
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.1400c7310
mov r13, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1400c2840
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
nop
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.1400b7d10
test eax, eax
je 0x140052740
test ebx, ebx
jne 0x140052740
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x14005273b
movzx eax, byte [rdx]
test al, al
je 0x14005273b
cmp al, 0x23
je 0x14005273b
cmp al, 0xd
je 0x14005273b
cmp al, 0xa
je 0x14005273b
lea rcx, [rsp + 0x48]
call fcn.14002e750
nop
lea rcx, [rsp + 0x48]
call fcn.14002da10
lea rcx, [rsp + 0x48]
call fcn.14002d940
mov dl, 0xd
lea rcx, [rsp + 0x48]
call fcn.14002e4f0
test rax, rax
jle 0x14005268b
mov r8, rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.14002e670
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14002d3c0
nop
lea rcx, [rsp + 0x60]
call fcn.14002d2c0
mov dl, 0xa
lea rcx, [rsp + 0x48]
call fcn.14002e4f0
test rax, rax
jle 0x1400526c7
mov r8, rax
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.14002e670
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14002d3c0
nop
lea rcx, [rsp + 0x68]
call fcn.14002d2c0
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax - 0x10]
add rcx, 1
call fcn.1400c7310
mov rbx, rax
mov rdx, qword [rsp + 0x48]
mov r8, rax
nop
nop
nop
movzx ecx, byte [rdx]
mov byte [r8], cl
add rdx, 1
add r8, 1
test cl, cl
jne 0x1400526f0
lea r9, [rsp + 0xc0]
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
call fcn.140051c00
mov rcx, rbx
call fcn.14008c4f0
mov dword [rsi + 0xa8], 1
lea rcx, [rsp + 0x48]
call fcn.14002d2c0
mov ebx, dword [rsp + 0xc0]
jmp 0x1400525e0
mov rcx, r13
call fcn.14002d0b0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1400527ba
mov rbx, qword [0x140167138]
mov rax, qword [0x140160e18]
mov qword [rsp + 0x48], rax
lea rdx, [0x1400e4ec8]
lea rcx, [rsp + 0x48]
call fcn.14002d430
mov r8, rbx
mov edx, 0x2bef
lea rcx, [rsp + 0x48]
call fcn.14002e500
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.14002d2c0
jmp 0x1400527c5
mov r12d, 1
mov dword [rsp + 0x40], r12d
mov eax, r12d
jmp 0x1400527ce
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret