Function at 0x1800cbd90
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x1800e5c38]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rdi, qword [rbp + 0xd0]
lea eax, [rcx - 0xc]
mov r10, qword [rbp - 0x80]
cmp ecx, eax
mov r11, qword [rbp - 0x80]
mov r15, r9
mov r9, qword [rbp - 0x80]
mov esi, ecx
mov eax, dword [rsp + 0x48]
mov r14d, ecx
mov ebx, dword [rsp + 0x54]
mov r13, r8
mov r12d, dword [rsp + 0x48]
mov dword [rsp + 0x50], ecx
mov ecx, dword [rsp + 0x48]
mov qword [rsp + 0x70], r9
mov qword [rbp - 0x58], r8
mov qword [rsp + 0x58], rdx
mov qword [rbp - 0x70], rdi
mov qword [rsp + 0x68], r10
mov qword [rbp - 0x78], r11
jbe 0x1800cc66d
mov r13, qword [rbp - 0x40]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x48]
mov qword [rbp - 0x50], rax
mov dword [rsp + 0x40], ecx
lea eax, [r14 - 0xce]
lea r8, [0x180000000]
cmp eax, 0x31
ja case.0x1800cbe52.218
movzx eax, byte [r8 + rax + 0xcc900]
mov ecx, dword [r8 + rax*4 + 0xcc8cc]
add rcx, r8
jmp rcx
mov rsi, qword [rbp - 0x80]
lea rax, [rbp - 0x48]
mov qword [rsp + 0x38], 0
lea r8, [rbp + 0x40]
mov qword [rsp + 0x30], rax
mov r9d, 0x20
lea rax, [rbp + 0x40]
mov dword [rsp + 0x28], 0x20
mov edx, 0x74004
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1800cbe9d
mov rax, qword [rbp + 0x48]
jmp 0x1800cbf03
mov qword [rsp + 0x38], 0
lea rax, [rbp - 0x48]
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x28]
lea rax, [rbp + 0x28]
mov dword [rsp + 0x28], 0x18
mov r9d, 0x18
mov qword [rsp + 0x20], rax
mov edx, 0x70000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1800cbeee
mov eax, dword [rbp + 0x34]
imul eax, dword [rbp + 0x38]
imul eax, dword [rbp + 0x3c]
imul rax, qword [rbp + 0x28]
jmp 0x1800cbf03
lea rdx, [rbp - 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800cbf16
mov rax, qword [rbp - 0x30]
mov rcx, qword [rsp + 0x58]
cqo
movsxd rcx, dword [rcx]
idiv rcx
mov rcx, qword [rbp - 0x58]
mov dword [rcx], eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r10, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x58]
mov r9, qword [rsp + 0x70]
mov esi, dword [rsp + 0x50]
mov r11, qword [rbp - 0x78]
mov ecx, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
dec r14d
lea eax, [rsi - 0xc]
cmp r14d, eax
ja 0x1800cbe27
mov r13, qword [rbp - 0x58]
mov r14d, dword [rsp + 0x48]
mov edi, esi
mov esi, dword [rsp + 0x48]
mov eax, dword [rsp + 0x50]
add eax, 0x88d
cmp edi, eax
jae 0x1800cc02c
cmp edi, 0x1ae
ja 0x1800cc76c
je 0x1800cc75b
mov eax, edi
sub eax, 0xcf
je 0x1800cc70d
sub eax, 0xc
je 0x1800cc02c
sub eax, 0xc
je 0x1800cc6f5
sub eax, 0xc
je 0x1800cc684
cmp eax, 0xa3
jne 0x1800cc899
mov edi, 0x196
jmp 0x1800cc899
mov rax, qword [rdx + 8]
cmp qword [rdx], rax
je 0x1800cc640
mov byte [rsp + 0x54], 1
mov ebx, dword [rsp + 0x54]
jmp case.0x1800cbe52.218
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, r15
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp - 0x80], rax
cmp rax, 0xffffffffffffffff
jne 0x1800cbf1f
mov eax, 0x2b
nop dword [rax]
cmp eax, 0x2b
je 0x1800cc055
cmp eax, 0x11f9
jne 0x1800cc05e
mov eax, ebx
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1800d0500
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ebx, 9
mov dword [rsp + 0x54], ebx
add eax, 0x11ce
cmp eax, 0x239c
jbe 0x1800cc020
jmp 0x1800cbf1f
mov r9, rdi
lea rcx, [rbp + 0x10]
mov r8d, 0x40
mov rdx, r15
call fcn.1800a6bd0
mov r12d, eax
test eax, eax
jle 0x1800cc39c
nop
mov esi, 0xf4
xor r14d, r14d
mov dword [rsp + 0x78], esi
nop dword [rax]
cmp r14d, 5
ja case.default.0x1800cc0bc
lea rdx, [0x180000000]
mov ecx, dword [rdx + r14*4 + 0xcc934]
add rcx, rdx
jmp rcx
mov eax, dword [rbp + 0x1c]
lea r8, [rsp + 0x78]
mov qword [rbp - 0x18], rax
lea rcx, [rsp + 0x60]
mov eax, dword [rdi + 0x10]
mov r9d, 0x12a
mov dword [rsp + 0x60], eax
mov rdx, r15
mov eax, dword [rdi + 0xc]
mov dword [rsp + 0x78], eax
call fcn.18009f9e0
test eax, eax
je case.default.0x1800cc0bc
mov ecx, 2
mov eax, ecx
sub eax, 2
je 0x1800cc12c
cmp eax, 1
jne 0x1800cc132
test r13, r13
je 0x1800cc398
mov edi, 0x43
cmp edi, 0x43
je 0x1800cc37c
cmp edi, 0x66
jne 0x1800cc385
xor r13d, r13d
jmp 0x1800cc385
mov r12d, 0xffffffff
inc ecx
cmp ecx, 4
jb 0x1800cc0f8
jmp case.default.0x1800cc0bc
mov ecx, dword [rbp + 0x1c]
lea r9, [rbp - 0x68]
add ecx, dword [rbp + 0x18]
mov r8d, 0x11f
mov eax, dword [rdi + 8]
mov rdx, r15
mov dword [rbp - 0x68], ecx
add eax, 0x18
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x48], eax
call fcn.18009f510
mov r13, rax
mov qword [rbp - 0x40], rax
jmp case.default.0x1800cc0bc
test r13, r13
jne case.default.0x1800cc0bc
mov edi, 0x10a
cmp edi, 0x10a
je 0x1800cc210
cmp edi, 0x1b1
je 0x1800cc1a4
cmp edi, 0x258
je 0x1800cc398
jmp 0x1800cc216
mov rcx, qword [rbp - 0x70]
lea r8, [rsp + 0x60]
mov r9d, 0x12a
mov rdx, r15
mov eax, dword [rcx + 0x10]
mov dword [rsp + 0x78], eax
mov eax, dword [rcx + 0xc]
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x60], eax
call fcn.18009f9e0
test eax, eax
jne 0x1800cc398
mov rax, qword [rbp - 0x70]
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov r8d, 0xb9
mov rdx, r15
mov eax, dword [rax + 8]
mov dword [rsp + 0x60], eax
call fcn.180095150
test eax, eax
je 0x1800cc216
lea r8, str.unicode:_utf16_high_surrogate_found_without_low_surrogate
xor edx, edx
mov rcx, r15
call qword [r15 + 0x110]
jmp 0x1800cc216
mov r12d, 0xffffffff
add edi, 0xa7
cmp edi, 0x2ff
jb 0x1800cc182
jmp case.default.0x1800cc0bc
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
test rax, rax
je 0x1800cc316
movaps xmm0, xmmword [rbp - 0x20]
lea r8, [rbp - 0x10]
movaps xmm1, xmmword [rbp - 0x40]
lea rdx, [rbp]
mov r9, qword [rbp - 0x58]
mov rcx, r15
movdqa xmmword [rbp - 0x10], xmm0
movdqa xmmword [rbp], xmm1
call rax
test eax, eax
je 0x1800cc316
mov esi, 0x5c
nop
mov eax, esi
sub eax, 0x5c
je 0x1800cc2a1
sub eax, 1
je 0x1800cc28a
cmp eax, 1
je 0x1800cc398
jmp 0x1800cc307
test r13, r13
je 0x1800cc307
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r13d, r13d
mov qword [rbp - 0x40], r13
jmp 0x1800cc307
mov eax, dword [rdi + 8]
lea rcx, [rsp + 0x60]
mov r12d, dword [rsp + 0x44]
xor r9d, r9d
mov r8d, 0xb9
mov dword [rsp + 0x60], eax
mov rdx, r15
call fcn.180095150
test eax, eax
je 0x1800cc307
mov edi, 0xb1
nop dword [rax]
mov eax, edi
sub eax, 0xb0
je 0x1800cc2f3
cmp eax, 1
jne 0x1800cc2f9
lea r8, str.err_typecheck_arr_assign_enumeration
xor edx, edx
mov rcx, r15
call qword [r15 + 0x110]
jmp 0x1800cc2f9
mov r12d, 0xffffffff
dec edi
cmp edi, 0xaf
ja 0x1800cc2d0
mov rdi, qword [rbp - 0x70]
inc esi
cmp esi, 0x5f
jb 0x1800cc270
mov esi, dword [rsp + 0x78]
test r13, r13
je case.default.0x1800cc0bc
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r13d, r13d
mov qword [rbp - 0x40], r13
jmp case.default.0x1800cc0bc
inc dword [rsp + 0x44]
jmp case.default.0x1800cc0bc
mov eax, dword [rbp + 0x18]
mov qword [rbp - 0x38], rax
add rax, r13
mov qword [rbp - 0x20], rax
mov rdi, qword [rbp - 0x70]
inc esi
inc r14d
mov dword [rsp + 0x78], esi
cmp esi, 0xfa
jb 0x1800cc0a0
mov r9, rdi
lea rcx, [rbp + 0x10]
mov r8d, 0x40
mov rdx, r15
call fcn.1800a6bd0
mov r12d, eax
test eax, eax
jg 0x1800cc090
jmp 0x1800cc398
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add edi, 0x23
cmp edi, 0x89
jb 0x1800cc112
mov qword [rbp - 0x40], r13
mov esi, dword [rsp + 0x50]
mov rdi, qword [rbp - 0x70]
mov r14d, 0xf1
mov r10, qword [rsp + 0x68]
mov r9, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x58]
jmp 0x1800cbf32
mov rax, qword [r15 + 0xe8]
xor ecx, ecx
mov dword [rsp + 0x44], ecx
mov qword [rdi], rax
jmp 0x1800cbf3a
mov ecx, dword [rsp + 0x44]
xor r8d, r8d
mov dword [rsp + 0x40], r8d
jmp 0x1800cbf3f
mov eax, dword [r15]
mov ecx, 0xfffffffc
mov r9d, eax
and r9, rcx
and eax, 1
mov qword [rsp + 0x70], r9
mov qword [rbp - 0x50], rax
jmp case.0x1800cbe52.218
mov rcx, r15
call qword [r15]
test al, al
jne 0x1800cc3a6
mov ecx, 0x124
nop
mov eax, ecx
sub eax, 0x123
je 0x1800cc02c
cmp eax, 1
jne 0x1800cc42b
mov byte [rsp + 0x54], 0
mov ebx, dword [rsp + 0x54]
dec ecx
cmp ecx, 0x122
ja 0x1800cc410
mov r10, qword [rsp + 0x68]
mov r9, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x58]
jmp 0x1800cbf32
mov rax, qword [r15 + 0x10]
test rax, rax
jne 0x1800cc460
mov r10, qword [r15 + 8]
mov qword [rsp + 0x68], r10
jmp case.0x1800cbe52.218
cmp qword [r15 + 8], 0
jne 0x1800cc474
mov r10, rax
mov qword [rsp + 0x68], rax
jmp case.0x1800cbe52.218
mov esi, 8
nop dword [rax]
cmp esi, 8
ja case.default.0x1800cc496
mov eax, esi
mov ecx, dword [r8 + rax*4 + 0xcc94c]
add rcx, r8
jmp rcx
mov rcx, qword [rbp - 0x60]
cmp r9, rcx
jne 0x1800cc4b3
mov eax, dword [rcx]
mov r9, r15
mov dword [r15], eax
mov qword [rsp + 0x70], r15
jmp case.default.0x1800cc496
mov edi, 0x111
nop dword [rax + rax]
mov eax, edi
sub eax, 0x10f
je 0x1800cc4ee
sub eax, 1
je 0x1800cc4e0
cmp eax, 1
jne 0x1800cc50d
test r10, r10
je 0x1800cc50d
mov r8, r10
mov rcx, r9
jmp 0x1800cc4f5
mov qword [r9 + 0x10], r10
mov rax, qword [rcx + 8]
mov qword [r15 + 8], rax
jmp 0x1800cc50d
mov r8, qword [rcx + 8]
mov rcx, r15
mov edx, 0x101
call fcn.1800934b0
mov r9, qword [rsp + 0x70]
mov r10, qword [rsp + 0x68]
mov rcx, qword [rbp - 0x60]
dec edi
cmp edi, 0x10e
ja 0x1800cc4c0
mov eax, dword [rcx]
mov dword [r15], eax
jmp case.default.0x1800cc496
mov r9d, dword [r15]
mov eax, 0xfffffffc
and r9, rax
mov qword [rsp + 0x70], r9
jmp case.default.0x1800cc496
mov qword [rbp - 0x60], r15
jmp case.default.0x1800cc496
mov rdi, qword [rbp - 0x60]
mov edx, 0x101
mov rcx, r15
mov rax, qword [rdi + 0x10]
mov qword [r15 + 0x10], rax
mov r8, qword [rdi + 0x10]
call fcn.1800934b0
mov r10, qword [rsp + 0x68]
mov r9, qword [rsp + 0x70]
jmp case.default.0x1800cc496
mov r10, qword [r15 + 8]
mov qword [rsp + 0x68], r10
jmp case.default.0x1800cc496
mov r15, qword [r15 + 8]
mov rax, qword [r15 + 0x10]
test rax, rax
je case.default.0x1800cc496
mov r15, rax
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1800cc580
jmp case.default.0x1800cc496
mov eax, dword [r15]
and eax, 1
mov dword [rbp - 0x50], eax
jmp case.default.0x1800cc496
mov rcx, qword [rbp - 0x60]
mov r8d, 0xfffffffc
mov eax, dword [rcx]
test r8d, eax
je 0x1800cc5bf
and rax, r8
cmp qword [rax + 0x10], rcx
jne 0x1800cc5b9
mov qword [rax + 0x10], r15
jmp case.default.0x1800cc496
mov qword [rax + 8], r15
jmp case.default.0x1800cc496
mov qword [rdx], r15
mov rdx, qword [rsp + 0x58]
lea r8, [0x180000000]
dec esi
lea eax, [rsi + 0xd4]
cmp eax, 0xd3
ja 0x1800cc480
mov rdi, qword [rbp - 0x70]
jmp 0x1800cbf2e
mov qword [r15 + 0xe8], rdi
jmp case.0x1800cbe52.218
mov rcx, qword [r15]
cmp dword [rcx], 0x7f2bb705
je 0x1800cc62d
mov eax, 0x34
cmp eax, 0x34
je 0x1800cc618
cmp eax, 0x2254
je 0x1800cc02c
jmp 0x1800cc621
mov ebx, 0x7f2bb705
mov dword [rsp + 0x54], ebx
add eax, 0x2220
cmp eax, 0x4440
jbe 0x1800cc606
mov r11, qword [rcx + 0x70]
mov qword [rbp - 0x78], r11
jmp case.0x1800cbe52.218
mov byte [rsp + 0x54], 0
mov eax, dword [rsp + 0x54]
jmp 0x1800cc02e
mov esi, dword [rsp + 0x48]
mov edi, 0x196
mov r14d, dword [rsp + 0x48]
mov r8d, dword [rsp + 0x40]
jmp 0x1800cc899
xor eax, eax
jmp 0x1800cc02e
mov r8d, dword [rsp + 0x48]
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x44], ecx
mov qword [rbp - 0x50], rax
jmp 0x1800cbf52
mov rax, qword [rbp - 0x70]
mov rax, qword [rax]
mov qword [r15 + 0xe8], rax
test r12d, r12d
jns 0x1800cc6c8
mov ecx, 0x112
nop dword [rax]
mov eax, ecx
sub eax, 0x112
je 0x1800cc6b4
cmp eax, 1
je 0x1800cc02c
jmp 0x1800cc6b9
mov ebx, 0xffffffff
inc ecx
cmp ecx, 0x114
jb 0x1800cc6a0
jmp 0x1800cc899
mov eax, 0x3c
nop dword [rax]
cmp eax, 0x3c
je 0x1800cc6e2
cmp eax, 0x2d00
je 0x1800cc02c
jmp 0x1800cc6e4
mov ebx, ecx
add eax, 0x2cc4
cmp eax, 0x5988
jbe 0x1800cc6d0
jmp 0x1800cc899
cmp dword [r11], 0x7f2bb706
jne 0x1800cc8c0
mov esi, dword [r11 + 0x28]
add esi, dword [rdx]
jmp 0x1800cc899
test r10, r10
je 0x1800cc731
mov r8, r10
mov edx, 0x101
mov rcx, r9
call fcn.1800934b0
mov r10, qword [rsp + 0x68]
mov r9, qword [rsp + 0x70]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
test r9, r9
je 0x1800cc753
cmp qword [r9 + 0x10], r15
jne 0x1800cc74a
mov qword [r9 + 0x10], r10
jmp 0x1800cc899
mov qword [r9 + 8], r10
jmp 0x1800cc899
mov qword [rdx], r10
jmp 0x1800cc899
mov rcx, qword [r15]
mov eax, esi
cdq
idiv dword [rcx + 0x18]
mov r14d, eax
jmp 0x1800cc894
mov eax, edi
sub eax, 0x25d
je 0x1800cc87b
sub eax, 0x18
je 0x1800cc833
sub eax, 0xc7
je 0x1800cc7fd
sub eax, 0xc7
je 0x1800cc7a3
cmp eax, 0xc7
jne 0x1800cc899
mov eax, r8d
jmp 0x1800cc02e
mov rcx, qword [r11 + 0x18]
test rcx, rcx
je 0x1800cc899
mov rax, qword [rcx + 8]
cmp qword [rax + 0x40], 0
je 0x1800cc899
mov eax, dword [r13]
lea r8, [rbp - 0x80]
mov dword [rbp - 0x68], eax
mov r9d, 0xd1
mov eax, dword [rdx]
mov rdx, qword [rbp - 0x70]
mov dword [rsp + 0x48], eax
lea rax, [rsp + 0x48]
mov qword [rbp - 0x80], rcx
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x20], rax
call fcn.18004e480
mov r8d, eax
mov dword [rsp + 0x40], eax
jmp 0x1800cc894
test r8d, r8d
je 0x1800cc899
mov ecx, 0x129
nop dword [rax + rax]
mov eax, ecx
sub eax, 0x129
je 0x1800cc824
cmp eax, 1
je 0x1800cc02c
jmp 0x1800cc827
mov ebx, r8d
inc ecx
cmp ecx, 0x12b
jb 0x1800cc810
jmp 0x1800cc899
mov r8, qword [r15]
lea r9, [rsp + 0x48]
mov eax, esi
mov qword [rbp - 0x80], r8
cdq
mov ecx, dword [r8 + 0x18]
lea r8, [rbp - 0x80]
idiv ecx
mov eax, dword [r13]
dec edx
add edx, ecx
add eax, edx
cdq
idiv ecx
lea rdx, [rbp - 0x60]
mov ecx, 0xd7
mov dword [rsp + 0x48], eax
mov eax, r14d
mov qword [rbp - 0x60], rax
call fcn.1800a9f50
mov r8d, eax
mov dword [rsp + 0x40], eax
jmp 0x1800cc894
cmp dword [rbp - 0x50], 1
jne 0x1800cc899
mov r8d, 0xf0
mov rcx, r10
call fcn.180067090
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x44]
add edi, 0xc7
mov r10, qword [rsp + 0x68]
mov r9, qword [rsp + 0x70]
mov r11, qword [rbp - 0x78]
mov r13, qword [rbp - 0x58]
jmp 0x1800cbf5d
mov eax, 0x7f2bb706
jmp 0x1800cc02e