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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
mov eax, 0x2580
call fcn.140019520
sub rsp, rax
or qword [rsp + 0x1300], 0xffffffffffffffff
xor ebx, ebx
mov rbp, rcx
lea rax, [rsp + 0x1308]
lea rcx, [rsp + 0x1300]
mov rsi, rdx
mov qword [rsp + 0x70], rdx
mov word [rsp + 0x1308], bx
mov word [rsp + 0x1d6a], bx
mov qword [rsp + 0x1710], rax
mov word [rsp + 0x1968], bx
call fcn.14000b118
lea rcx, [rsp + 0x1300]
call fcn.14000b260
cmp eax, ebx
je 0x140004481
test byte [rsp + 0x1718], 0x10
jne 0x140004467
lea rcx, [rbp + 0xa90]
lea rdx, [rsp + 0x1968]
mov r8d, 0x104
call fcn.140009ff4
lea rcx, [rsp + 0x1968]
xor edx, edx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x5c], 0x1388
mov edi, ebx
call fcn.140009ab0
cmp rax, 0xffffffffffffffff
mov rbp, rax
je 0x140004308
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
lea rcx, [rsp + 0x50]
mov edi, eax
lea edx, [rdi + 4]
call fcn.14000b474
mov r10, qword [rsp + 0x50]
xor esi, esi
cmp eax, esi
mov qword [rsp + 0x38], r10
je 0x1400042fa
mov byte [rdi + r10], sil
lea ecx, [rdi + 1]
lea eax, [rdi + 2]
mov byte [rcx + r10], sil
lea r9, [rsp + 0x48]
mov r8d, edi
mov rcx, rbp
mov rdx, r10
mov byte [rax + r10], sil
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
jne 0x1400042fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1400042fd
or ebx, 0xffffffff
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140004312
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
mov ebx, eax
cmp ebx, esi
mov rbp, qword [rsp + 0x25a0]
jne 0x14000445b
cmp edi, 0x50
jbe 0x14000445b
mov rbx, qword [rsp + 0x38]
mov r8d, edi
mov rcx, rbp
mov rdx, rbx
call fcn.1400040f8
lea rsi, [rbp + 0xca0]
mov edx, edi
shr edx, 1
mov rcx, rbx
mov r8, rsi
mov qword [rsp + 0x40], rsi
call fcn.140002270
cmp eax, 0x50
jbe 0x14000436c
mov rdx, qword [rsi]
mov r8d, eax
mov rcx, rbp
call fcn.1400040f8
xor esi, esi
xor eax, eax
xor ebp, ebp
and qword [rsp + 0x60], rsi
xor ecx, ecx
test edi, edi
mov byte [rsp + 0x30], sil
mov word [rsp + 0x31], ax
je 0x140004453
mov r8d, edi
mov rdi, qword [rsp + 0x40]
mov qword [rsp + 0x68], r8
movsx edx, byte [rbx]
cmp dx, 0x30
movzx eax, dx
jb 0x1400043aa
cmp ax, 0x39
jbe 0x1400043c0
cmp ax, 0x41
jb 0x1400043b6
cmp ax, 0x46
jbe 0x1400043c0
sub ax, 0x61
cmp ax, 5
ja 0x14000441a
add ebp, 1
mov byte [rsp + rcx + 0x30], dl
add rcx, 1
cmp ebp, 1
jbe 0x14000441e
xor ebp, ebp
mov edx, esi
mov rcx, rdi
and qword [rsp + 0x40], rbp
call fcn.14000b474
mov rbx, qword [rdi]
lea r8d, [rbp + 0x10]
lea rcx, [rsp + 0x30]
xor edx, edx
call sub.msvcrt.dll_strtoul
mov r9, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x68]
mov byte [r9 + rbx], al
mov rbx, qword [rsp + 0x38]
add esi, 1
add r9, 1
mov qword [rsp + 0x60], r9
jmp 0x14000441e
xor ebp, ebp
xor ecx, ecx
add rbx, 1
sub r8, 1
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x38], rbx
jne 0x140004398
cmp esi, 0x50
mov rbp, qword [rsp + 0x25a0]
jbe 0x14000445b
mov rdx, qword [rdi]
mov r8d, esi
mov rcx, rbp
call fcn.1400040f8
jmp 0x14000445b
mov rbp, qword [rsp + 0x25a0]
lea rcx, [rsp + 0x50]
call fcn.14000b450
xor ebx, ebx
lea rcx, [rsp + 0x1300]
call fcn.14000b260
cmp eax, ebx
jne 0x14000423b
mov rsi, qword [rsp + 0x70]
mov eax, dword [rsp + 0x25b0]
cmp eax, dword [rsp + 0x25b8]
jbe 0x1400045e8
or qword [rsp + 0x490], 0xffffffffffffffff
lea rax, [rsp + 0x498]
lea rcx, [rsp + 0x82]
xor edx, edx
mov r8d, 0x400
mov qword [rsp + 0x8a0], rax
mov word [rsp + 0x498], bx
mov word [rsp + 0xefa], bx
mov word [rsp + 0xaf8], bx
mov word [rsp + 0x80], bx
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.14000a28c
mov rdi, rsi
jmp 0x14000450c
cmp ax, 0x5c
je 0x140004504
cmp ax, 0x2f
jne 0x140004508
lea rdi, [rsi + 2]
add rsi, 2
movzx eax, word [rsi]
cmp ax, bx
jne 0x1400044f8
cmp rdi, rbx
je 0x1400045d4
lea r8, [rsp + 0x80]
lea rdx, [0x14001aa98]
lea rcx, [rsp + 0x490]
call fcn.14000b1c8
jmp 0x1400045bf
lea rcx, [rsp + 0x490]
call fcn.14000b174
cmp eax, ebx
je 0x1400045bf
mov rcx, rdi
call sub.msvcrt.dll_wcslen
lea rcx, [rsp + 0xaf8]
mov rbx, rax
call sub.msvcrt.dll_wcslen
lea rcx, [rbx + rax + 1]
cmp rcx, 0x200
jae 0x140004591
lea r8, [rsp + 0x2170]
lea rcx, [rsp + 0xaf8]
mov rdx, rdi
call fcn.14000a2f4
xor ebx, ebx
jmp 0x14000459b
xor ebx, ebx
mov word [rsp + 0x2170], bx
mov r9d, dword [rsp + 0x25b8]
mov r8d, dword [rsp + 0x25b0]
lea rdx, [rsp + 0x2170]
add r9d, 1
mov rcx, rbp
call fcn.1400041b8
lea rcx, [rsp + 0x490]
call fcn.14000b260
cmp eax, ebx
jne 0x14000453e
mov rcx, qword [rsp + 0x490]
cmp rcx, 0xffffffffffffffff
je 0x1400045e8
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x1300]
cmp rcx, 0xffffffffffffffff
je 0x1400045fc
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x25a8]
add rsp, 0x2580
pop rdi
pop rsi
pop rbp
ret