Function at 0x1400360c0
Capabilities:
Get file size

Disassembly:
push rsi
push rdi
push r13
push r14
sub rsp, 0x88
mov rax, qword [0x1402e7d18]
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 0x14003610d
movabs rcx, 0x1000100000001
bt rcx, rax
jb 0x14003646b
cmp r13d, 0x60
je 0x14003646b
cmp r13d, 0x70
je 0x14003646b
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x78], rbp
mov rcx, qword [0x1402eb3e0]
lea r14, [0x1402eb3e0]
cmp rcx, r14
je 0x140036165
test dword [rcx + 0x44], 0x200
je 0x140036165
cmp byte [rcx + 0x41], 4
jb 0x140036165
mov rcx, qword [rcx + 0x38]
lea r8, [0x1402a02e8]
mov edx, 0x1a
call fcn.140024250
xor ebx, ebx
cmp qword [rsi + 0x168], rbx
je 0x14003617a
mov ebx, dword [rsi + 0x160]
test ebx, ebx
jne 0x14003618d
lea rcx, [rsi - 8]
call fcn.140034f10
test al, al
je 0x14003618d
mov ebx, dword [rsi + 0x160]
cmp byte [rsi + 0x150], 0
jne 0x14003619e
inc dword [rsi + 0x148]
jmp 0x140036213
mov qword [rsp + 0x70], r12
lea rdx, [rsp + 0x40]
mov ecx, r13d
mov qword [rsp + 0x68], r15
call fcn.140039ea0
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.1400e59b0
mov r15, rax
test rax, rax
jne 0x14003623b
mov rcx, qword [0x1402eb3e0]
cmp rcx, r14
je 0x140036209
test dword [rcx + 0x44], 0x200
je 0x140036209
cmp byte [rcx + 0x41], 2
jb 0x140036209
mov rcx, qword [rcx + 0x38]
lea edx, [rax + 0x2d]
lea r8, [0x1402a02e8]
call fcn.140024250
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.140154650
add rsp, 0x88
pop r14
pop r13
pop rdi
pop rsi
ret
mov rcx, qword [0x1402eb3e0]
cmp rcx, r14
je 0x14003626b
test dword [rcx + 0x44], 0x200
je 0x14003626b
cmp byte [rcx + 0x41], 4
jb 0x14003626b
mov rcx, qword [rcx + 0x38]
lea r8, [0x1402a02e8]
mov edx, 0x19
call fcn.140024250
mov r8, qword [rsi + 0x168]
test r8, r8
je 0x140036280
cmp dword [rsi + 0x160], 0
jne 0x14003629d
lea rcx, [rsi - 8]
call fcn.140034f10
test al, al
je 0x140036296
mov r8, qword [rsi + 0x168]
jmp 0x14003629d
lea r8, [0x14029a19c]
mov r9d, ebx
mov rcx, r15
mov edx, r12d
call fcn.14007da50
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.14007da50
mov edi, dword [rsp + 0x44]
lea rdx, [rsp + 0x40]
add edi, ebx
mov ecx, r13d
movzx ebx, byte [rsp + 0x40]
call fcn.140039ea0
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.14007da50
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.1400355f0
test al, al
jne 0x140036382
mov rcx, qword [0x1402eb3e0]
cmp rcx, r14
je 0x14003645e
test dword [rcx + 0x44], 0x200
je 0x14003645e
cmp byte [rcx + 0x41], 2
jb 0x14003645e
mov rcx, qword [rcx + 0x38]
lea r8, [0x1402a02e8]
mov edx, 0x2e
mov r9, r15
call fcn.140033550
mov rcx, r15
call fcn.1400e5990
jmp 0x140036209
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 0x14003641c
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 [0x1402eb3e0]
cmp rcx, r14
je 0x14003645e
test dword [rcx + 0x44], 0x200
je 0x14003645e
cmp byte [rcx + 0x41], 4
jb 0x14003645e
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.140034920
mov rcx, r15
call fcn.1400e5990
jmp 0x140036209
mov rcx, qword [0x1402eb3e0]
cmp rcx, r14
je 0x14003644f
test dword [rcx + 0x44], 0x200
je 0x14003644f
cmp byte [rcx + 0x41], 2
jb 0x14003644f
mov rcx, qword [rcx + 0x38]
lea r8, [0x1402a02e8]
mov edx, 0x30
mov r9, r15
call fcn.140033550
mov edx, dword [rsi + 0x14c]
lea rcx, [rsi - 8]
call fcn.140036bb0
mov rcx, r15
call fcn.1400e5990
jmp 0x140036209
mov rax, qword [0x1402eb3e0]
lea r14, [0x1402eb3e0]
cmp rax, r14
je 0x140036220
test dword [rax + 0x44], 0x200
je 0x140036220
cmp byte [rax + 0x41], 5
jb 0x140036220
lea rdx, [rsp + 0x40]
mov ecx, r13d
call fcn.140039ea0
mov rcx, qword [0x1402eb3e0]
lea r8, [0x1402a02e8]
mov r9, rax
mov edx, 0x2c
mov rcx, qword [rcx + 0x38]
call fcn.140033550
jmp 0x140036220