Function at 0x1400ac3c4
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 0x1400ac405
mov byte [rsp + 0x55], r10b
cmp word [rax + 2], r9w
je 0x1400ac40a
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.1400637e4
mov ecx, dword [rsp + 0x6b0]
xor r8d, r8d
mov dword [rsp + 0x6b0], ecx
cmp rbp, r8
jne 0x1400ac51d
mov rdx, rbx
jmp 0x1400ac530
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 0x1400ac541
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 0x1400ac575
mov rax, qword [rdx + rdi*8]
mov rdi, qword [rax]
mov qword [rsp + 0x680], rdi
jmp 0x1400ac57d
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.1400637e4
lea rcx, [rsp + 0x1a4]
xor ebp, ebp
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x1a0], ebp
call fcn.140101f00
lea r8, [rsp + 0x1a0]
lea rcx, [rsp + 0x58]
mov rdx, rdi
mov qword [rsp + 0x58], rbp
call fcn.140101224
mov rcx, qword [rsp + 0x58]
xor edi, edi
cmp rcx, rdi
je 0x1400ac88b
mov al, byte [0x14013a24f]
cmp al, dil
jle 0x1400acf9b
mov esi, dword [rsp + 0x1a0]
and esi, 0x10
je 0x1400ac64c
mov ecx, 0x2e
cmp cx, word [rsp + 0x1cc]
jne 0x1400ac64c
movzx eax, word [rsp + 0x1ce]
cmp ax, di
je 0x1400ac846
cmp cx, ax
jne 0x1400ac64c
cmp word [rsp + 0x1d0], di
je 0x1400ac846
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.14006ff38
lea rdx, [rsp + 0x1cc]
lea rcx, [rsp + 0x78]
call fcn.1400633dc
xor edx, edx
cmp esi, edx
jne 0x1400ac782
cmp word [rsp + 0x1cc], dx
je 0x1400ac735
bt dword [rsp + 0x1a0], 0xa
jae 0x1400ac735
cmp qword [rsp + 0x160], rdx
je 0x1400ac735
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.140003888
mov rbx, qword [rsp + 0x100]
xor edx, edx
mov qword [rsp + 0x110], rdx
cmp rbx, rdx
je 0x1400ac735
lea rdx, [rsp + 0x110]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rdi, qword [rsp + 0x110]
cmp rbx, 0xffffffffffffffff
je 0x1400ac733
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rax, qword [rsp + 0x168]
cmp rax, rdx
jbe 0x1400ac74b
cmp rdi, rax
jb 0x1400ac83a
mov rax, qword [rsp + 0x178]
cmp rax, rdx
jbe 0x1400ac761
cmp rdi, rax
ja 0x1400ac83a
mov rcx, qword [rsp + 0x188]
cmp rcx, rdx
je 0x1400ac782
xor edx, edx
mov rax, rdi
xor edi, edi
div rcx
cmp rdx, rdi
je 0x1400ac784
jmp 0x1400ac83c
xor edi, edi
cmp word [rsp + 0x1cc], di
je 0x1400ac878
cmp esi, edi
je 0x1400ac7cc
movsxd rcx, dword [rsp + 0xdc]
cmp rcx, rdi
je 0x1400ac83c
mov ecx, 0x10
call fcn.1401021d8
mov rbx, rax
cmp rax, rdi
je 0x1400ac7d6
mov rdx, qword [rsp + 0x78]
mov rcx, rax
call fcn.14006ff14
mov byte [rbx + 8], sil
jmp 0x1400ac7d9
movsxd rcx, dword [rsp + 0xa0]
jmp 0x1400ac79e
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.140063670
movsxd rcx, dword [rsp + 0x70]
cmp rcx, rdi
jne 0x1400ac83c
mov rdi, qword [rsp + 0x6a8]
xor eax, eax
cmp qword [rdi], rax
jle 0x1400ac83a
inc ebp
movsxd rax, ebp
cmp rax, qword [rdi]
jge 0x1400ac86a
xor edi, edi
lea rcx, [rsp + 0x78]
call fcn.14005aef8
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, edi
je 0x1400ac882
mov rbx, qword [rsp + 0xf0]
jmp 0x1400ac5fe
lea rcx, [rsp + 0x78]
call fcn.14005aef8
xor edi, edi
jmp 0x1400ac882
lea rcx, [rsp + 0x78]
call fcn.14005aef8
mov rcx, qword [rsp + 0x58]
mov esi, dword [rsp + 0x50]
movsxd rdx, dword [rsp + 0x70]
mov rax, rdx
cmp rdx, rdi
je 0x1400ac8b7
movsx r8d, byte [rsp + 0x54]
mov edx, dword [rsp + 0xb8]
mov rcx, qword [rsp + 0xa8]
call fcn.1400688b0
mov rcx, qword [rsp + 0x58]
movsxd rbx, dword [rsp + 0xb8]
mov rbp, rdi
cmp rbx, rdi
mov qword [rsp + 0x180], rbx
jle 0x1400acae1
mov al, byte [0x14013a24f]
cmp al, dil
jle 0x1400acfd0
mov rdi, qword [rsp + 0x670]
mov ecx, 0x100
movzx eax, word [rdi + 0xc8]
test cx, ax
je 0x1400ac90a
mov ecx, 0xfeff
and ax, cx
mov word [rdi + 0xc8], ax
xor eax, eax
cmp word [rdi + 0xc8], ax
jne 0x1400ad02d
mov rcx, qword [rsp + 0x6a8]
xor edi, edi
cmp qword [rcx], rdi
je 0x1400ad02f
mov rax, qword [rsp + 0xa8]
mov rdx, qword [rax + rbp*8]
mov al, byte [rdx + 8]
cmp al, dil
je 0x1400ac956
movsxd rcx, dword [rsp + 0xe8]
cmp rcx, rdi
jne 0x1400ac96a
cmp al, dil
jne 0x1400acad0
movsxd rcx, dword [rsp + 0xa0]
mov rax, rcx
cmp rcx, rdi
je 0x1400acad0
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 0x1400aca15
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.1400e6230
mov rax, qword [rsp + 0x678]
mov r11, qword [rax]
xor eax, eax
cmp ebx, eax
jle 0x1400ac9ef
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.14001d7d8
mov esi, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x180]
jmp 0x1400acaaf
mov rax, qword [rsp + 0x678]
mov r8, rdi
mov rdi, qword [rsp + 0x670]
mov rdx, qword [rax]
mov rcx, rdi
call fcn.140062600
movsxd rcx, dword [rsp + 0xd8]
xor edx, edx
cmp rcx, rdx
je 0x1400aca7f
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, [0x14011c618]
mov qword [rsp + 0x20], rax
call fcn.1400a5738
jmp 0x1400acaaf
mov rax, qword [rsp + 0x6a0]
cmp word [rax], dx
je 0x1400acaaf
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.14004c180
mov rcx, qword [rsp + 0x6a8]
xor edi, edi
mov rax, qword [rcx]
cmp rax, rdi
jle 0x1400acad0
dec rax
mov qword [rcx], rax
cmp rax, rdi
je 0x1400acfd0
inc rbp
cmp rbp, rbx
jl 0x1400ac8d3
mov rcx, qword [rsp + 0x58]
movsxd rdx, dword [rsp + 0xc8]
mov rax, rdx
cmp rdx, rdi
je 0x1400acfd5
cmp rcx, rdi
je 0x1400acb06
cmp rcx, 0xffffffffffffffff
je 0x1400acb06
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x58], rdi
call fcn.1400281dc
lea rcx, [rsp + 0xa8]
call fcn.14005aef8
lea rcx, [rsp + 0x80]
call fcn.1400637e4
movsxd rsi, dword [rsp + 0xf0]
mov rbx, qword [rsp + 0x680]
lea rcx, [rsp + 0xc0]
mov r8, rsi
mov rdx, rbx
call fcn.14006ff38
lea rdx, [0x140120db8]
lea rcx, [rsp + 0xc0]
call fcn.1400633dc
lea rcx, [rsp + 0x3f4]
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x3f0], edi
call fcn.140101f00
mov rdx, qword [rsp + 0xc0]
lea r8, [rsp + 0x3f0]
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x98], rdi
call fcn.140101224
cmp qword [rsp + 0x98], rdi
je 0x1400acceb
mov al, byte [0x14013a24f]
cmp al, dil
jle 0x1400ad049
mov edi, dword [rsp + 0x3f0]
and edi, 0x10
je 0x1400accb2
mov ecx, 0x2e
xor ebp, ebp
cmp cx, word [rsp + 0x41c]
jne 0x1400acc0c
movzx eax, word [rsp + 0x41e]
cmp ax, bp
je 0x1400accb2
cmp cx, ax
jne 0x1400acc0c
cmp word [rsp + 0x420], bp
je 0x1400accb2
lea rcx, [rsp + 0xe0]
mov r8, rsi
mov rdx, rbx
call fcn.14006ff38
lea rdx, [rsp + 0x41c]
lea rcx, [rsp + 0xe0]
call fcn.1400633dc
mov ecx, 0x10
call fcn.1401021d8
mov rbx, rax
cmp rax, rbp
je 0x1400acc5c
mov rdx, qword [rsp + 0xe0]
mov rcx, rax
call fcn.14006ff14
mov byte [rbx + 8], dil
jmp 0x1400acc5f
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.140063670
lea rcx, [rsp + 0xe0]
call fcn.14005aef8
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 0x1400acbb8
mov rcx, qword [rsp + 0x98]
cmp rcx, rdi
je 0x1400acceb
cmp rcx, 0xffffffffffffffff
je 0x1400acceb
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x98], rdi
call fcn.14005aef8
movsxd rcx, dword [rsp + 0x70]
cmp rcx, rdi
je 0x1400acd24
movsx r8d, byte [rsp + 0x54]
mov edx, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
call fcn.1400688b0
cmp qword [rsp + 0x198], rdi
je 0x1400aceca
mov rbx, rdi
movsxd rdi, dword [rsp + 0x90]
xor esi, esi
cmp rdi, rsi
jle 0x1400acec8
mov al, byte [0x14013a24f]
cmp al, sil
jle 0x1400ad077
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x68]
mov rdx, qword [rdx + rbx*8]
call fcn.14006ff74
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0x68]
call fcn.1400633dc
cmp qword [rsp + 0x108], rsi
je 0x1400acdf9
mov ebp, 8
mov rcx, rbp
call fcn.1401021d8
mov r11, rax
cmp rax, rsi
je 0x1400acdad
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x68], rsi
mov qword [r11], rax
jmp 0x1400acdb0
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.140063670
lea rcx, [rsp + 0x68]
call fcn.14005aef8
jmp 0x1400acebc
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.1400ac3c4
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 0x1400ace97
mov edx, 0xfeff
and ax, dx
mov word [rcx + 0xc8], ax
xor eax, eax
cmp word [rcx + 0xc8], ax
jne 0x1400ad09a
cmp qword [rbp], rax
je 0x1400ad09a
lea rcx, [rsp + 0x68]
call fcn.14005aef8
xor esi, esi
inc rbx
cmp rbx, rdi
jl 0x1400acd48
xor edi, edi
mov al, byte [0x14013a24f]
cmp al, dil
jle 0x1400ad077
mov rbp, qword [rsp + 0x108]
cmp rbp, rdi
je 0x1400ad077
mov rdi, qword [rsp + 0xf8]
inc dword [rsp + 0x60]
inc rdi
cmp rdi, qword [rsp + 0x148]
mov qword [rsp + 0xf8], rdi
jge 0x1400acf39
lea rcx, [rsp + 0x80]
call fcn.1400281dc
lea rcx, [rsp + 0x80]
call fcn.14005aef8
mov esi, dword [rsp + 0x50]
mov rdx, qword [rsp + 0xd0]
xor r8d, r8d
jmp 0x1400ac55f
xor eax, eax
cmp qword [rsp + 0x128], rax
jle 0x1400ad077
mov rdi, qword [rsp + 0x158]
lea rcx, [rsp + 0x118]
mov rdx, rdi
call fcn.14005f024
lea rcx, [rsp + 0x118]
call fcn.1400281dc
lea rcx, [rsp + 0x80]
call fcn.1400281dc
lea rcx, [rsp + 0x80]
call fcn.14005aef8
mov esi, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x6b0]
xor r8d, r8d
jmp 0x1400ac51d
mov rcx, qword [rsp + 0x58]
cmp rcx, rdi
je 0x1400acfb1
cmp rcx, 0xffffffffffffffff
je 0x1400acfb1
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x58], rdi
call fcn.1400281dc
lea rcx, [rsp + 0xa8]
jmp 0x1400ad08c
mov rcx, qword [rsp + 0x58]
cmp rcx, rdi
je 0x1400acfe6
cmp rcx, 0xffffffffffffffff
je 0x1400acfe6
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x58], rdi
call fcn.1400281dc
lea rcx, [rsp + 0xa8]
call fcn.14005aef8
lea rcx, [rsp + 0x118]
call fcn.1400281dc
lea rcx, [rsp + 0x118]
call fcn.14005aef8
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 0x1400ad045
cmp rcx, 0xffffffffffffffff
je 0x1400ad045
call qword [sym.imp.KERNEL32.dll_FindClose]
mov esi, edi
jmp 0x1400acfe6
mov rcx, qword [rsp + 0x98]
cmp rcx, rdi
je 0x1400ad062
cmp rcx, 0xffffffffffffffff
je 0x1400ad062
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x98], rdi
call fcn.14005aef8
lea rcx, [rsp + 0x80]
call fcn.1400281dc
lea rcx, [rsp + 0x80]
call fcn.14005aef8
mov esi, dword [rsp + 0x50]
jmp 0x1400ad005
lea rcx, [rsp + 0x68]
call fcn.14005aef8
lea rcx, [rsp + 0x80]
call fcn.1400281dc
lea rcx, [rsp + 0x80]
jmp 0x1400ad000