Function at 0x1400afa3c
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, 0x648
mov rax, qword [rsp + 0x6a0]
xor r9d, r9d
mov r10d, 1
cmp word [rax], 0x2a
jne 0x1400afa7d
mov byte [rsp + 0x55], r10b
cmp word [rax + 2], r9w
je 0x1400afa82
mov byte [rsp + 0x55], r9b
mov rdi, qword [rsp + 0x6a8]
mov r11d, 0x100
mov esi, r9d
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi + 8]
mov dword [rsp + 0x50], r9d
mov qword [rsp + 0x168], rax
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x178], rcx
mov qword [rsp + 0x150], rax
mov rax, qword [rdi + 0x20]
mov qword [rsp + 0x130], r9
mov qword [rsp + 0x188], rax
mov rax, qword [rdi + 0x28]
mov rdi, qword [rdi + 0x30]
mov rbp, rax
and eax, 0x10
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x160], rax
mov eax, dword [rsp + 0x698]
and rbp, r10
mov ecx, eax
mov r8d, eax
mov edx, eax
and ecx, 2
and r8d, 0x20
and edx, r10d
mov dword [rsp + 0xa0], ecx
mov ecx, eax
mov dword [rsp + 0x70], r8d
mov r8d, eax
and al, 0x40
and ecx, 0x10
and r8d, r11d
neg al
mov dword [rsp + 0xc8], ecx
sbb al, al
mov qword [rsp + 0x108], rbp
mov dword [rsp + 0xe8], edx
and al, 0xfe
mov dword [rsp + 0xd8], r8d
mov ebx, r9d
add al, r10b
cmp ecx, r9d
lea rcx, [rsp + 0x118]
mov byte [rsp + 0x54], al
mov eax, edx
mov qword [rsp + 0xd0], r9
cmovne eax, r10d
mov qword [rsp + 0x158], rdi
mov dword [rsp + 0xdc], eax
call fcn.140061b5c
mov ecx, dword [rsp + 0x6b0]
xor r8d, r8d
mov dword [rsp + 0x6b0], ecx
cmp rbp, r8
jne 0x1400afb95
mov rdx, rbx
jmp 0x1400afba8
mov rdx, qword [rdi]
mov ebx, dword [rdi + 0x10]
mov dword [rsp + 0x60], r8d
mov qword [rsp + 0xd0], rdx
cmp ecx, r8d
movsxd rax, ecx
jl 0x1400afbb9
dec ecx
mov dword [rsp + 0x6b0], ecx
mov qword [rsp + 0x198], rax
movsxd rax, ebx
mov rdi, r8
mov qword [rsp + 0x148], rax
mov qword [rsp + 0xf8], r8
cmp rbp, r8
je 0x1400afbed
mov rax, qword [rdx + rdi*8]
mov rdi, qword [rax]
mov qword [rsp + 0x680], rdi
jmp 0x1400afbf5
mov rdi, qword [rsp + 0x680]
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 0x5c]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
lea rcx, [rsp + 0xa8]
mov rbx, rax
mov qword [rsp + 0x170], rax
sub rbx, rdi
add rbx, 2
sar rbx, 1
mov qword [rsp + 0xf0], rbx
call fcn.140061b5c
lea rcx, [rsp + 0x1a4]
xor ebp, ebp
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x1a0], ebp
call fcn.1400fae60
lea r8, [rsp + 0x1a0]
lea rcx, [rsp + 0x58]
mov rdx, rdi
mov qword [rsp + 0x58], rbp
call fcn.1400fa184
mov rcx, qword [rsp + 0x58]
xor edi, edi
cmp rcx, rdi
je 0x1400aff03
mov al, byte [0x14013224f]
cmp al, dil
jle 0x1400b0613
mov esi, dword [rsp + 0x1a0]
and esi, 0x10
je 0x1400afcc4
mov ecx, 0x2e
cmp cx, word [rsp + 0x1cc]
jne 0x1400afcc4
movzx eax, word [rsp + 0x1ce]
cmp ax, di
je 0x1400afebe
cmp cx, ax
jne 0x1400afcc4
cmp word [rsp + 0x1d0], di
je 0x1400afebe
mov edi, dword [rsp + 0x1bc]
mov eax, dword [rsp + 0x1c0]
mov rdx, qword [rsp + 0x680]
lea rcx, [rsp + 0x78]
shl rdi, 0x20
movsxd r8, ebx
or rdi, rax
call fcn.14006d600
lea rdx, [rsp + 0x1cc]
lea rcx, [rsp + 0x78]
call fcn.1400617d4
xor edx, edx
cmp esi, edx
jne 0x1400afdfa
cmp word [rsp + 0x1cc], dx
je 0x1400afdad
bt dword [rsp + 0x1a0], 0xa
jae 0x1400afdad
cmp qword [rsp + 0x160], rdx
je 0x1400afdad
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], 0x80
mov qword [rsp + 0x100], rdx
lea r9d, [rdx + 7]
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rdx
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x100]
xor r8d, r8d
call fcn.1400037fc
mov rbx, qword [rsp + 0x100]
xor edx, edx
mov qword [rsp + 0x110], rdx
cmp rbx, rdx
je 0x1400afdad
lea rdx, [rsp + 0x110]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rdi, qword [rsp + 0x110]
cmp rbx, 0xffffffffffffffff
je 0x1400afdab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rax, qword [rsp + 0x168]
cmp rax, rdx
jbe 0x1400afdc3
cmp rdi, rax
jb 0x1400afeb2
mov rax, qword [rsp + 0x178]
cmp rax, rdx
jbe 0x1400afdd9
cmp rdi, rax
ja 0x1400afeb2
mov rcx, qword [rsp + 0x188]
cmp rcx, rdx
je 0x1400afdfa
xor edx, edx
mov rax, rdi
xor edi, edi
div rcx
cmp rdx, rdi
je 0x1400afdfc
jmp 0x1400afeb4
xor edi, edi
cmp word [rsp + 0x1cc], di
je 0x1400afef0
cmp esi, edi
je 0x1400afe44
movsxd rcx, dword [rsp + 0xdc]
cmp rcx, rdi
je 0x1400afeb4
mov ecx, 0x10
call fcn.1400fb138
mov rbx, rax
cmp rax, rdi
je 0x1400afe4e
mov rdx, qword [rsp + 0x78]
mov rcx, rax
call fcn.14006d5dc
mov byte [rbx + 8], sil
jmp 0x1400afe51
movsxd rcx, dword [rsp + 0xa0]
jmp 0x1400afe16
mov rbx, rdi
lea r9, [rsp + 0x190]
lea r8, [rsp + 0xb8]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x28], 1
mov qword [rsp + 0x190], rbx
mov dword [rsp + 0x20], 8
call fcn.1400619e8
movsxd rcx, dword [rsp + 0x70]
cmp rcx, rdi
jne 0x1400afeb4
mov rdi, qword [rsp + 0x6a8]
xor eax, eax
cmp qword [rdi], rax
jle 0x1400afeb2
inc ebp
movsxd rax, ebp
cmp rax, qword [rdi]
jge 0x1400afee2
xor edi, edi
lea rcx, [rsp + 0x78]
call fcn.1400591f8
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, edi
je 0x1400afefa
mov rbx, qword [rsp + 0xf0]
jmp 0x1400afc76
lea rcx, [rsp + 0x78]
call fcn.1400591f8
xor edi, edi
jmp 0x1400afefa
lea rcx, [rsp + 0x78]
call fcn.1400591f8
mov rcx, qword [rsp + 0x58]
mov esi, dword [rsp + 0x50]
movsxd rdx, dword [rsp + 0x70]
mov rax, rdx
cmp rdx, rdi
je 0x1400aff2f
movsx r8d, byte [rsp + 0x54]
mov edx, dword [rsp + 0xb8]
mov rcx, qword [rsp + 0xa8]
call fcn.140066a90
mov rcx, qword [rsp + 0x58]
movsxd rbx, dword [rsp + 0xb8]
mov rbp, rdi
cmp rbx, rdi
mov qword [rsp + 0x180], rbx
jle 0x1400b0159
mov al, byte [0x14013224f]
cmp al, dil
jle 0x1400b0648
mov rdi, qword [rsp + 0x670]
mov ecx, 0x100
movzx eax, word [rdi + 0xc8]
test cx, ax
je 0x1400aff82
mov ecx, 0xfeff
and ax, cx
mov word [rdi + 0xc8], ax
xor eax, eax
cmp word [rdi + 0xc8], ax
jne 0x1400b06a5
mov rcx, qword [rsp + 0x6a8]
xor edi, edi
cmp qword [rcx], rdi
je 0x1400b06a7
mov rax, qword [rsp + 0xa8]
mov rdx, qword [rax + rbp*8]
mov al, byte [rdx + 8]
cmp al, dil
je 0x1400affce
movsxd rcx, dword [rsp + 0xe8]
cmp rcx, rdi
jne 0x1400affe2
cmp al, dil
jne 0x1400b0148
movsxd rcx, dword [rsp + 0xa0]
mov rax, rcx
cmp rcx, rdi
je 0x1400b0148
mov rax, qword [rdx]
movsxd rcx, dword [rsp + 0x150]
inc esi
lea rdi, [rax + rcx*2]
xor eax, eax
mov dword [rsp + 0x50], esi
cmp byte [rsp + 0x55], al
je 0x1400b008d
mov rcx, qword [rsp + 0x678]
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 + 0x678]
lea esi, [rax + 1]
mov r8d, 0x20000
lea eax, [rsi + rbx + 2]
movsxd rdx, eax
call fcn.1400dfcbc
mov rax, qword [rsp + 0x678]
mov r11, qword [rax]
xor eax, eax
cmp ebx, eax
jle 0x1400b0067
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.14001d614
mov esi, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x180]
jmp 0x1400b0127
mov rax, qword [rsp + 0x678]
mov r8, rdi
mov rdi, qword [rsp + 0x670]
mov rdx, qword [rax]
mov rcx, rdi
call fcn.140060abc
movsxd rcx, dword [rsp + 0xd8]
xor edx, edx
cmp rcx, rdx
je 0x1400b00f7
mov rax, qword [rsp + 0x690]
mov rdx, qword [rsp + 0x688]
lea r8, [rsp + 0x130]
add rax, 2
xor r9d, r9d
mov rcx, rdi
mov qword [rsp + 0x130], rax
lea rax, [0x1401155d8]
mov qword [rsp + 0x20], rax
call fcn.1400ab1c4
jmp 0x1400b0127
mov rax, qword [rsp + 0x6a0]
cmp word [rax], dx
je 0x1400b0127
mov rcx, qword [rsp + 0x6b8]
mov r8, qword [rsp + 0x688]
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov rcx, rdi
mov rdx, rax
call fcn.14004abf8
mov rcx, qword [rsp + 0x6a8]
xor edi, edi
mov rax, qword [rcx]
cmp rax, rdi
jle 0x1400b0148
dec rax
mov qword [rcx], rax
cmp rax, rdi
je 0x1400b0648
inc rbp
cmp rbp, rbx
jl 0x1400aff4b
mov rcx, qword [rsp + 0x58]
movsxd rdx, dword [rsp + 0xc8]
mov rax, rdx
cmp rdx, rdi
je 0x1400b064d
cmp rcx, rdi
je 0x1400b017e
cmp rcx, 0xffffffffffffffff
je 0x1400b017e
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x58], rdi
call fcn.1400282c4
lea rcx, [rsp + 0xa8]
call fcn.1400591f8
lea rcx, [rsp + 0x80]
call fcn.140061b5c
movsxd rsi, dword [rsp + 0xf0]
mov rbx, qword [rsp + 0x680]
lea rcx, [rsp + 0xc0]
mov r8, rsi
mov rdx, rbx
call fcn.14006d600
lea rdx, [0x140119d38]
lea rcx, [rsp + 0xc0]
call fcn.1400617d4
lea rcx, [rsp + 0x3f4]
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x3f0], edi
call fcn.1400fae60
mov rdx, qword [rsp + 0xc0]
lea r8, [rsp + 0x3f0]
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x98], rdi
call fcn.1400fa184
cmp qword [rsp + 0x98], rdi
je 0x1400b0363
mov al, byte [0x14013224f]
cmp al, dil
jle 0x1400b06c1
mov edi, dword [rsp + 0x3f0]
and edi, 0x10
je 0x1400b032a
mov ecx, 0x2e
xor ebp, ebp
cmp cx, word [rsp + 0x41c]
jne 0x1400b0284
movzx eax, word [rsp + 0x41e]
cmp ax, bp
je 0x1400b032a
cmp cx, ax
jne 0x1400b0284
cmp word [rsp + 0x420], bp
je 0x1400b032a
lea rcx, [rsp + 0xe0]
mov r8, rsi
mov rdx, rbx
call fcn.14006d600
lea rdx, [rsp + 0x41c]
lea rcx, [rsp + 0xe0]
call fcn.1400617d4
mov ecx, 0x10
call fcn.1400fb138
mov rbx, rax
cmp rax, rbp
je 0x1400b02d4
mov rdx, qword [rsp + 0xe0]
mov rcx, rax
call fcn.14006d5dc
mov byte [rbx + 8], dil
jmp 0x1400b02d7
mov rbx, rbp
lea r9, [rsp + 0x138]
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x28], 1
mov qword [rsp + 0x138], rbx
mov dword [rsp + 0x20], 8
call fcn.1400619e8
lea rcx, [rsp + 0xe0]
call fcn.1400591f8
mov rbx, qword [rsp + 0x680]
mov rcx, qword [rsp + 0x98]
lea rdx, [rsp + 0x3f0]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
xor edi, edi
cmp eax, edi
jne 0x1400b0230
mov rcx, qword [rsp + 0x98]
cmp rcx, rdi
je 0x1400b0363
cmp rcx, 0xffffffffffffffff
je 0x1400b0363
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x98], rdi
call fcn.1400591f8
movsxd rcx, dword [rsp + 0x70]
cmp rcx, rdi
je 0x1400b039c
movsx r8d, byte [rsp + 0x54]
mov edx, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
call fcn.140066a90
cmp qword [rsp + 0x198], rdi
je 0x1400b0542
mov rbx, rdi
movsxd rdi, dword [rsp + 0x90]
xor esi, esi
cmp rdi, rsi
jle 0x1400b0540
mov al, byte [0x14013224f]
cmp al, sil
jle 0x1400b06ef
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x68]
mov rdx, qword [rdx + rbx*8]
call fcn.14006d63c
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0x68]
call fcn.1400617d4
cmp qword [rsp + 0x108], rsi
je 0x1400b0471
mov ebp, 8
mov rcx, rbp
call fcn.1400fb138
mov r11, rax
cmp rax, rsi
je 0x1400b0425
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x68], rsi
mov qword [r11], rax
jmp 0x1400b0428
mov r11, rsi
lea r9, [rsp + 0x140]
lea r8, [rsp + 0x128]
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x118]
mov qword [rsp + 0x28], 1
mov qword [rsp + 0x140], r11
mov dword [rsp + 0x20], ebp
call fcn.1400619e8
lea rcx, [rsp + 0x68]
call fcn.1400591f8
jmp 0x1400b0534
mov rax, qword [rsp + 0x6b8]
mov rbp, qword [rsp + 0x6a8]
mov r9, qword [rsp + 0x688]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x678]
mov rcx, qword [rsp + 0x670]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x6b0]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x6a0]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x698]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x690]
mov qword [rsp + 0x20], rax
call fcn.1400afa3c
mov esi, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x670]
add esi, eax
mov edx, 0x100
movzx eax, word [rcx + 0xc8]
mov dword [rsp + 0x50], esi
test dx, ax
je 0x1400b050f
mov edx, 0xfeff
and ax, dx
mov word [rcx + 0xc8], ax
xor eax, eax
cmp word [rcx + 0xc8], ax
jne 0x1400b0712
cmp qword [rbp], rax
je 0x1400b0712
lea rcx, [rsp + 0x68]
call fcn.1400591f8
xor esi, esi
inc rbx
cmp rbx, rdi
jl 0x1400b03c0
xor edi, edi
mov al, byte [0x14013224f]
cmp al, dil
jle 0x1400b06ef
mov rbp, qword [rsp + 0x108]
cmp rbp, rdi
je 0x1400b06ef
mov rdi, qword [rsp + 0xf8]
inc dword [rsp + 0x60]
inc rdi
cmp rdi, qword [rsp + 0x148]
mov qword [rsp + 0xf8], rdi
jge 0x1400b05b1
lea rcx, [rsp + 0x80]
call fcn.1400282c4
lea rcx, [rsp + 0x80]
call fcn.1400591f8
mov esi, dword [rsp + 0x50]
mov rdx, qword [rsp + 0xd0]
xor r8d, r8d
jmp 0x1400afbd7
xor eax, eax
cmp qword [rsp + 0x128], rax
jle 0x1400b06ef
mov rdi, qword [rsp + 0x158]
lea rcx, [rsp + 0x118]
mov rdx, rdi
call fcn.14005d348
lea rcx, [rsp + 0x118]
call fcn.1400282c4
lea rcx, [rsp + 0x80]
call fcn.1400282c4
lea rcx, [rsp + 0x80]
call fcn.1400591f8
mov esi, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x6b0]
xor r8d, r8d
jmp 0x1400afb95
mov rcx, qword [rsp + 0x58]
cmp rcx, rdi
je 0x1400b0629
cmp rcx, 0xffffffffffffffff
je 0x1400b0629
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x58], rdi
call fcn.1400282c4
lea rcx, [rsp + 0xa8]
jmp 0x1400b0704
mov rcx, qword [rsp + 0x58]
cmp rcx, rdi
je 0x1400b065e
cmp rcx, 0xffffffffffffffff
je 0x1400b065e
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x58], rdi
call fcn.1400282c4
lea rcx, [rsp + 0xa8]
call fcn.1400591f8
lea rcx, [rsp + 0x118]
call fcn.1400282c4
lea rcx, [rsp + 0x118]
call fcn.1400591f8
mov eax, esi
add rsp, 0x648
pop rdi
pop rsi
pop rbp
pop rbx
ret
xor edi, edi
mov rcx, qword [rsp + 0x58]
cmp rcx, rdi
je 0x1400b06bd
cmp rcx, 0xffffffffffffffff
je 0x1400b06bd
call qword [sym.imp.KERNEL32.dll_FindClose]
mov esi, edi
jmp 0x1400b065e
mov rcx, qword [rsp + 0x98]
cmp rcx, rdi
je 0x1400b06da
cmp rcx, 0xffffffffffffffff
je 0x1400b06da
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x98], rdi
call fcn.1400591f8
lea rcx, [rsp + 0x80]
call fcn.1400282c4
lea rcx, [rsp + 0x80]
call fcn.1400591f8
mov esi, dword [rsp + 0x50]
jmp 0x1400b067d
lea rcx, [rsp + 0x68]
call fcn.1400591f8
lea rcx, [rsp + 0x80]
call fcn.1400282c4
lea rcx, [rsp + 0x80]
jmp 0x1400b0678