Function at 0x140047920
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x3e0
lea rax, [rsp + 0x300]
mov qword [rsp + 0x128], rax
mov rdx, qword [rsp + 0x3f0]
mov rcx, qword [rsp + 0x128]
call fcn.140057900
mov qword [rsp + 0x130], rax
mov rdx, qword [rsp + 0x130]
lea rcx, [rsp + 0x220]
call fcn.1400476a0
mov qword [rsp + 0x138], rax
mov rdx, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x3f0]
call fcn.140057620
lea rcx, [rsp + 0x220]
call fcn.140057fd0
lea rax, [rsp + 0x320]
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
call fcn.140048300
mov rcx, rax
call fcn.14004a110
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0xd0]
movzx edx, byte [rsp + 0x54]
mov rcx, rax
call fcn.140059fc0
nop
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x78], 0xffffffffffffffff
inc qword [rsp + 0x78]
mov rax, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x78]
cmp byte [rax + rcx], 0
jne 0x140047a03
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x150], rax
mov r8, qword [rsp + 0x150]
mov rdx, qword [rsp + 0x100]
mov rcx, qword [rsp + 0xd0]
call fcn.14005a2d0
nop
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x158], rax
mov rdx, qword [rsp + 0x158]
lea rcx, [rsp + 0x240]
call fcn.1400476a0
mov qword [rsp + 0x160], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x3f0]
call fcn.140057330
cmp rax, 0xffffffffffffffff
je 0x140047aab
mov dword [rsp + 0x5c], 1
jmp 0x140047ab3
mov dword [rsp + 0x5c], 0
movzx eax, byte [rsp + 0x5c]
mov byte [rsp + 0x41], al
lea rcx, [rsp + 0x240]
call fcn.140057fd0
movzx eax, byte [rsp + 0x41]
test eax, eax
je 0x140047afb
mov dword [rsp + 0xa0], 1
mov rcx, qword [rsp + 0x3f0]
call fcn.140057fd0
mov eax, dword [rsp + 0xa0]
jmp 0x1400482f2
lea rax, [rsp + 0x340]
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x42]
call fcn.140048410
mov rcx, rax
call fcn.14004a080
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0xd8]
movzx edx, byte [rsp + 0x55]
mov rcx, rax
call fcn.140059fc0
nop
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x168], rax
mov qword [rsp + 0x80], 0xffffffffffffffff
inc qword [rsp + 0x80]
mov rax, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x80]
cmp byte [rax + rcx], 0
jne 0x140047b68
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x178], rax
mov r8, qword [rsp + 0x178]
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xd8]
call fcn.14005a2d0
nop
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x180], rax
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x260]
call fcn.1400476a0
mov qword [rsp + 0x188], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x3f0]
call fcn.140057330
cmp rax, 0xffffffffffffffff
je 0x140047c19
mov dword [rsp + 0x60], 1
jmp 0x140047c21
mov dword [rsp + 0x60], 0
movzx eax, byte [rsp + 0x60]
mov byte [rsp + 0x43], al
lea rcx, [rsp + 0x260]
call fcn.140057fd0
movzx eax, byte [rsp + 0x43]
test eax, eax
je 0x140047c69
mov dword [rsp + 0xa4], 2
mov rcx, qword [rsp + 0x3f0]
call fcn.140057fd0
mov eax, dword [rsp + 0xa4]
jmp 0x1400482f2
lea rax, [rsp + 0x360]
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0x44]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x44]
call fcn.140048520
mov rcx, rax
call fcn.140049ff0
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0xe0]
movzx edx, byte [rsp + 0x56]
mov rcx, rax
call fcn.140059fc0
nop
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x190], rax
mov qword [rsp + 0x88], 0xffffffffffffffff
inc qword [rsp + 0x88]
mov rax, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x88]
cmp byte [rax + rcx], 0
jne 0x140047cd6
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x198], rax
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x1a0], rax
mov r8, qword [rsp + 0x1a0]
mov rdx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xe0]
call fcn.14005a2d0
nop
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x1a8], rax
mov rdx, qword [rsp + 0x1a8]
lea rcx, [rsp + 0x280]
call fcn.1400476a0
mov qword [rsp + 0x1b0], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0x3f0]
call fcn.140057330
cmp rax, 0xffffffffffffffff
je 0x140047d87
mov dword [rsp + 0x64], 1
jmp 0x140047d8f
mov dword [rsp + 0x64], 0
movzx eax, byte [rsp + 0x64]
mov byte [rsp + 0x45], al
lea rcx, [rsp + 0x280]
call fcn.140057fd0
movzx eax, byte [rsp + 0x45]
test eax, eax
je 0x140047dd7
mov dword [rsp + 0xa8], 3
mov rcx, qword [rsp + 0x3f0]
call fcn.140057fd0
mov eax, dword [rsp + 0xa8]
jmp 0x1400482f2
lea rax, [rsp + 0x380]
mov qword [rsp + 0xe8], rax
lea rax, [rsp + 0x46]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x46]
call fcn.140048630
mov rcx, rax
call fcn.140049f60
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0xe8]
movzx edx, byte [rsp + 0x57]
mov rcx, rax
call fcn.140059fc0
nop
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x1b8], rax
mov qword [rsp + 0x90], 0xffffffffffffffff
inc qword [rsp + 0x90]
mov rax, qword [rsp + 0x1b8]
mov rcx, qword [rsp + 0x90]
cmp byte [rax + rcx], 0
jne 0x140047e44
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x1c0], rax
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0x1c8], rax
mov r8, qword [rsp + 0x1c8]
mov rdx, qword [rsp + 0x118]
mov rcx, qword [rsp + 0xe8]
call fcn.14005a2d0
nop
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x1d0], rax
mov rdx, qword [rsp + 0x1d0]
lea rcx, [rsp + 0x2a0]
call fcn.1400476a0
mov qword [rsp + 0x1d8], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x1d8]
mov rcx, qword [rsp + 0x3f0]
call fcn.140057330
cmp rax, 0xffffffffffffffff
je 0x140047ef5
mov dword [rsp + 0x68], 1
jmp 0x140047efd
mov dword [rsp + 0x68], 0
movzx eax, byte [rsp + 0x68]
mov byte [rsp + 0x47], al
lea rcx, [rsp + 0x2a0]
call fcn.140057fd0
movzx eax, byte [rsp + 0x47]
test eax, eax
je 0x140047f45
mov dword [rsp + 0xac], 3
mov rcx, qword [rsp + 0x3f0]
call fcn.140057fd0
mov eax, dword [rsp + 0xac]
jmp 0x1400482f2
lea rax, [rsp + 0x3a0]
mov qword [rsp + 0xf0], rax
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x48]
call fcn.140048760
mov rcx, rax
call fcn.140049ed0
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0xf0]
movzx edx, byte [rsp + 0x58]
mov rcx, rax
call fcn.140059fc0
nop
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x1e0], rax
mov qword [rsp + 0x98], 0xffffffffffffffff
inc qword [rsp + 0x98]
mov rax, qword [rsp + 0x1e0]
mov rcx, qword [rsp + 0x98]
cmp byte [rax + rcx], 0
jne 0x140047fb2
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x1e8], rax
mov rax, qword [rsp + 0x1e8]
mov qword [rsp + 0x1f0], rax
mov r8, qword [rsp + 0x1f0]
mov rdx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0xf0]
call fcn.14005a2d0
nop
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x1f8], rax
mov rdx, qword [rsp + 0x1f8]
lea rcx, [rsp + 0x2c0]
call fcn.1400476a0
mov qword [rsp + 0x200], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x3f0]
call fcn.140057330
cmp rax, 0xffffffffffffffff
je 0x140048063
mov dword [rsp + 0x6c], 1
jmp 0x14004806b
mov dword [rsp + 0x6c], 0
movzx eax, byte [rsp + 0x6c]
mov byte [rsp + 0x49], al
lea rcx, [rsp + 0x2c0]
call fcn.140057fd0
movzx eax, byte [rsp + 0x49]
test eax, eax
je 0x1400480b3
mov dword [rsp + 0xb0], 4
mov rcx, qword [rsp + 0x3f0]
call fcn.140057fd0
mov eax, dword [rsp + 0xb0]
jmp 0x1400482f2
lea rax, [rsp + 0x3c0]
mov qword [rsp + 0x208], rax
lea rax, [rsp + 0x4a]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x4a]
call fcn.140048870
mov rcx, rax
call fcn.140049e40
mov rdx, rax
mov rcx, qword [rsp + 0x208]
call fcn.1400577c0
mov qword [rsp + 0x210], rax
mov rdx, qword [rsp + 0x210]
lea rcx, [rsp + 0x2e0]
call fcn.1400476a0
mov qword [rsp + 0x218], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x218]
mov rcx, qword [rsp + 0x3f0]
call fcn.140057330
cmp rax, 0xffffffffffffffff
je 0x140048143
mov dword [rsp + 0x70], 1
jmp 0x14004814b
mov dword [rsp + 0x70], 0
movzx eax, byte [rsp + 0x70]
mov byte [rsp + 0x4b], al
lea rcx, [rsp + 0x2e0]
call fcn.140057fd0
movzx eax, byte [rsp + 0x4b]
test eax, eax
je 0x14004818e
mov dword [rsp + 0xb4], 4
mov rcx, qword [rsp + 0x3f0]
call fcn.140057fd0
mov eax, dword [rsp + 0xb4]
jmp 0x1400482f2
lea rax, [rsp + 0x4c]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x4c]
call fcn.140048990
mov rcx, rax
call fcn.140049db0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x1f01ff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0xf8], rax
cmp qword [rsp + 0xf8], 0
je 0x1400482d3
cmp qword [rsp + 0xf8], 0xffffffffffffffff
je 0x1400482d3
xor edx, edx
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0x417fe
jne 0x14004824e
mov dword [rsp + 0xb8], 1
mov rcx, qword [rsp + 0x3f0]
call fcn.140057fd0
mov eax, dword [rsp + 0xb8]
jmp 0x1400482f2
cmp dword [rsp + 0x50], 0x24e1e
jne 0x14004827b
mov dword [rsp + 0xbc], 2
mov rcx, qword [rsp + 0x3f0]
call fcn.140057fd0
mov eax, dword [rsp + 0xbc]
jmp 0x1400482f2
cmp dword [rsp + 0x50], 0x2a83e
jne 0x1400482a8
mov dword [rsp + 0xc0], 3
mov rcx, qword [rsp + 0x3f0]
call fcn.140057fd0
mov eax, dword [rsp + 0xc0]
jmp 0x1400482f2
cmp dword [rsp + 0x50], 0xe8c2
jne 0x1400482d3
mov dword [rsp + 0xc4], 4
mov rcx, qword [rsp + 0x3f0]
call fcn.140057fd0
mov eax, dword [rsp + 0xc4]
jmp 0x1400482f2
mov dword [rsp + 0xc8], 0
mov rcx, qword [rsp + 0x3f0]
call fcn.140057fd0
mov eax, dword [rsp + 0xc8]
add rsp, 0x3e0
pop rdi
ret