Function at 0x1400365e0
Capabilities:
Get file size

Disassembly:
push rsi
push rdi
push r13
push r14
sub rsp, 0x88
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea eax, [rdx - 0x10]
movzx edi, r9b
mov qword [rsp + 0x48], r8
mov r13d, edx
mov byte [rsp + 0x40], 0
mov rsi, rcx
cmp eax, 0x30
ja 0x14003662d
movabs rcx, 0x1000100000001
bt rcx, rax
jb 0x14003698b
cmp r13d, 0x60
je 0x14003698b
cmp r13d, 0x70
je 0x14003698b
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x78], rbp
mov rcx, qword [0x1402aa8a0]
lea r14, [0x1402aa8a0]
cmp rcx, r14
je 0x140036685
test dword [rcx + 0x44], 0x200
je 0x140036685
cmp byte [rcx + 0x41], 4
jb 0x140036685
mov rcx, qword [rcx + 0x38]
lea r8, [0x140261890]
mov edx, 0x1a
call fcn.140024300
xor ebx, ebx
cmp qword [rsi + 0x168], rbx
je 0x14003669a
mov ebx, dword [rsi + 0x160]
test ebx, ebx
jne 0x1400366ad
lea rcx, [rsi - 8]
call fcn.140035410
test al, al
je 0x1400366ad
mov ebx, dword [rsi + 0x160]
cmp byte [rsi + 0x150], 0
jne 0x1400366be
inc dword [rsi + 0x148]
jmp 0x140036733
mov qword [rsp + 0x70], r12
lea rdx, [rsp + 0x40]
mov ecx, r13d
mov qword [rsp + 0x68], r15
call fcn.14003a250
movzx r12d, byte [rsp + 0x40]
add r12d, 4
mov dword [rsp + 0x44], edi
add edi, edi
add r12d, edi
add r12d, ebx
mov ecx, r12d
call fcn.1400e21a0
mov r15, rax
test rax, rax
jne 0x14003675b
mov rcx, qword [0x1402aa8a0]
cmp rcx, r14
je 0x140036729
test dword [rcx + 0x44], 0x200
je 0x140036729
cmp byte [rcx + 0x41], 2
jb 0x140036729
mov rcx, qword [rcx + 0x38]
lea edx, [rax + 0x2d]
lea r8, [0x140261890]
call fcn.140024300
mov r12, qword [rsp + 0x70]
mov r15, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140140100
add rsp, 0x88
pop r14
pop r13
pop rdi
pop rsi
ret
mov rcx, qword [0x1402aa8a0]
cmp rcx, r14
je 0x14003678b
test dword [rcx + 0x44], 0x200
je 0x14003678b
cmp byte [rcx + 0x41], 4
jb 0x14003678b
mov rcx, qword [rcx + 0x38]
lea r8, [0x140261890]
mov edx, 0x19
call fcn.140024300
mov r8, qword [rsi + 0x168]
test r8, r8
je 0x1400367a0
cmp dword [rsi + 0x160], 0
jne 0x1400367bd
lea rcx, [rsi - 8]
call fcn.140035410
test al, al
je 0x1400367b6
mov r8, qword [rsi + 0x168]
jmp 0x1400367bd
lea r8, [0x14025b7ec]
mov r9d, ebx
mov rcx, r15
mov edx, r12d
call fcn.14007c2b0
mov r8, qword [rsp + 0x48]
sub r12d, ebx
shr ebx, 1
mov eax, 1
mov r9d, edi
cmovne eax, ebx
mov ebx, eax
lea edx, [rax - 1]
mov eax, 0x3a
mov word [r15 + rdx*2], ax
lea rcx, [r15 + rbx*2]
mov edx, r12d
call fcn.14007c2b0
mov edi, dword [rsp + 0x44]
lea rdx, [rsp + 0x40]
add edi, ebx
mov ecx, r13d
movzx ebx, byte [rsp + 0x40]
call fcn.14003a250
mov ecx, dword [rsp + 0x44]
mov r8, rax
mov r9d, ebx
lea eax, [rcx + rcx]
sub r12d, eax
lea rcx, [r15 + rdi*2]
mov edx, r12d
call fcn.14007c2b0
movzx eax, byte [rsp + 0x40]
xor ecx, ecx
mov r8d, dword [rsi + 0x14c]
mov rdx, r15
shr eax, 1
add eax, edi
mov word [r15 + rax*2], cx
lea rcx, [rsi - 8]
call fcn.140035af0
test al, al
jne 0x1400368a2
mov rcx, qword [0x1402aa8a0]
cmp rcx, r14
je 0x14003697e
test dword [rcx + 0x44], 0x200
je 0x14003697e
cmp byte [rcx + 0x41], 2
jb 0x14003697e
mov rcx, qword [rcx + 0x38]
lea r8, [0x140261890]
mov edx, 0x2e
mov r9, r15
call fcn.140033560
mov rcx, r15
call fcn.1400e2180
jmp 0x140036729
mov eax, dword [rsi + 0x14c]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsi + 0x158]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x14003693c
mov rdx, qword [rsi + 8]
add rdx, qword [rsp + 0x48]
mov r8d, dword [rsi + 0x14c]
inc r8d
mov qword [rsi + 8], rdx
mov dword [rsi + 0x14c], r8d
mov rcx, qword [0x1402aa8a0]
cmp rcx, r14
je 0x14003697e
test dword [rcx + 0x44], 0x200
je 0x14003697e
cmp byte [rcx + 0x41], 4
jb 0x14003697e
movzx eax, word [rsp + 0xd0]
mov r9, r15
mov rcx, qword [rcx + 0x38]
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov eax, dword [rsi + 0x148]
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], eax
call fcn.140034e20
mov rcx, r15
call fcn.1400e2180
jmp 0x140036729
mov rcx, qword [0x1402aa8a0]
cmp rcx, r14
je 0x14003696f
test dword [rcx + 0x44], 0x200
je 0x14003696f
cmp byte [rcx + 0x41], 2
jb 0x14003696f
mov rcx, qword [rcx + 0x38]
lea r8, [0x140261890]
mov edx, 0x30
mov r9, r15
call fcn.140033560
mov edx, dword [rsi + 0x14c]
lea rcx, [rsi - 8]
call fcn.140036f90
mov rcx, r15
call fcn.1400e2180
jmp 0x140036729
mov rax, qword [0x1402aa8a0]
lea r14, [0x1402aa8a0]
cmp rax, r14
je 0x140036740
test dword [rax + 0x44], 0x200
je 0x140036740
cmp byte [rax + 0x41], 5
jb 0x140036740
lea rdx, [rsp + 0x40]
mov ecx, r13d
call fcn.14003a250
mov rcx, qword [0x1402aa8a0]
lea r8, [0x140261890]
mov r9, rax
mov edx, 0x2c
mov rcx, qword [rcx + 0x38]
call fcn.140033560
jmp 0x140036740