Function at 0x1400af67c
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 0x1400af6bd
mov byte [rsp + 0x50], r10b
cmp word [rax + 2], r9w
je 0x1400af6c2
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.140061b30
mov ecx, dword [rsp + 0x690]
xor r8d, r8d
mov dword [rsp + 0x690], ecx
cmp rdi, r8
jne 0x1400af7d5
mov rdx, rbx
jmp 0x1400af7ea
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 0x1400af7fb
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 0x1400af836
mov rax, qword [rdx + rdi*8]
mov rdi, qword [rax]
mov qword [rsp + 0x660], rdi
jmp 0x1400af83e
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.140061b30
lea rcx, [rsp + 0x184]
xor esi, esi
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x180], esi
call fcn.1400f97d0
lea r8, [rsp + 0x180]
lea rcx, [rsp + 0x58]
mov rdx, rdi
mov qword [rsp + 0x58], rsi
call fcn.1400f8b5c
xor r8d, r8d
mov dword [rsp + 0x98], r8d
cmp qword [rsp + 0x58], r8
je 0x1400afb40
mov esi, dword [rsp + 0x180]
and esi, 0x10
je 0x1400af906
mov ecx, 0x2e
cmp cx, word [rsp + 0x1ac]
jne 0x1400af906
movzx eax, word [rsp + 0x1ae]
cmp ax, r8w
je 0x1400afb0b
cmp cx, ax
jne 0x1400af906
cmp word [rsp + 0x1b0], r8w
je 0x1400afb0b
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.14006d624
lea rdx, [rsp + 0x1ac]
lea rcx, [rsp + 0x60]
call fcn.1400617a8
xor r8d, r8d
cmp esi, r8d
jne 0x1400afa3b
cmp word [rsp + 0x1ac], r8w
je 0x1400af9f1
bt dword [rsp + 0x180], 0xa
jae 0x1400af9f1
cmp qword [rsp + 0x158], r8
je 0x1400af9f1
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.1400037a8
mov rbx, qword [rsp + 0x80]
xor r8d, r8d
mov qword [rsp + 0x110], r8
cmp rbx, r8
je 0x1400af9f1
lea rdx, [rsp + 0x110]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rdi, qword [rsp + 0x110]
cmp rbx, 0xffffffffffffffff
je 0x1400af9ee
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r8d, r8d
mov rax, qword [rsp + 0x148]
cmp rax, r8
jbe 0x1400afa07
cmp rdi, rax
jb 0x1400afb01
mov rax, qword [rsp + 0x138]
cmp rax, r8
jbe 0x1400afa1d
cmp rdi, rax
ja 0x1400afb01
mov rcx, qword [rsp + 0x168]
cmp rcx, r8
je 0x1400afa3b
xor edx, edx
mov rax, rdi
div rcx
cmp rdx, r8
jne 0x1400afb01
cmp word [rsp + 0x1ac], r8w
je 0x1400afb33
cmp esi, r8d
je 0x1400afa87
movsxd rcx, dword [rsp + 0xec]
cmp rcx, r8
je 0x1400afb01
mov ecx, 0x10
call fcn.1400f9aa8
xor edi, edi
mov rbx, rax
cmp rax, rdi
je 0x1400afa91
mov rdx, qword [rsp + 0x60]
mov rcx, rax
call fcn.14006d600
mov byte [rbx + 8], sil
jmp 0x1400afa94
movsxd rcx, dword [rsp + 0x9c]
jmp 0x1400afa57
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.1400619bc
movsxd rcx, dword [rsp + 0x78]
cmp rcx, rdi
jne 0x1400afb01
mov rsi, qword [rsp + 0x688]
cmp qword [rsi], rdi
jle 0x1400afb01
mov edi, dword [rsp + 0x98]
inc edi
movsxd rax, edi
mov dword [rsp + 0x98], edi
cmp rax, qword [rsi]
jge 0x1400afb33
lea rcx, [rsp + 0x60]
call fcn.1400590a4
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor r8d, r8d
cmp eax, r8d
je 0x1400afb40
mov rbx, qword [rsp + 0x88]
jmp 0x1400af8c5
lea rcx, [rsp + 0x60]
call fcn.1400590a4
xor r8d, r8d
movsxd rcx, dword [rsp + 0x78]
mov rdi, qword [rsp + 0xb8]
mov rax, rcx
cmp rcx, r8
je 0x1400afb6d
movsx r8d, byte [rsp + 0x51]
mov edx, dword [rsp + 0xc8]
mov rcx, rdi
call fcn.140066a84
xor r8d, r8d
movsxd rsi, dword [rsp + 0xc8]
mov rbx, r8
cmp rsi, r8
mov qword [rsp + 0x80], rbx
jle 0x1400afd9a
mov r9, qword [rsp + 0x650]
movzx eax, word [r9 + 0xc8]
mov ecx, 0x100
test cx, ax
je 0x1400afbb3
mov ecx, 0xfeff
and ax, cx
mov word [r9 + 0xc8], ax
cmp word [r9 + 0xc8], r8w
jne 0x1400b026e
mov rcx, qword [rsp + 0x688]
cmp qword [rcx], r8
je 0x1400b026e
mov rdx, qword [rdi + rbx*8]
mov al, byte [rdx + 8]
cmp al, r8b
je 0x1400afbf4
movsxd rcx, dword [rsp + 0xd8]
cmp rcx, r8
jne 0x1400afc08
cmp al, r8b
jne 0x1400afd86
movsxd rcx, dword [rsp + 0x9c]
mov rax, rcx
cmp rcx, r8
je 0x1400afd86
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 0x1400afcb6
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.1400deeac
mov rax, qword [rsp + 0x658]
mov r11, qword [rax]
xor eax, eax
cmp ebx, eax
jle 0x1400afc8c
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.14001d128
mov rbx, qword [rsp + 0x80]
movsxd rsi, dword [rsp + 0xc8]
jmp 0x1400afd54
mov rax, qword [rsp + 0x658]
mov r8, rdi
mov rcx, r9
mov rdx, qword [rax]
call fcn.140060a94
movsxd rcx, dword [rsp + 0xe8]
xor r8d, r8d
cmp rcx, r8
je 0x1400afd1e
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, [0x140113598]
mov qword [rsp + 0x20], rax
call fcn.1400aae00
jmp 0x1400afd54
mov rax, qword [rsp + 0x680]
cmp word [rax], r8w
je 0x1400afd57
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.14004aa88
xor r8d, r8d
mov rcx, qword [rsp + 0x688]
mov rax, qword [rcx]
cmp rax, r8
jle 0x1400afd76
dec rax
mov qword [rcx], rax
cmp rax, r8
je 0x1400b020e
mov r9, qword [rsp + 0x650]
mov rdi, qword [rsp + 0xb8]
inc rbx
cmp rbx, rsi
mov qword [rsp + 0x80], rbx
jl 0x1400afb91
movsxd rax, dword [rsp + 0x100]
mov rcx, qword [rsp + 0x58]
cmp rax, r8
je 0x1400b0213
cmp rcx, r8
je 0x1400afdc4
cmp rcx, 0xffffffffffffffff
je 0x1400afdc4
call qword [sym.imp.KERNEL32.dll_FindClose]
xor r8d, r8d
lea rcx, [rsp + 0xb8]
mov qword [rsp + 0x58], r8
call fcn.1400ed844
lea rcx, [rsp + 0xb8]
call fcn.1400590a4
lea rcx, [rsp + 0xa0]
call fcn.140061b30
movsxd rsi, dword [rsp + 0x88]
mov rdx, qword [rsp + 0x660]
lea rcx, [rsp + 0xf0]
mov r8, rsi
call fcn.14006d624
lea rdx, [0x140117cf8]
lea rcx, [rsp + 0xf0]
call fcn.1400617a8
lea rcx, [rsp + 0x3d4]
xor ebx, ebx
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x3d0], ebx
call fcn.1400f97d0
mov rdx, qword [rsp + 0xf0]
lea r8, [rsp + 0x3d0]
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x90], rbx
call fcn.1400f8b5c
cmp qword [rsp + 0x90], rbx
je 0x1400aff9d
mov rbp, qword [rsp + 0x660]
mov edi, dword [rsp + 0x3d0]
and edi, 0x10
je 0x1400aff62
mov ecx, 0x2e
cmp cx, word [rsp + 0x3fc]
jne 0x1400afec0
movzx eax, word [rsp + 0x3fe]
cmp ax, bx
je 0x1400aff62
cmp cx, ax
jne 0x1400afec0
cmp word [rsp + 0x400], bx
je 0x1400aff62
lea rcx, [rsp + 0xe0]
mov r8, rsi
mov rdx, rbp
call fcn.14006d624
lea rdx, [rsp + 0x3fc]
lea rcx, [rsp + 0xe0]
call fcn.1400617a8
mov ecx, 0x10
call fcn.1400f9aa8
mov rbx, rax
xor eax, eax
cmp rbx, rax
je 0x1400aff12
mov rdx, qword [rsp + 0xe0]
mov rcx, rbx
call fcn.14006d600
mov byte [rbx + 8], dil
jmp 0x1400aff15
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.1400619bc
lea rcx, [rsp + 0xe0]
call fcn.1400590a4
xor ebx, ebx
mov rcx, qword [rsp + 0x90]
lea rdx, [rsp + 0x3d0]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
jne 0x1400afe7d
mov rcx, qword [rsp + 0x90]
mov ebp, dword [rsp + 0x74]
cmp rcx, rbx
je 0x1400aff9d
cmp rcx, 0xffffffffffffffff
je 0x1400aff9d
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0xf0]
mov qword [rsp + 0x90], rbx
call fcn.1400590a4
movsxd rcx, dword [rsp + 0x78]
mov rsi, qword [rsp + 0xa0]
cmp rcx, rbx
je 0x1400affd9
movsx r8d, byte [rsp + 0x51]
mov edx, dword [rsp + 0xb0]
mov rcx, rsi
call fcn.140066a84
cmp qword [rsp + 0x150], rbx
je 0x1400b015f
movsxd rdi, dword [rsp + 0xb0]
xor eax, eax
cmp rdi, rax
jle 0x1400b015d
mov rdx, qword [rsi + rbx*8]
lea rcx, [rsp + 0x68]
call fcn.14006d660
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0x68]
call fcn.1400617a8
xor eax, eax
cmp qword [rsp + 0xf8], rax
je 0x1400b008d
lea ecx, [rax + 8]
call fcn.1400f9aa8
xor ecx, ecx
mov r11, rax
cmp rax, rcx
je 0x1400b0047
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x68], rcx
mov qword [r11], rax
jmp 0x1400b004a
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.1400619bc
jmp 0x1400b0147
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.1400af67c
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 0x1400b0127
mov edx, 0xfeff
and ax, dx
mov word [rcx + 0xc8], ax
xor edx, edx
cmp word [rcx + 0xc8], dx
jne 0x1400b028c
mov rax, qword [rsp + 0x688]
cmp qword [rax], rdx
je 0x1400b028c
lea rcx, [rsp + 0x68]
call fcn.1400590a4
inc rbx
cmp rbx, rdi
jl 0x1400afffa
xor ebx, ebx
cmp qword [rsp + 0xf8], rbx
je 0x1400b0296
mov rdi, qword [rsp + 0x130]
inc dword [rsp + 0x70]
inc rdi
cmp rdi, qword [rsp + 0x160]
mov qword [rsp + 0x130], rdi
jge 0x1400b01b5
lea rcx, [rsp + 0xa0]
call fcn.1400ed844
lea rcx, [rsp + 0xa0]
call fcn.1400590a4
mov rdx, qword [rsp + 0xd0]
jmp 0x1400af81b
cmp qword [rsp + 0x128], rbx
jle 0x1400b0296
mov rsi, qword [rsp + 0x140]
lea rcx, [rsp + 0x118]
mov rdx, rsi
call fcn.14005d234
lea rcx, [rsp + 0x118]
call fcn.1400ed844
lea rcx, [rsp + 0xa0]
call fcn.1400ed844
lea rcx, [rsp + 0xa0]
call fcn.1400590a4
mov ecx, dword [rsp + 0x690]
jmp 0x1400af7d5
mov rcx, qword [rsp + 0x58]
cmp rcx, r8
je 0x1400b0227
cmp rcx, 0xffffffffffffffff
je 0x1400b0227
call qword [sym.imp.KERNEL32.dll_FindClose]
xor r8d, r8d
lea rcx, [rsp + 0xb8]
mov qword [rsp + 0x58], r8
call fcn.1400ed844
lea rcx, [rsp + 0xb8]
call fcn.1400590a4
lea rcx, [rsp + 0x118]
call fcn.1400ed844
lea rcx, [rsp + 0x118]
call fcn.1400590a4
mov eax, ebp
add rsp, 0x628
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rsp + 0x58]
cmp rcx, r8
je 0x1400b0287
cmp rcx, 0xffffffffffffffff
je 0x1400b0287
call qword [sym.imp.KERNEL32.dll_FindClose]
xor r8d, r8d
mov ebp, r8d
jmp 0x1400b0227
lea rcx, [rsp + 0x68]
call fcn.1400590a4
lea rcx, [rsp + 0xa0]
call fcn.1400ed844
lea rcx, [rsp + 0xa0]
jmp 0x1400b0241