Function at 0x1400af860
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x628
mov rax, qword [rsp + 0x680]
xor r9d, r9d
mov r10d, 1
cmp word [rax], 0x2a
jne 0x1400af8a1
mov byte [rsp + 0x50], r10b
cmp word [rax + 2], r9w
je 0x1400af8a6
mov byte [rsp + 0x50], r9b
mov rsi, qword [rsp + 0x688]
mov r11d, 0x100
mov ebp, r9d
mov rcx, qword [rsi + 0x10]
mov rax, qword [rsi + 8]
mov dword [rsp + 0x74], r9d
mov qword [rsp + 0x148], rax
mov rax, qword [rsi + 0x18]
mov qword [rsp + 0x138], rcx
mov qword [rsp + 0x178], rax
mov rax, qword [rsi + 0x20]
mov qword [rsp + 0x108], r9
mov qword [rsp + 0x168], rax
mov rax, qword [rsi + 0x28]
mov rsi, qword [rsi + 0x30]
mov rdi, rax
and eax, 0x10
mov dword [rsp + 0x70], r9d
mov qword [rsp + 0x158], rax
mov eax, dword [rsp + 0x678]
and rdi, r10
mov ecx, eax
mov r8d, eax
mov edx, eax
and ecx, 2
and r8d, 0x20
and edx, r10d
mov dword [rsp + 0x9c], ecx
mov ecx, eax
mov dword [rsp + 0x78], r8d
mov r8d, eax
and al, 0x40
and ecx, 0x10
and r8d, r11d
neg al
mov dword [rsp + 0x100], ecx
sbb al, al
mov qword [rsp + 0xf8], rdi
mov dword [rsp + 0xd8], edx
and al, 0xfe
mov dword [rsp + 0xe8], r8d
mov ebx, r9d
add al, r10b
cmp ecx, r9d
lea rcx, [rsp + 0x118]
mov byte [rsp + 0x51], al
mov eax, edx
mov qword [rsp + 0xd0], r9
cmovne eax, r10d
mov qword [rsp + 0x140], rsi
mov dword [rsp + 0xec], eax
call fcn.140061d8c
mov ecx, dword [rsp + 0x690]
xor r8d, r8d
mov dword [rsp + 0x690], ecx
cmp rdi, r8
jne 0x1400af9b9
mov rdx, rbx
jmp 0x1400af9ce
mov rdx, qword [rsi]
mov dword [rsp + 0x70], ebx
mov ebx, dword [rsi + 0x10]
mov qword [rsp + 0xd0], rdx
xor r8d, r8d
cmp ecx, r8d
movsxd rax, ecx
jl 0x1400af9df
dec ecx
mov dword [rsp + 0x690], ecx
mov qword [rsp + 0x150], rax
movsxd rax, ebx
mov rdi, r8
mov qword [rsp + 0x130], r8
xor ebx, ebx
mov qword [rsp + 0x160], rax
cmp qword [rsp + 0xf8], rbx
je 0x1400afa1a
mov rax, qword [rdx + rdi*8]
mov rdi, qword [rax]
mov qword [rsp + 0x660], rdi
jmp 0x1400afa22
mov rdi, qword [rsp + 0x660]
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 0x5c]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
lea rcx, [rsp + 0xb8]
mov rbx, rax
mov qword [rsp + 0x170], rax
sub rbx, rdi
add rbx, 2
sar rbx, 1
mov qword [rsp + 0x88], rbx
call fcn.140061d8c
lea rcx, [rsp + 0x184]
xor esi, esi
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x180], esi
call fcn.1400fa680
lea r8, [rsp + 0x180]
lea rcx, [rsp + 0x58]
mov rdx, rdi
mov qword [rsp + 0x58], rsi
call fcn.1400f9a10
xor r8d, r8d
mov dword [rsp + 0x98], r8d
cmp qword [rsp + 0x58], r8
je 0x1400afd24
mov esi, dword [rsp + 0x180]
and esi, 0x10
je 0x1400afaea
mov ecx, 0x2e
cmp cx, word [rsp + 0x1ac]
jne 0x1400afaea
movzx eax, word [rsp + 0x1ae]
cmp ax, r8w
je 0x1400afcef
cmp cx, ax
jne 0x1400afaea
cmp word [rsp + 0x1b0], r8w
je 0x1400afcef
mov edi, dword [rsp + 0x19c]
mov eax, dword [rsp + 0x1a0]
mov rdx, qword [rsp + 0x660]
lea rcx, [rsp + 0x60]
shl rdi, 0x20
movsxd r8, ebx
or rdi, rax
call fcn.14006d82c
lea rdx, [rsp + 0x1ac]
lea rcx, [rsp + 0x60]
call fcn.140061a04
xor r8d, r8d
cmp esi, r8d
jne 0x1400afc1f
cmp word [rsp + 0x1ac], r8w
je 0x1400afbd5
bt dword [rsp + 0x180], 0xa
jae 0x1400afbd5
cmp qword [rsp + 0x158], r8
je 0x1400afbd5
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x38], r8
mov dword [rsp + 0x30], 0x80
lea r9d, [r8 + 7]
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x80], r8
mov qword [rsp + 0x20], r8
call fcn.140003798
mov rbx, qword [rsp + 0x80]
xor r8d, r8d
mov qword [rsp + 0x110], r8
cmp rbx, r8
je 0x1400afbd5
lea rdx, [rsp + 0x110]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rdi, qword [rsp + 0x110]
cmp rbx, 0xffffffffffffffff
je 0x1400afbd2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r8d, r8d
mov rax, qword [rsp + 0x148]
cmp rax, r8
jbe 0x1400afbeb
cmp rdi, rax
jb 0x1400afce5
mov rax, qword [rsp + 0x138]
cmp rax, r8
jbe 0x1400afc01
cmp rdi, rax
ja 0x1400afce5
mov rcx, qword [rsp + 0x168]
cmp rcx, r8
je 0x1400afc1f
xor edx, edx
mov rax, rdi
div rcx
cmp rdx, r8
jne 0x1400afce5
cmp word [rsp + 0x1ac], r8w
je 0x1400afd17
cmp esi, r8d
je 0x1400afc6b
movsxd rcx, dword [rsp + 0xec]
cmp rcx, r8
je 0x1400afce5
mov ecx, 0x10
call fcn.1400fa958
xor edi, edi
mov rbx, rax
cmp rax, rdi
je 0x1400afc75
mov rdx, qword [rsp + 0x60]
mov rcx, rax
call fcn.14006d808
mov byte [rbx + 8], sil
jmp 0x1400afc78
movsxd rcx, dword [rsp + 0x9c]
jmp 0x1400afc3b
mov rbx, rdi
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xc8]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xb8]
mov qword [rsp + 0x28], 1
mov qword [rsp + 0x80], rbx
mov dword [rsp + 0x20], 8
call fcn.140061c18
movsxd rcx, dword [rsp + 0x78]
cmp rcx, rdi
jne 0x1400afce5
mov rsi, qword [rsp + 0x688]
cmp qword [rsi], rdi
jle 0x1400afce5
mov edi, dword [rsp + 0x98]
inc edi
movsxd rax, edi
mov dword [rsp + 0x98], edi
cmp rax, qword [rsi]
jge 0x1400afd17
lea rcx, [rsp + 0x60]
call fcn.1400592f8
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor r8d, r8d
cmp eax, r8d
je 0x1400afd24
mov rbx, qword [rsp + 0x88]
jmp 0x1400afaa9
lea rcx, [rsp + 0x60]
call fcn.1400592f8
xor r8d, r8d
movsxd rcx, dword [rsp + 0x78]
mov rdi, qword [rsp + 0xb8]
mov rax, rcx
cmp rcx, r8
je 0x1400afd51
movsx r8d, byte [rsp + 0x51]
mov edx, dword [rsp + 0xc8]
mov rcx, rdi
call fcn.140066cbc
xor r8d, r8d
movsxd rsi, dword [rsp + 0xc8]
mov rbx, r8
cmp rsi, r8
mov qword [rsp + 0x80], rbx
jle 0x1400aff7e
mov r9, qword [rsp + 0x650]
movzx eax, word [r9 + 0xc8]
mov ecx, 0x100
test cx, ax
je 0x1400afd97
mov ecx, 0xfeff
and ax, cx
mov word [r9 + 0xc8], ax
cmp word [r9 + 0xc8], r8w
jne 0x1400b0452
mov rcx, qword [rsp + 0x688]
cmp qword [rcx], r8
je 0x1400b0452
mov rdx, qword [rdi + rbx*8]
mov al, byte [rdx + 8]
cmp al, r8b
je 0x1400afdd8
movsxd rcx, dword [rsp + 0xd8]
cmp rcx, r8
jne 0x1400afdec
cmp al, r8b
jne 0x1400aff6a
movsxd rcx, dword [rsp + 0x9c]
mov rax, rcx
cmp rcx, r8
je 0x1400aff6a
movsxd rcx, dword [rsp + 0x178]
mov rax, qword [rdx]
inc ebp
mov dword [rsp + 0x74], ebp
lea rdi, [rax + rcx*2]
cmp byte [rsp + 0x50], r8b
je 0x1400afe9a
mov rcx, qword [rsp + 0x658]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rdi
movsxd rbx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x658]
lea esi, [rax + 1]
mov r8d, 0x20000
lea eax, [rsi + rbx + 2]
movsxd rdx, eax
call fcn.1400df890
mov rax, qword [rsp + 0x658]
mov r11, qword [rax]
xor eax, eax
cmp ebx, eax
jle 0x1400afe70
lea ecx, [rax + 0xd]
mov word [r11 + rbx*2], cx
inc ebx
mov ecx, 0xa
movsxd rax, ebx
inc ebx
mov word [r11 + rax*2], cx
movsxd rax, ebx
movsxd r8, esi
mov rdx, rdi
lea rcx, [r11 + rax*2]
add r8, r8
call fcn.14001d310
mov rbx, qword [rsp + 0x80]
movsxd rsi, dword [rsp + 0xc8]
jmp 0x1400aff38
mov rax, qword [rsp + 0x658]
mov r8, rdi
mov rcx, r9
mov rdx, qword [rax]
call fcn.140060cec
movsxd rcx, dword [rsp + 0xe8]
xor r8d, r8d
cmp rcx, r8
je 0x1400aff02
mov rax, qword [rsp + 0x670]
mov rdx, qword [rsp + 0x668]
mov rcx, qword [rsp + 0x650]
add rax, 2
lea r8, [rsp + 0x108]
xor r9d, r9d
mov qword [rsp + 0x108], rax
lea rax, [0x1401145d8]
mov qword [rsp + 0x20], rax
call fcn.1400ab008
jmp 0x1400aff38
mov rax, qword [rsp + 0x680]
cmp word [rax], r8w
je 0x1400aff3b
mov rcx, qword [rsp + 0x698]
mov r8, qword [rsp + 0x668]
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x650]
mov rdx, rax
call fcn.14004ad0c
xor r8d, r8d
mov rcx, qword [rsp + 0x688]
mov rax, qword [rcx]
cmp rax, r8
jle 0x1400aff5a
dec rax
mov qword [rcx], rax
cmp rax, r8
je 0x1400b03f2
mov r9, qword [rsp + 0x650]
mov rdi, qword [rsp + 0xb8]
inc rbx
cmp rbx, rsi
mov qword [rsp + 0x80], rbx
jl 0x1400afd75
movsxd rax, dword [rsp + 0x100]
mov rcx, qword [rsp + 0x58]
cmp rax, r8
je 0x1400b03f7
cmp rcx, r8
je 0x1400affa8
cmp rcx, 0xffffffffffffffff
je 0x1400affa8
call qword [sym.imp.KERNEL32.dll_FindClose]
xor r8d, r8d
lea rcx, [rsp + 0xb8]
mov qword [rsp + 0x58], r8
call fcn.1400ee6f8
lea rcx, [rsp + 0xb8]
call fcn.1400592f8
lea rcx, [rsp + 0xa0]
call fcn.140061d8c
movsxd rsi, dword [rsp + 0x88]
mov rdx, qword [rsp + 0x660]
lea rcx, [rsp + 0xf0]
mov r8, rsi
call fcn.14006d82c
lea rdx, [0x140118d38]
lea rcx, [rsp + 0xf0]
call fcn.140061a04
lea rcx, [rsp + 0x3d4]
xor ebx, ebx
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x3d0], ebx
call fcn.1400fa680
mov rdx, qword [rsp + 0xf0]
lea r8, [rsp + 0x3d0]
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x90], rbx
call fcn.1400f9a10
cmp qword [rsp + 0x90], rbx
je 0x1400b0181
mov rbp, qword [rsp + 0x660]
mov edi, dword [rsp + 0x3d0]
and edi, 0x10
je 0x1400b0146
mov ecx, 0x2e
cmp cx, word [rsp + 0x3fc]
jne 0x1400b00a4
movzx eax, word [rsp + 0x3fe]
cmp ax, bx
je 0x1400b0146
cmp cx, ax
jne 0x1400b00a4
cmp word [rsp + 0x400], bx
je 0x1400b0146
lea rcx, [rsp + 0xe0]
mov r8, rsi
mov rdx, rbp
call fcn.14006d82c
lea rdx, [rsp + 0x3fc]
lea rcx, [rsp + 0xe0]
call fcn.140061a04
mov ecx, 0x10
call fcn.1400fa958
mov rbx, rax
xor eax, eax
cmp rbx, rax
je 0x1400b00f6
mov rdx, qword [rsp + 0xe0]
mov rcx, rbx
call fcn.14006d808
mov byte [rbx + 8], dil
jmp 0x1400b00f9
mov rbx, rax
lea r9, [rsp + 0x88]
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x28], 1
mov qword [rsp + 0x88], rbx
mov dword [rsp + 0x20], 8
call fcn.140061c18
lea rcx, [rsp + 0xe0]
call fcn.1400592f8
xor ebx, ebx
mov rcx, qword [rsp + 0x90]
lea rdx, [rsp + 0x3d0]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
jne 0x1400b0061
mov rcx, qword [rsp + 0x90]
mov ebp, dword [rsp + 0x74]
cmp rcx, rbx
je 0x1400b0181
cmp rcx, 0xffffffffffffffff
je 0x1400b0181
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0xf0]
mov qword [rsp + 0x90], rbx
call fcn.1400592f8
movsxd rcx, dword [rsp + 0x78]
mov rsi, qword [rsp + 0xa0]
cmp rcx, rbx
je 0x1400b01bd
movsx r8d, byte [rsp + 0x51]
mov edx, dword [rsp + 0xb0]
mov rcx, rsi
call fcn.140066cbc
cmp qword [rsp + 0x150], rbx
je 0x1400b0343
movsxd rdi, dword [rsp + 0xb0]
xor eax, eax
cmp rdi, rax
jle 0x1400b0341
mov rdx, qword [rsi + rbx*8]
lea rcx, [rsp + 0x68]
call fcn.14006d868
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0x68]
call fcn.140061a04
xor eax, eax
cmp qword [rsp + 0xf8], rax
je 0x1400b0271
lea ecx, [rax + 8]
call fcn.1400fa958
xor ecx, ecx
mov r11, rax
cmp rax, rcx
je 0x1400b022b
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x68], rcx
mov qword [r11], rax
jmp 0x1400b022e
mov r11, rcx
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x128]
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x118]
mov qword [rsp + 0x28], 1
mov qword [rsp + 0x88], r11
mov dword [rsp + 0x20], 8
call fcn.140061c18
jmp 0x1400b032b
mov rax, qword [rsp + 0x698]
mov r9, qword [rsp + 0x668]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x658]
mov rcx, qword [rsp + 0x650]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x690]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x688]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x680]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x678]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x670]
mov qword [rsp + 0x20], rax
call fcn.1400af860
mov rcx, qword [rsp + 0x650]
add ebp, eax
movzx eax, word [rcx + 0xc8]
mov edx, 0x100
mov dword [rsp + 0x74], ebp
test dx, ax
je 0x1400b030b
mov edx, 0xfeff
and ax, dx
mov word [rcx + 0xc8], ax
xor edx, edx
cmp word [rcx + 0xc8], dx
jne 0x1400b0470
mov rax, qword [rsp + 0x688]
cmp qword [rax], rdx
je 0x1400b0470
lea rcx, [rsp + 0x68]
call fcn.1400592f8
inc rbx
cmp rbx, rdi
jl 0x1400b01de
xor ebx, ebx
cmp qword [rsp + 0xf8], rbx
je 0x1400b047a
mov rdi, qword [rsp + 0x130]
inc dword [rsp + 0x70]
inc rdi
cmp rdi, qword [rsp + 0x160]
mov qword [rsp + 0x130], rdi
jge 0x1400b0399
lea rcx, [rsp + 0xa0]
call fcn.1400ee6f8
lea rcx, [rsp + 0xa0]
call fcn.1400592f8
mov rdx, qword [rsp + 0xd0]
jmp 0x1400af9ff
cmp qword [rsp + 0x128], rbx
jle 0x1400b047a
mov rsi, qword [rsp + 0x140]
lea rcx, [rsp + 0x118]
mov rdx, rsi
call fcn.14005d48c
lea rcx, [rsp + 0x118]
call fcn.1400ee6f8
lea rcx, [rsp + 0xa0]
call fcn.1400ee6f8
lea rcx, [rsp + 0xa0]
call fcn.1400592f8
mov ecx, dword [rsp + 0x690]
jmp 0x1400af9b9
mov rcx, qword [rsp + 0x58]
cmp rcx, r8
je 0x1400b040b
cmp rcx, 0xffffffffffffffff
je 0x1400b040b
call qword [sym.imp.KERNEL32.dll_FindClose]
xor r8d, r8d
lea rcx, [rsp + 0xb8]
mov qword [rsp + 0x58], r8
call fcn.1400ee6f8
lea rcx, [rsp + 0xb8]
call fcn.1400592f8
lea rcx, [rsp + 0x118]
call fcn.1400ee6f8
lea rcx, [rsp + 0x118]
call fcn.1400592f8
mov eax, ebp
add rsp, 0x628
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rsp + 0x58]
cmp rcx, r8
je 0x1400b046b
cmp rcx, 0xffffffffffffffff
je 0x1400b046b
call qword [sym.imp.KERNEL32.dll_FindClose]
xor r8d, r8d
mov ebp, r8d
jmp 0x1400b040b
lea rcx, [rsp + 0x68]
call fcn.1400592f8
lea rcx, [rsp + 0xa0]
call fcn.1400ee6f8
lea rcx, [rsp + 0xa0]
jmp 0x1400b0425