Function at 0x1400ac094
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 0x1400ac0d5
mov byte [rsp + 0x55], r10b
cmp word [rax + 2], r9w
je 0x1400ac0da
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.140063b64
mov ecx, dword [rsp + 0x6b0]
xor r8d, r8d
mov dword [rsp + 0x6b0], ecx
cmp rbp, r8
jne 0x1400ac1ed
mov rdx, rbx
jmp 0x1400ac200
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 0x1400ac211
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 0x1400ac245
mov rax, qword [rdx + rdi*8]
mov rdi, qword [rax]
mov qword [rsp + 0x680], rdi
jmp 0x1400ac24d
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.140063b64
lea rcx, [rsp + 0x1a4]
xor ebp, ebp
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x1a0], ebp
call fcn.140102a90
lea r8, [rsp + 0x1a0]
lea rcx, [rsp + 0x58]
mov rdx, rdi
mov qword [rsp + 0x58], rbp
call fcn.140101db8
mov rcx, qword [rsp + 0x58]
xor edi, edi
cmp rcx, rdi
je 0x1400ac55b
mov al, byte [0x14013a24f]
cmp al, dil
jle 0x1400acc6b
mov esi, dword [rsp + 0x1a0]
and esi, 0x10
je 0x1400ac31c
mov ecx, 0x2e
cmp cx, word [rsp + 0x1cc]
jne 0x1400ac31c
movzx eax, word [rsp + 0x1ce]
cmp ax, di
je 0x1400ac516
cmp cx, ax
jne 0x1400ac31c
cmp word [rsp + 0x1d0], di
je 0x1400ac516
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.1400702d4
lea rdx, [rsp + 0x1cc]
lea rcx, [rsp + 0x78]
call fcn.14006375c
xor edx, edx
cmp esi, edx
jne 0x1400ac452
cmp word [rsp + 0x1cc], dx
je 0x1400ac405
bt dword [rsp + 0x1a0], 0xa
jae 0x1400ac405
cmp qword [rsp + 0x160], rdx
je 0x1400ac405
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.140003864
mov rbx, qword [rsp + 0x100]
xor edx, edx
mov qword [rsp + 0x110], rdx
cmp rbx, rdx
je 0x1400ac405
lea rdx, [rsp + 0x110]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rdi, qword [rsp + 0x110]
cmp rbx, 0xffffffffffffffff
je 0x1400ac403
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rax, qword [rsp + 0x168]
cmp rax, rdx
jbe 0x1400ac41b
cmp rdi, rax
jb 0x1400ac50a
mov rax, qword [rsp + 0x178]
cmp rax, rdx
jbe 0x1400ac431
cmp rdi, rax
ja 0x1400ac50a
mov rcx, qword [rsp + 0x188]
cmp rcx, rdx
je 0x1400ac452
xor edx, edx
mov rax, rdi
xor edi, edi
div rcx
cmp rdx, rdi
je 0x1400ac454
jmp 0x1400ac50c
xor edi, edi
cmp word [rsp + 0x1cc], di
je 0x1400ac548
cmp esi, edi
je 0x1400ac49c
movsxd rcx, dword [rsp + 0xdc]
cmp rcx, rdi
je 0x1400ac50c
mov ecx, 0x10
call fcn.140102d68
mov rbx, rax
cmp rax, rdi
je 0x1400ac4a6
mov rdx, qword [rsp + 0x78]
mov rcx, rax
call fcn.1400702b0
mov byte [rbx + 8], sil
jmp 0x1400ac4a9
movsxd rcx, dword [rsp + 0xa0]
jmp 0x1400ac46e
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.1400639f0
movsxd rcx, dword [rsp + 0x70]
cmp rcx, rdi
jne 0x1400ac50c
mov rdi, qword [rsp + 0x6a8]
xor eax, eax
cmp qword [rdi], rax
jle 0x1400ac50a
inc ebp
movsxd rax, ebp
cmp rax, qword [rdi]
jge 0x1400ac53a
xor edi, edi
lea rcx, [rsp + 0x78]
call fcn.14005b104
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, edi
je 0x1400ac552
mov rbx, qword [rsp + 0xf0]
jmp 0x1400ac2ce
lea rcx, [rsp + 0x78]
call fcn.14005b104
xor edi, edi
jmp 0x1400ac552
lea rcx, [rsp + 0x78]
call fcn.14005b104
mov rcx, qword [rsp + 0x58]
mov esi, dword [rsp + 0x50]
movsxd rdx, dword [rsp + 0x70]
mov rax, rdx
cmp rdx, rdi
je 0x1400ac587
movsx r8d, byte [rsp + 0x54]
mov edx, dword [rsp + 0xb8]
mov rcx, qword [rsp + 0xa8]
call fcn.140068c04
mov rcx, qword [rsp + 0x58]
movsxd rbx, dword [rsp + 0xb8]
mov rbp, rdi
cmp rbx, rdi
mov qword [rsp + 0x180], rbx
jle 0x1400ac7b1
mov al, byte [0x14013a24f]
cmp al, dil
jle 0x1400acca0
mov rdi, qword [rsp + 0x670]
mov ecx, 0x100
movzx eax, word [rdi + 0xc8]
test cx, ax
je 0x1400ac5da
mov ecx, 0xfeff
and ax, cx
mov word [rdi + 0xc8], ax
xor eax, eax
cmp word [rdi + 0xc8], ax
jne 0x1400accfd
mov rcx, qword [rsp + 0x6a8]
xor edi, edi
cmp qword [rcx], rdi
je 0x1400accff
mov rax, qword [rsp + 0xa8]
mov rdx, qword [rax + rbp*8]
mov al, byte [rdx + 8]
cmp al, dil
je 0x1400ac626
movsxd rcx, dword [rsp + 0xe8]
cmp rcx, rdi
jne 0x1400ac63a
cmp al, dil
jne 0x1400ac7a0
movsxd rcx, dword [rsp + 0xa0]
mov rax, rcx
cmp rcx, rdi
je 0x1400ac7a0
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 0x1400ac6e5
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.1400e6cf8
mov rax, qword [rsp + 0x678]
mov r11, qword [rax]
xor eax, eax
cmp ebx, eax
jle 0x1400ac6bf
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.14001d78c
mov esi, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x180]
jmp 0x1400ac77f
mov rax, qword [rsp + 0x678]
mov r8, rdi
mov rdi, qword [rsp + 0x670]
mov rdx, qword [rax]
mov rcx, rdi
call fcn.1400629b8
movsxd rcx, dword [rsp + 0xd8]
xor edx, edx
cmp rcx, rdx
je 0x1400ac74f
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, [0x14011c638]
mov qword [rsp + 0x20], rax
call fcn.1400a53e4
jmp 0x1400ac77f
mov rax, qword [rsp + 0x6a0]
cmp word [rax], dx
je 0x1400ac77f
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.14004c0bc
mov rcx, qword [rsp + 0x6a8]
xor edi, edi
mov rax, qword [rcx]
cmp rax, rdi
jle 0x1400ac7a0
dec rax
mov qword [rcx], rax
cmp rax, rdi
je 0x1400acca0
inc rbp
cmp rbp, rbx
jl 0x1400ac5a3
mov rcx, qword [rsp + 0x58]
movsxd rdx, dword [rsp + 0xc8]
mov rax, rdx
cmp rdx, rdi
je 0x1400acca5
cmp rcx, rdi
je 0x1400ac7d6
cmp rcx, 0xffffffffffffffff
je 0x1400ac7d6
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x58], rdi
call fcn.14007ddf8
lea rcx, [rsp + 0xa8]
call fcn.14005b104
lea rcx, [rsp + 0x80]
call fcn.140063b64
movsxd rsi, dword [rsp + 0xf0]
mov rbx, qword [rsp + 0x680]
lea rcx, [rsp + 0xc0]
mov r8, rsi
mov rdx, rbx
call fcn.1400702d4
lea rdx, [0x140120dd8]
lea rcx, [rsp + 0xc0]
call fcn.14006375c
lea rcx, [rsp + 0x3f4]
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x3f0], edi
call fcn.140102a90
mov rdx, qword [rsp + 0xc0]
lea r8, [rsp + 0x3f0]
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x98], rdi
call fcn.140101db8
cmp qword [rsp + 0x98], rdi
je 0x1400ac9bb
mov al, byte [0x14013a24f]
cmp al, dil
jle 0x1400acd19
mov edi, dword [rsp + 0x3f0]
and edi, 0x10
je 0x1400ac982
mov ecx, 0x2e
xor ebp, ebp
cmp cx, word [rsp + 0x41c]
jne 0x1400ac8dc
movzx eax, word [rsp + 0x41e]
cmp ax, bp
je 0x1400ac982
cmp cx, ax
jne 0x1400ac8dc
cmp word [rsp + 0x420], bp
je 0x1400ac982
lea rcx, [rsp + 0xe0]
mov r8, rsi
mov rdx, rbx
call fcn.1400702d4
lea rdx, [rsp + 0x41c]
lea rcx, [rsp + 0xe0]
call fcn.14006375c
mov ecx, 0x10
call fcn.140102d68
mov rbx, rax
cmp rax, rbp
je 0x1400ac92c
mov rdx, qword [rsp + 0xe0]
mov rcx, rax
call fcn.1400702b0
mov byte [rbx + 8], dil
jmp 0x1400ac92f
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.1400639f0
lea rcx, [rsp + 0xe0]
call fcn.14005b104
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 0x1400ac888
mov rcx, qword [rsp + 0x98]
cmp rcx, rdi
je 0x1400ac9bb
cmp rcx, 0xffffffffffffffff
je 0x1400ac9bb
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x98], rdi
call fcn.14005b104
movsxd rcx, dword [rsp + 0x70]
cmp rcx, rdi
je 0x1400ac9f4
movsx r8d, byte [rsp + 0x54]
mov edx, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
call fcn.140068c04
cmp qword [rsp + 0x198], rdi
je 0x1400acb9a
mov rbx, rdi
movsxd rdi, dword [rsp + 0x90]
xor esi, esi
cmp rdi, rsi
jle 0x1400acb98
mov al, byte [0x14013a24f]
cmp al, sil
jle 0x1400acd47
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x68]
mov rdx, qword [rdx + rbx*8]
call fcn.140070310
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0x68]
call fcn.14006375c
cmp qword [rsp + 0x108], rsi
je 0x1400acac9
mov ebp, 8
mov rcx, rbp
call fcn.140102d68
mov r11, rax
cmp rax, rsi
je 0x1400aca7d
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x68], rsi
mov qword [r11], rax
jmp 0x1400aca80
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.1400639f0
lea rcx, [rsp + 0x68]
call fcn.14005b104
jmp 0x1400acb8c
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.1400ac094
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 0x1400acb67
mov edx, 0xfeff
and ax, dx
mov word [rcx + 0xc8], ax
xor eax, eax
cmp word [rcx + 0xc8], ax
jne 0x1400acd6a
cmp qword [rbp], rax
je 0x1400acd6a
lea rcx, [rsp + 0x68]
call fcn.14005b104
xor esi, esi
inc rbx
cmp rbx, rdi
jl 0x1400aca18
xor edi, edi
mov al, byte [0x14013a24f]
cmp al, dil
jle 0x1400acd47
mov rbp, qword [rsp + 0x108]
cmp rbp, rdi
je 0x1400acd47
mov rdi, qword [rsp + 0xf8]
inc dword [rsp + 0x60]
inc rdi
cmp rdi, qword [rsp + 0x148]
mov qword [rsp + 0xf8], rdi
jge 0x1400acc09
lea rcx, [rsp + 0x80]
call fcn.14007ddf8
lea rcx, [rsp + 0x80]
call fcn.14005b104
mov esi, dword [rsp + 0x50]
mov rdx, qword [rsp + 0xd0]
xor r8d, r8d
jmp 0x1400ac22f
xor eax, eax
cmp qword [rsp + 0x128], rax
jle 0x1400acd47
mov rdi, qword [rsp + 0x158]
lea rcx, [rsp + 0x118]
mov rdx, rdi
call fcn.14005f3bc
lea rcx, [rsp + 0x118]
call fcn.14007ddf8
lea rcx, [rsp + 0x80]
call fcn.14007ddf8
lea rcx, [rsp + 0x80]
call fcn.14005b104
mov esi, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x6b0]
xor r8d, r8d
jmp 0x1400ac1ed
mov rcx, qword [rsp + 0x58]
cmp rcx, rdi
je 0x1400acc81
cmp rcx, 0xffffffffffffffff
je 0x1400acc81
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x58], rdi
call fcn.14007ddf8
lea rcx, [rsp + 0xa8]
jmp 0x1400acd5c
mov rcx, qword [rsp + 0x58]
cmp rcx, rdi
je 0x1400accb6
cmp rcx, 0xffffffffffffffff
je 0x1400accb6
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x58], rdi
call fcn.14007ddf8
lea rcx, [rsp + 0xa8]
call fcn.14005b104
lea rcx, [rsp + 0x118]
call fcn.14007ddf8
lea rcx, [rsp + 0x118]
call fcn.14005b104
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 0x1400acd15
cmp rcx, 0xffffffffffffffff
je 0x1400acd15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov esi, edi
jmp 0x1400accb6
mov rcx, qword [rsp + 0x98]
cmp rcx, rdi
je 0x1400acd32
cmp rcx, 0xffffffffffffffff
je 0x1400acd32
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x98], rdi
call fcn.14005b104
lea rcx, [rsp + 0x80]
call fcn.14007ddf8
lea rcx, [rsp + 0x80]
call fcn.14005b104
mov esi, dword [rsp + 0x50]
jmp 0x1400accd5
lea rcx, [rsp + 0x68]
call fcn.14005b104
lea rcx, [rsp + 0x80]
call fcn.14007ddf8
lea rcx, [rsp + 0x80]
jmp 0x1400accd0