Function at 0x1400af610
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 0x1400af651
mov byte [rsp + 0x50], r10b
cmp word [rax + 2], r9w
je 0x1400af656
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.140061e04
mov ecx, dword [rsp + 0x690]
xor r8d, r8d
mov dword [rsp + 0x690], ecx
cmp rdi, r8
jne 0x1400af769
mov rdx, rbx
jmp 0x1400af77e
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 0x1400af78f
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 0x1400af7ca
mov rax, qword [rdx + rdi*8]
mov rdi, qword [rax]
mov qword [rsp + 0x660], rdi
jmp 0x1400af7d2
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.140061e04
lea rcx, [rsp + 0x184]
xor esi, esi
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x180], esi
call fcn.1400fa350
lea r8, [rsp + 0x180]
lea rcx, [rsp + 0x58]
mov rdx, rdi
mov qword [rsp + 0x58], rsi
call fcn.1400f96dc
xor r8d, r8d
mov dword [rsp + 0x98], r8d
cmp qword [rsp + 0x58], r8
je 0x1400afad4
mov esi, dword [rsp + 0x180]
and esi, 0x10
je 0x1400af89a
mov ecx, 0x2e
cmp cx, word [rsp + 0x1ac]
jne 0x1400af89a
movzx eax, word [rsp + 0x1ae]
cmp ax, r8w
je 0x1400afa9f
cmp cx, ax
jne 0x1400af89a
cmp word [rsp + 0x1b0], r8w
je 0x1400afa9f
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.14006d8d4
lea rdx, [rsp + 0x1ac]
lea rcx, [rsp + 0x60]
call fcn.140061a7c
xor r8d, r8d
cmp esi, r8d
jne 0x1400af9cf
cmp word [rsp + 0x1ac], r8w
je 0x1400af985
bt dword [rsp + 0x180], 0xa
jae 0x1400af985
cmp qword [rsp + 0x158], r8
je 0x1400af985
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.1400037a0
mov rbx, qword [rsp + 0x80]
xor r8d, r8d
mov qword [rsp + 0x110], r8
cmp rbx, r8
je 0x1400af985
lea rdx, [rsp + 0x110]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
mov rdi, qword [rsp + 0x110]
cmp rbx, 0xffffffffffffffff
je 0x1400af982
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
xor r8d, r8d
mov rax, qword [rsp + 0x148]
cmp rax, r8
jbe 0x1400af99b
cmp rdi, rax
jb 0x1400afa95
mov rax, qword [rsp + 0x138]
cmp rax, r8
jbe 0x1400af9b1
cmp rdi, rax
ja 0x1400afa95
mov rcx, qword [rsp + 0x168]
cmp rcx, r8
je 0x1400af9cf
xor edx, edx
mov rax, rdi
div rcx
cmp rdx, r8
jne 0x1400afa95
cmp word [rsp + 0x1ac], r8w
je 0x1400afac7
cmp esi, r8d
je 0x1400afa1b
movsxd rcx, dword [rsp + 0xec]
cmp rcx, r8
je 0x1400afa95
mov ecx, 0x10
call fcn.1400fa628
xor edi, edi
mov rbx, rax
cmp rax, rdi
je 0x1400afa25
mov rdx, qword [rsp + 0x60]
mov rcx, rax
call fcn.14006d8b0
mov byte [rbx + 8], sil
jmp 0x1400afa28
movsxd rcx, dword [rsp + 0x9c]
jmp 0x1400af9eb
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.140061c90
movsxd rcx, dword [rsp + 0x78]
cmp rcx, rdi
jne 0x1400afa95
mov rsi, qword [rsp + 0x688]
cmp qword [rsi], rdi
jle 0x1400afa95
mov edi, dword [rsp + 0x98]
inc edi
movsxd rax, edi
mov dword [rsp + 0x98], edi
cmp rax, qword [rsi]
jge 0x1400afac7
lea rcx, [rsp + 0x60]
call fcn.140059370
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.DLL_FindNextFileW]
xor r8d, r8d
cmp eax, r8d
je 0x1400afad4
mov rbx, qword [rsp + 0x88]
jmp 0x1400af859
lea rcx, [rsp + 0x60]
call fcn.140059370
xor r8d, r8d
movsxd rcx, dword [rsp + 0x78]
mov rdi, qword [rsp + 0xb8]
mov rax, rcx
cmp rcx, r8
je 0x1400afb01
movsx r8d, byte [rsp + 0x51]
mov edx, dword [rsp + 0xc8]
mov rcx, rdi
call fcn.140066d34
xor r8d, r8d
movsxd rsi, dword [rsp + 0xc8]
mov rbx, r8
cmp rsi, r8
mov qword [rsp + 0x80], rbx
jle 0x1400afd2e
mov r9, qword [rsp + 0x650]
movzx eax, word [r9 + 0xc8]
mov ecx, 0x100
test cx, ax
je 0x1400afb47
mov ecx, 0xfeff
and ax, cx
mov word [r9 + 0xc8], ax
cmp word [r9 + 0xc8], r8w
jne 0x1400b0202
mov rcx, qword [rsp + 0x688]
cmp qword [rcx], r8
je 0x1400b0202
mov rdx, qword [rdi + rbx*8]
mov al, byte [rdx + 8]
cmp al, r8b
je 0x1400afb88
movsxd rcx, dword [rsp + 0xd8]
cmp rcx, r8
jne 0x1400afb9c
cmp al, r8b
jne 0x1400afd1a
movsxd rcx, dword [rsp + 0x9c]
mov rax, rcx
cmp rcx, r8
je 0x1400afd1a
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 0x1400afc4a
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.1400df5dc
mov rax, qword [rsp + 0x658]
mov r11, qword [rax]
xor eax, eax
cmp ebx, eax
jle 0x1400afc20
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 0x1400afce8
mov rax, qword [rsp + 0x658]
mov r8, rdi
mov rcx, r9
mov rdx, qword [rax]
call fcn.140060d64
movsxd rcx, dword [rsp + 0xe8]
xor r8d, r8d
cmp rcx, r8
je 0x1400afcb2
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.1400aadb8
jmp 0x1400afce8
mov rax, qword [rsp + 0x680]
cmp word [rax], r8w
je 0x1400afceb
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.14004ad84
xor r8d, r8d
mov rcx, qword [rsp + 0x688]
mov rax, qword [rcx]
cmp rax, r8
jle 0x1400afd0a
dec rax
mov qword [rcx], rax
cmp rax, r8
je 0x1400b01a2
mov r9, qword [rsp + 0x650]
mov rdi, qword [rsp + 0xb8]
inc rbx
cmp rbx, rsi
mov qword [rsp + 0x80], rbx
jl 0x1400afb25
movsxd rax, dword [rsp + 0x100]
mov rcx, qword [rsp + 0x58]
cmp rax, r8
je 0x1400b01a7
cmp rcx, r8
je 0x1400afd58
cmp rcx, 0xffffffffffffffff
je 0x1400afd58
call qword [sym.imp.KERNEL32.DLL_FindClose]
xor r8d, r8d
lea rcx, [rsp + 0xb8]
mov qword [rsp + 0x58], r8
call fcn.14001d9f4
lea rcx, [rsp + 0xb8]
call fcn.140059370
lea rcx, [rsp + 0xa0]
call fcn.140061e04
movsxd rsi, dword [rsp + 0x88]
mov rdx, qword [rsp + 0x660]
lea rcx, [rsp + 0xf0]
mov r8, rsi
call fcn.14006d8d4
lea rdx, [0x140118d38]
lea rcx, [rsp + 0xf0]
call fcn.140061a7c
lea rcx, [rsp + 0x3d4]
xor ebx, ebx
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x3d0], ebx
call fcn.1400fa350
mov rdx, qword [rsp + 0xf0]
lea r8, [rsp + 0x3d0]
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x90], rbx
call fcn.1400f96dc
cmp qword [rsp + 0x90], rbx
je 0x1400aff31
mov rbp, qword [rsp + 0x660]
mov edi, dword [rsp + 0x3d0]
and edi, 0x10
je 0x1400afef6
mov ecx, 0x2e
cmp cx, word [rsp + 0x3fc]
jne 0x1400afe54
movzx eax, word [rsp + 0x3fe]
cmp ax, bx
je 0x1400afef6
cmp cx, ax
jne 0x1400afe54
cmp word [rsp + 0x400], bx
je 0x1400afef6
lea rcx, [rsp + 0xe0]
mov r8, rsi
mov rdx, rbp
call fcn.14006d8d4
lea rdx, [rsp + 0x3fc]
lea rcx, [rsp + 0xe0]
call fcn.140061a7c
mov ecx, 0x10
call fcn.1400fa628
mov rbx, rax
xor eax, eax
cmp rbx, rax
je 0x1400afea6
mov rdx, qword [rsp + 0xe0]
mov rcx, rbx
call fcn.14006d8b0
mov byte [rbx + 8], dil
jmp 0x1400afea9
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.140061c90
lea rcx, [rsp + 0xe0]
call fcn.140059370
xor ebx, ebx
mov rcx, qword [rsp + 0x90]
lea rdx, [rsp + 0x3d0]
call qword [sym.imp.KERNEL32.DLL_FindNextFileW]
cmp eax, ebx
jne 0x1400afe11
mov rcx, qword [rsp + 0x90]
mov ebp, dword [rsp + 0x74]
cmp rcx, rbx
je 0x1400aff31
cmp rcx, 0xffffffffffffffff
je 0x1400aff31
call qword [sym.imp.KERNEL32.DLL_FindClose]
lea rcx, [rsp + 0xf0]
mov qword [rsp + 0x90], rbx
call fcn.140059370
movsxd rcx, dword [rsp + 0x78]
mov rsi, qword [rsp + 0xa0]
cmp rcx, rbx
je 0x1400aff6d
movsx r8d, byte [rsp + 0x51]
mov edx, dword [rsp + 0xb0]
mov rcx, rsi
call fcn.140066d34
cmp qword [rsp + 0x150], rbx
je 0x1400b00f3
movsxd rdi, dword [rsp + 0xb0]
xor eax, eax
cmp rdi, rax
jle 0x1400b00f1
mov rdx, qword [rsi + rbx*8]
lea rcx, [rsp + 0x68]
call fcn.14006d910
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0x68]
call fcn.140061a7c
xor eax, eax
cmp qword [rsp + 0xf8], rax
je 0x1400b0021
lea ecx, [rax + 8]
call fcn.1400fa628
xor ecx, ecx
mov r11, rax
cmp rax, rcx
je 0x1400affdb
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x68], rcx
mov qword [r11], rax
jmp 0x1400affde
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.140061c90
jmp 0x1400b00db
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.1400af610
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 0x1400b00bb
mov edx, 0xfeff
and ax, dx
mov word [rcx + 0xc8], ax
xor edx, edx
cmp word [rcx + 0xc8], dx
jne 0x1400b0220
mov rax, qword [rsp + 0x688]
cmp qword [rax], rdx
je 0x1400b0220
lea rcx, [rsp + 0x68]
call fcn.140059370
inc rbx
cmp rbx, rdi
jl 0x1400aff8e
xor ebx, ebx
cmp qword [rsp + 0xf8], rbx
je 0x1400b022a
mov rdi, qword [rsp + 0x130]
inc dword [rsp + 0x70]
inc rdi
cmp rdi, qword [rsp + 0x160]
mov qword [rsp + 0x130], rdi
jge 0x1400b0149
lea rcx, [rsp + 0xa0]
call fcn.14001d9f4
lea rcx, [rsp + 0xa0]
call fcn.140059370
mov rdx, qword [rsp + 0xd0]
jmp 0x1400af7af
cmp qword [rsp + 0x128], rbx
jle 0x1400b022a
mov rsi, qword [rsp + 0x140]
lea rcx, [rsp + 0x118]
mov rdx, rsi
call fcn.14005d504
lea rcx, [rsp + 0x118]
call fcn.14001d9f4
lea rcx, [rsp + 0xa0]
call fcn.14001d9f4
lea rcx, [rsp + 0xa0]
call fcn.140059370
mov ecx, dword [rsp + 0x690]
jmp 0x1400af769
mov rcx, qword [rsp + 0x58]
cmp rcx, r8
je 0x1400b01bb
cmp rcx, 0xffffffffffffffff
je 0x1400b01bb
call qword [sym.imp.KERNEL32.DLL_FindClose]
xor r8d, r8d
lea rcx, [rsp + 0xb8]
mov qword [rsp + 0x58], r8
call fcn.14001d9f4
lea rcx, [rsp + 0xb8]
call fcn.140059370
lea rcx, [rsp + 0x118]
call fcn.14001d9f4
lea rcx, [rsp + 0x118]
call fcn.140059370
mov eax, ebp
add rsp, 0x628
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rsp + 0x58]
cmp rcx, r8
je 0x1400b021b
cmp rcx, 0xffffffffffffffff
je 0x1400b021b
call qword [sym.imp.KERNEL32.DLL_FindClose]
xor r8d, r8d
mov ebp, r8d
jmp 0x1400b01bb
lea rcx, [rsp + 0x68]
call fcn.140059370
lea rcx, [rsp + 0xa0]
call fcn.14001d9f4
lea rcx, [rsp + 0xa0]
jmp 0x1400b01d5