Function at 0x1400b274c
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 0x1400b278d
mov byte [rsp + 0x55], r10b
cmp word [rax + 2], r9w
je 0x1400b2792
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.140062738
mov ecx, dword [rsp + 0x6b0]
xor r8d, r8d
mov dword [rsp + 0x6b0], ecx
cmp rbp, r8
jne 0x1400b28a5
mov rdx, rbx
jmp 0x1400b28b8
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 0x1400b28c9
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 0x1400b28fd
mov rax, qword [rdx + rdi*8]
mov rdi, qword [rax]
mov qword [rsp + 0x680], rdi
jmp 0x1400b2905
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.140062738
lea rcx, [rsp + 0x1a4]
xor ebp, ebp
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x1a0], ebp
call fcn.1400fdc00
lea r8, [rsp + 0x1a0]
lea rcx, [rsp + 0x58]
mov rdx, rdi
mov qword [rsp + 0x58], rbp
call fcn.1400fcf20
mov rcx, qword [rsp + 0x58]
xor edi, edi
cmp rcx, rdi
je 0x1400b2c13
mov al, byte [0x14013424f]
cmp al, dil
jle 0x1400b3323
mov esi, dword [rsp + 0x1a0]
and esi, 0x10
je 0x1400b29d4
mov ecx, 0x2e
cmp cx, word [rsp + 0x1cc]
jne 0x1400b29d4
movzx eax, word [rsp + 0x1ce]
cmp ax, di
je 0x1400b2bce
cmp cx, ax
jne 0x1400b29d4
cmp word [rsp + 0x1d0], di
je 0x1400b2bce
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.14006e2cc
lea rdx, [rsp + 0x1cc]
lea rcx, [rsp + 0x78]
call fcn.140062330
xor edx, edx
cmp esi, edx
jne 0x1400b2b0a
cmp word [rsp + 0x1cc], dx
je 0x1400b2abd
bt dword [rsp + 0x1a0], 0xa
jae 0x1400b2abd
cmp qword [rsp + 0x160], rdx
je 0x1400b2abd
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.14000384c
mov rbx, qword [rsp + 0x100]
xor edx, edx
mov qword [rsp + 0x110], rdx
cmp rbx, rdx
je 0x1400b2abd
lea rdx, [rsp + 0x110]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rdi, qword [rsp + 0x110]
cmp rbx, 0xffffffffffffffff
je 0x1400b2abb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rax, qword [rsp + 0x168]
cmp rax, rdx
jbe 0x1400b2ad3
cmp rdi, rax
jb 0x1400b2bc2
mov rax, qword [rsp + 0x178]
cmp rax, rdx
jbe 0x1400b2ae9
cmp rdi, rax
ja 0x1400b2bc2
mov rcx, qword [rsp + 0x188]
cmp rcx, rdx
je 0x1400b2b0a
xor edx, edx
mov rax, rdi
xor edi, edi
div rcx
cmp rdx, rdi
je 0x1400b2b0c
jmp 0x1400b2bc4
xor edi, edi
cmp word [rsp + 0x1cc], di
je 0x1400b2c00
cmp esi, edi
je 0x1400b2b54
movsxd rcx, dword [rsp + 0xdc]
cmp rcx, rdi
je 0x1400b2bc4
mov ecx, 0x10
call fcn.1400fded8
mov rbx, rax
cmp rax, rdi
je 0x1400b2b5e
mov rdx, qword [rsp + 0x78]
mov rcx, rax
call fcn.14006e2a8
mov byte [rbx + 8], sil
jmp 0x1400b2b61
movsxd rcx, dword [rsp + 0xa0]
jmp 0x1400b2b26
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.1400625c4
movsxd rcx, dword [rsp + 0x70]
cmp rcx, rdi
jne 0x1400b2bc4
mov rdi, qword [rsp + 0x6a8]
xor eax, eax
cmp qword [rdi], rax
jle 0x1400b2bc2
inc ebp
movsxd rax, ebp
cmp rax, qword [rdi]
jge 0x1400b2bf2
xor edi, edi
lea rcx, [rsp + 0x78]
call fcn.140059920
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, edi
je 0x1400b2c0a
mov rbx, qword [rsp + 0xf0]
jmp 0x1400b2986
lea rcx, [rsp + 0x78]
call fcn.140059920
xor edi, edi
jmp 0x1400b2c0a
lea rcx, [rsp + 0x78]
call fcn.140059920
mov rcx, qword [rsp + 0x58]
mov esi, dword [rsp + 0x50]
movsxd rdx, dword [rsp + 0x70]
mov rax, rdx
cmp rdx, rdi
je 0x1400b2c3f
movsx r8d, byte [rsp + 0x54]
mov edx, dword [rsp + 0xb8]
mov rcx, qword [rsp + 0xa8]
call fcn.140067724
mov rcx, qword [rsp + 0x58]
movsxd rbx, dword [rsp + 0xb8]
mov rbp, rdi
cmp rbx, rdi
mov qword [rsp + 0x180], rbx
jle 0x1400b2e69
mov al, byte [0x14013424f]
cmp al, dil
jle 0x1400b3358
mov rdi, qword [rsp + 0x670]
mov ecx, 0x100
movzx eax, word [rdi + 0xc8]
test cx, ax
je 0x1400b2c92
mov ecx, 0xfeff
and ax, cx
mov word [rdi + 0xc8], ax
xor eax, eax
cmp word [rdi + 0xc8], ax
jne 0x1400b33b5
mov rcx, qword [rsp + 0x6a8]
xor edi, edi
cmp qword [rcx], rdi
je 0x1400b33b7
mov rax, qword [rsp + 0xa8]
mov rdx, qword [rax + rbp*8]
mov al, byte [rdx + 8]
cmp al, dil
je 0x1400b2cde
movsxd rcx, dword [rsp + 0xe8]
cmp rcx, rdi
jne 0x1400b2cf2
cmp al, dil
jne 0x1400b2e58
movsxd rcx, dword [rsp + 0xa0]
mov rax, rcx
cmp rcx, rdi
je 0x1400b2e58
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 0x1400b2d9d
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.1400e2360
mov rax, qword [rsp + 0x678]
mov r11, qword [rax]
xor eax, eax
cmp ebx, eax
jle 0x1400b2d77
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.14001d8e0
mov esi, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x180]
jmp 0x1400b2e37
mov rax, qword [rsp + 0x678]
mov r8, rdi
mov rdi, qword [rsp + 0x670]
mov rdx, qword [rax]
mov rcx, rdi
call fcn.14006150c
movsxd rcx, dword [rsp + 0xd8]
xor edx, edx
cmp rcx, rdx
je 0x1400b2e07
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, [0x1401175e8]
mov qword [rsp + 0x20], rax
call fcn.1400ad8fc
jmp 0x1400b2e37
mov rax, qword [rsp + 0x6a0]
cmp word [rax], dx
je 0x1400b2e37
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.14004b0dc
mov rcx, qword [rsp + 0x6a8]
xor edi, edi
mov rax, qword [rcx]
cmp rax, rdi
jle 0x1400b2e58
dec rax
mov qword [rcx], rax
cmp rax, rdi
je 0x1400b3358
inc rbp
cmp rbp, rbx
jl 0x1400b2c5b
mov rcx, qword [rsp + 0x58]
movsxd rdx, dword [rsp + 0xc8]
mov rax, rdx
cmp rdx, rdi
je 0x1400b335d
cmp rcx, rdi
je 0x1400b2e8e
cmp rcx, 0xffffffffffffffff
je 0x1400b2e8e
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x58], rdi
call fcn.14007be10
lea rcx, [rsp + 0xa8]
call fcn.140059920
lea rcx, [rsp + 0x80]
call fcn.140062738
movsxd rsi, dword [rsp + 0xf0]
mov rbx, qword [rsp + 0x680]
lea rcx, [rsp + 0xc0]
mov r8, rsi
mov rdx, rbx
call fcn.14006e2cc
lea rdx, [0x14011bd48]
lea rcx, [rsp + 0xc0]
call fcn.140062330
lea rcx, [rsp + 0x3f4]
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x3f0], edi
call fcn.1400fdc00
mov rdx, qword [rsp + 0xc0]
lea r8, [rsp + 0x3f0]
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x98], rdi
call fcn.1400fcf20
cmp qword [rsp + 0x98], rdi
je 0x1400b3073
mov al, byte [0x14013424f]
cmp al, dil
jle 0x1400b33d1
mov edi, dword [rsp + 0x3f0]
and edi, 0x10
je 0x1400b303a
mov ecx, 0x2e
xor ebp, ebp
cmp cx, word [rsp + 0x41c]
jne 0x1400b2f94
movzx eax, word [rsp + 0x41e]
cmp ax, bp
je 0x1400b303a
cmp cx, ax
jne 0x1400b2f94
cmp word [rsp + 0x420], bp
je 0x1400b303a
lea rcx, [rsp + 0xe0]
mov r8, rsi
mov rdx, rbx
call fcn.14006e2cc
lea rdx, [rsp + 0x41c]
lea rcx, [rsp + 0xe0]
call fcn.140062330
mov ecx, 0x10
call fcn.1400fded8
mov rbx, rax
cmp rax, rbp
je 0x1400b2fe4
mov rdx, qword [rsp + 0xe0]
mov rcx, rax
call fcn.14006e2a8
mov byte [rbx + 8], dil
jmp 0x1400b2fe7
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.1400625c4
lea rcx, [rsp + 0xe0]
call fcn.140059920
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 0x1400b2f40
mov rcx, qword [rsp + 0x98]
cmp rcx, rdi
je 0x1400b3073
cmp rcx, 0xffffffffffffffff
je 0x1400b3073
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x98], rdi
call fcn.140059920
movsxd rcx, dword [rsp + 0x70]
cmp rcx, rdi
je 0x1400b30ac
movsx r8d, byte [rsp + 0x54]
mov edx, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
call fcn.140067724
cmp qword [rsp + 0x198], rdi
je 0x1400b3252
mov rbx, rdi
movsxd rdi, dword [rsp + 0x90]
xor esi, esi
cmp rdi, rsi
jle 0x1400b3250
mov al, byte [0x14013424f]
cmp al, sil
jle 0x1400b33ff
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x68]
mov rdx, qword [rdx + rbx*8]
call fcn.14006e308
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0x68]
call fcn.140062330
cmp qword [rsp + 0x108], rsi
je 0x1400b3181
mov ebp, 8
mov rcx, rbp
call fcn.1400fded8
mov r11, rax
cmp rax, rsi
je 0x1400b3135
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x68], rsi
mov qword [r11], rax
jmp 0x1400b3138
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.1400625c4
lea rcx, [rsp + 0x68]
call fcn.140059920
jmp 0x1400b3244
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.1400b274c
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 0x1400b321f
mov edx, 0xfeff
and ax, dx
mov word [rcx + 0xc8], ax
xor eax, eax
cmp word [rcx + 0xc8], ax
jne 0x1400b3422
cmp qword [rbp], rax
je 0x1400b3422
lea rcx, [rsp + 0x68]
call fcn.140059920
xor esi, esi
inc rbx
cmp rbx, rdi
jl 0x1400b30d0
xor edi, edi
mov al, byte [0x14013424f]
cmp al, dil
jle 0x1400b33ff
mov rbp, qword [rsp + 0x108]
cmp rbp, rdi
je 0x1400b33ff
mov rdi, qword [rsp + 0xf8]
inc dword [rsp + 0x60]
inc rdi
cmp rdi, qword [rsp + 0x148]
mov qword [rsp + 0xf8], rdi
jge 0x1400b32c1
lea rcx, [rsp + 0x80]
call fcn.14007be10
lea rcx, [rsp + 0x80]
call fcn.140059920
mov esi, dword [rsp + 0x50]
mov rdx, qword [rsp + 0xd0]
xor r8d, r8d
jmp 0x1400b28e7
xor eax, eax
cmp qword [rsp + 0x128], rax
jle 0x1400b33ff
mov rdi, qword [rsp + 0x158]
lea rcx, [rsp + 0x118]
mov rdx, rdi
call fcn.14005da1c
lea rcx, [rsp + 0x118]
call fcn.14007be10
lea rcx, [rsp + 0x80]
call fcn.14007be10
lea rcx, [rsp + 0x80]
call fcn.140059920
mov esi, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x6b0]
xor r8d, r8d
jmp 0x1400b28a5
mov rcx, qword [rsp + 0x58]
cmp rcx, rdi
je 0x1400b3339
cmp rcx, 0xffffffffffffffff
je 0x1400b3339
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x58], rdi
call fcn.14007be10
lea rcx, [rsp + 0xa8]
jmp 0x1400b3414
mov rcx, qword [rsp + 0x58]
cmp rcx, rdi
je 0x1400b336e
cmp rcx, 0xffffffffffffffff
je 0x1400b336e
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x58], rdi
call fcn.14007be10
lea rcx, [rsp + 0xa8]
call fcn.140059920
lea rcx, [rsp + 0x118]
call fcn.14007be10
lea rcx, [rsp + 0x118]
call fcn.140059920
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 0x1400b33cd
cmp rcx, 0xffffffffffffffff
je 0x1400b33cd
call qword [sym.imp.KERNEL32.dll_FindClose]
mov esi, edi
jmp 0x1400b336e
mov rcx, qword [rsp + 0x98]
cmp rcx, rdi
je 0x1400b33ea
cmp rcx, 0xffffffffffffffff
je 0x1400b33ea
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x98], rdi
call fcn.140059920
lea rcx, [rsp + 0x80]
call fcn.14007be10
lea rcx, [rsp + 0x80]
call fcn.140059920
mov esi, dword [rsp + 0x50]
jmp 0x1400b338d
lea rcx, [rsp + 0x68]
call fcn.140059920
lea rcx, [rsp + 0x80]
call fcn.14007be10
lea rcx, [rsp + 0x80]
jmp 0x1400b3388