Function at 0x14003f010
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x1400981e8]
xor rax, rsp
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0xf0]
mov r13, rcx
mov qword [rbp - 0x30], rax
mov r14, rdx
mov qword [rbp - 0x78], r9
mov rcx, rdx
mov edi, 0xfa00
mov r12d, 0x7d00
test rdx, rdx
je 0x14003f089
mov eax, dword [rdx]
test eax, eax
je 0x14003f089
nop
cmp eax, 1
je 0x14003f132
mov eax, dword [rcx + 4]
add rcx, 8
add rcx, rax
mov eax, dword [rcx]
test eax, eax
jne 0x14003f070
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov edx, 0x100080
mov dword [rsp + 0x28], 0x2200080
mov rcx, r13
mov esi, ebx
mov qword [rbp - 0x10], rbx
lea r8d, [rbx + 7]
mov dword [rsp + 0x20], 3
call qword [0x140098130]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14003f331
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x14003f0dc
cmp eax, 2
jne 0x14003f329
test esi, esi
jle 0x14003f329
mov ecx, 0xc8
cmp esi, ecx
cmovl ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2200080
mov edx, 0x100080
mov rcx, r13
mov dword [rsp + 0x20], 3
sub esi, 0xc8
lea r8d, [r9 + 7]
call qword [0x140098130]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14003f0c8
jmp 0x14003f331
xor ebx, ebx
lea rcx, [rsp + 0x70]
mov rdx, r13
mov qword [rsp + 0x60], rbx
mov esi, ebx
mov qword [rbp - 0x20], rbx
call qword [0x140098040]
movzx eax, word [rsp + 0x70]
cmp ax, di
jb 0x14003f230
movaps xmm0, xmmword [rsp + 0x70]
mov rdi, r12
shr rax, 1
cmp rax, r12
movdqa xmmword [rbp - 0x10], xmm0
psrldq xmm0, 8
cmovb rdi, rax
movq rdx, xmm0
cmp word [rdx + rdi*2], 0x5c
je 0x14003f18d
dec rdi
cmp word [rdx + rdi*2], 0x5c
jne 0x14003f183
lea rcx, [rbp - 0x70]
call qword [0x140098040]
mov rdx, qword [rbp - 8]
lea rcx, [rsp + 0x70]
add rdx, 2
movzx eax, di
add ax, ax
mov word [rbp - 0x70], ax
lea rdx, [rdx + rdi*2]
call qword [0x140098040]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x28], 0x21
xorps xmm0, xmm0
mov qword [rbp + 0x10], rax
lea r9, [rbp + 0x30]
mov dword [rbp], 0x30
lea r8, [rbp]
mov qword [rbp + 8], rbx
mov edx, 0x100000
mov dword [rbp + 0x18], 0x40
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x20], 3
movdqu xmmword [rbp + 0x20], xmm0
call qword [0x140098010]
mov ecx, eax
mov edi, eax
call qword [0x140098038]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
jns 0x14003f230
mov rdx, r13
lea rcx, [rsp + 0x70]
call qword [0x140098040]
mov rax, rbx
mov qword [rsp + 0x60], rbx
jmp 0x14003f235
mov rax, qword [rsp + 0x60]
mov dword [rbp - 0x60], 0x30
mov rcx, r14
mov qword [rbp - 0x58], rax
mov eax, dword [r14]
test eax, eax
je 0x14003f269
nop word [rax + rax]
cmp eax, 0x17
je 0x14003f2f3
mov eax, dword [rcx + 4]
add rcx, 8
add rcx, rax
mov eax, dword [rcx]
test eax, eax
jne 0x14003f250
mov dword [rbp - 0x48], 0x40
lea rax, [rsp + 0x70]
xorps xmm0, xmm0
mov qword [rbp - 0x50], rax
movdqu xmmword [rbp - 0x40], xmm0
mov dword [rsp + 0x50], ebx
lea r9, [rbp + 0x40]
mov qword [rsp + 0x48], rbx
lea r8, [rbp - 0x60]
mov dword [rsp + 0x40], 0x4020
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x38], 1
mov edx, 0x100080
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rbx
call qword [0x140098008]
mov r15d, eax
cmp eax, 0xc0000043
je 0x14003f2d7
cmp eax, 0xc000000f
jne 0x14003f2fb
test esi, esi
jle 0x14003f2fb
mov ecx, 0xc8
cmp esi, ecx
cmovl ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 0xc8
jmp 0x14003f281
mov dword [rbp - 0x48], ebx
jmp 0x14003f270
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14003f30b
call qword [section..data]
mov ecx, r15d
call qword [0x140098038]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r15d, r15d
mov rdi, rbx
cmovns rdi, qword [rbp - 0x80]
jmp 0x14003f331
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
test rdi, rdi
je 0x14003f71c
lea rdx, [rbp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x14003f363
mov rcx, rdi
call qword [0x140098118]
mov r15d, dword [rsp + 0x60]
mov ebx, 0xffffffff
jmp 0x14003f70c
mov ecx, dword [rbp + 0x50]
call fcn.14003d470
mov rsi, qword [rbp - 0x78]
mov r15d, eax
test rsi, rsi
je 0x14003f3b3
lea rdx, [rsp + 0x6c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x68], eax
cmp eax, 0xffffffff
jne 0x14003f3ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14003f3ab
mov rcx, rdi
call qword [0x140098118]
mov ebx, 0xffffffff
jmp 0x14003f70c
mov rax, qword [rsp + 0x68]
mov qword [rsi], rax
mov rcx, rdi
call qword [0x140098118]
test r15b, 0x10
je 0x14003f70c
mov rcx, r14
test r14, r14
je 0x14003f3ee
mov eax, dword [r14]
test eax, eax
je 0x14003f3ee
cmp eax, 1
je 0x14003f49a
mov eax, dword [rcx + 4]
add rcx, 8
add rcx, rax
mov eax, dword [rcx]
test eax, eax
jne 0x14003f3d5
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2000080
mov edx, 0x100080
mov rcx, r13
mov qword [rbp - 0x20], rbx
mov esi, ebx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [0x140098130]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14003f6a0
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x14003f444
cmp eax, 2
jne 0x14003f698
test esi, esi
jle 0x14003f698
mov ecx, 0xc8
cmp esi, ecx
cmovl ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2000080
mov edx, 0x100080
mov rcx, r13
mov dword [rsp + 0x20], 3
sub esi, 0xc8
lea r8d, [r9 + 7]
call qword [0x140098130]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14003f430
jmp 0x14003f6a0
mov rdx, r13
mov qword [rsp + 0x60], rbx
lea rcx, [rsp + 0x70]
mov qword [rbp - 0x10], rbx
mov esi, ebx
call qword [0x140098040]
movzx eax, word [rsp + 0x70]
mov ecx, 0xfa00
cmp ax, cx
jb 0x14003f59f
movaps xmm0, xmmword [rsp + 0x70]
shr rax, 1
cmp rax, r12
movdqa xmmword [rbp - 0x20], xmm0
psrldq xmm0, 8
cmovb r12, rax
movq rdx, xmm0
cmp word [rdx + r12*2], 0x5c
je 0x14003f4fb
nop dword [rax]
dec r12
cmp word [rdx + r12*2], 0x5c
jne 0x14003f4f0
lea rcx, [rbp - 0x70]
call qword [0x140098040]
mov rdx, qword [rbp - 0x18]
lea rcx, [rsp + 0x70]
add rdx, 2
movzx eax, r12w
add ax, ax
mov word [rbp - 0x70], ax
lea rdx, [rdx + r12*2]
call qword [0x140098040]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x28], 0x21
xorps xmm0, xmm0
mov qword [rbp + 0x10], rax
lea r9, [rbp + 0x40]
mov dword [rbp], 0x30
lea r8, [rbp]
mov qword [rbp + 8], rbx
mov edx, 0x100000
mov dword [rbp + 0x18], 0x40
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x20], 3
movdqu xmmword [rbp + 0x20], xmm0
call qword [0x140098010]
mov ecx, eax
mov edi, eax
call qword [0x140098038]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
jns 0x14003f59f
mov rdx, r13
lea rcx, [rsp + 0x70]
call qword [0x140098040]
mov rax, rbx
mov qword [rsp + 0x60], rbx
jmp 0x14003f5a4
mov rax, qword [rsp + 0x60]
mov dword [rbp - 0x60], 0x30
mov qword [rbp - 0x58], rax
mov eax, dword [r14]
test eax, eax
je 0x14003f5d1
cmp eax, 0x17
je 0x14003f662
mov eax, dword [r14 + 4]
add r14, 8
add r14, rax
mov eax, dword [r14]
test eax, eax
jne 0x14003f5b6
mov dword [rbp - 0x48], 0x40
lea rax, [rsp + 0x70]
xorps xmm0, xmm0
mov qword [rbp - 0x50], rax
movdqu xmmword [rbp - 0x40], xmm0
nop dword [rax]
mov dword [rsp + 0x50], ebx
lea r9, [rbp + 0x30]
mov qword [rsp + 0x48], rbx
lea r8, [rbp - 0x60]
mov dword [rsp + 0x40], 0x4020
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x38], 1
mov edx, 0x100080
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rbx
call qword [0x140098008]
mov r14d, eax
cmp eax, 0xc0000043
je 0x14003f646
cmp eax, 0xc000000f
jne 0x14003f66a
test esi, esi
jle 0x14003f66a
mov ecx, 0xc8
cmp esi, ecx
cmovl ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 0xc8
jmp 0x14003f5f0
mov dword [rbp - 0x48], ebx
jmp 0x14003f5d8
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14003f67a
call qword [section..data]
mov ecx, r14d
call qword [0x140098038]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14d, r14d
mov rdi, rbx
cmovns rdi, qword [rbp - 0x80]
jmp 0x14003f6a0
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
test rdi, rdi
je 0x14003f71c
lea rdx, [rbp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x14003f6bb
lea ebx, [rax - 1]
jmp 0x14003f6ff
mov ecx, dword [rbp + 0x50]
call fcn.14003d470
mov rsi, qword [rbp - 0x78]
mov r15d, eax
test rsi, rsi
je 0x14003f6ff
lea rdx, [rsp + 0x6c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x68], eax
cmp eax, 0xffffffff
jne 0x14003f6f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14003f6f7
mov ebx, 0xffffffff
jmp 0x14003f6ff
mov rax, qword [rsp + 0x68]
mov qword [rsi], rax
mov rcx, rdi
call qword [0x140098118]
or r15d, 0x10
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x14003f718
mov dword [rax], r15d
mov eax, ebx
jmp 0x14003f721
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x88]
xor rcx, rsp
call fcn.1400498a0
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret