Function at 0x140047930
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.140057880
mov qword [rsp + 0x130], rax
mov rdx, qword [rsp + 0x130]
lea rcx, [rsp + 0x220]
call fcn.1400476b0
mov qword [rsp + 0x138], rax
mov rdx, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x3f0]
call fcn.1400575a0
lea rcx, [rsp + 0x220]
call fcn.140057f50
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.140048310
mov rcx, rax
call fcn.14004a120
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0xd0]
movzx edx, byte [rsp + 0x54]
mov rcx, rax
call fcn.140059f40
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 0x140047a13
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.14005a250
nop
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x158], rax
mov rdx, qword [rsp + 0x158]
lea rcx, [rsp + 0x240]
call fcn.1400476b0
mov qword [rsp + 0x160], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x3f0]
call fcn.1400572b0
cmp rax, 0xffffffffffffffff
je 0x140047abb
mov dword [rsp + 0x5c], 1
jmp 0x140047ac3
mov dword [rsp + 0x5c], 0
movzx eax, byte [rsp + 0x5c]
mov byte [rsp + 0x41], al
lea rcx, [rsp + 0x240]
call fcn.140057f50
movzx eax, byte [rsp + 0x41]
test eax, eax
je 0x140047b0b
mov dword [rsp + 0xa0], 1
mov rcx, qword [rsp + 0x3f0]
call fcn.140057f50
mov eax, dword [rsp + 0xa0]
jmp 0x140048302
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.140048420
mov rcx, rax
call fcn.14004a090
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0xd8]
movzx edx, byte [rsp + 0x55]
mov rcx, rax
call fcn.140059f40
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 0x140047b78
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.14005a250
nop
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x180], rax
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x260]
call fcn.1400476b0
mov qword [rsp + 0x188], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x3f0]
call fcn.1400572b0
cmp rax, 0xffffffffffffffff
je 0x140047c29
mov dword [rsp + 0x60], 1
jmp 0x140047c31
mov dword [rsp + 0x60], 0
movzx eax, byte [rsp + 0x60]
mov byte [rsp + 0x43], al
lea rcx, [rsp + 0x260]
call fcn.140057f50
movzx eax, byte [rsp + 0x43]
test eax, eax
je 0x140047c79
mov dword [rsp + 0xa4], 2
mov rcx, qword [rsp + 0x3f0]
call fcn.140057f50
mov eax, dword [rsp + 0xa4]
jmp 0x140048302
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.140048530
mov rcx, rax
call fcn.14004a000
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0xe0]
movzx edx, byte [rsp + 0x56]
mov rcx, rax
call fcn.140059f40
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 0x140047ce6
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.14005a250
nop
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x1a8], rax
mov rdx, qword [rsp + 0x1a8]
lea rcx, [rsp + 0x280]
call fcn.1400476b0
mov qword [rsp + 0x1b0], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0x3f0]
call fcn.1400572b0
cmp rax, 0xffffffffffffffff
je 0x140047d97
mov dword [rsp + 0x64], 1
jmp 0x140047d9f
mov dword [rsp + 0x64], 0
movzx eax, byte [rsp + 0x64]
mov byte [rsp + 0x45], al
lea rcx, [rsp + 0x280]
call fcn.140057f50
movzx eax, byte [rsp + 0x45]
test eax, eax
je 0x140047de7
mov dword [rsp + 0xa8], 3
mov rcx, qword [rsp + 0x3f0]
call fcn.140057f50
mov eax, dword [rsp + 0xa8]
jmp 0x140048302
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.140048640
mov rcx, rax
call fcn.140049f70
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0xe8]
movzx edx, byte [rsp + 0x57]
mov rcx, rax
call fcn.140059f40
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 0x140047e54
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.14005a250
nop
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x1d0], rax
mov rdx, qword [rsp + 0x1d0]
lea rcx, [rsp + 0x2a0]
call fcn.1400476b0
mov qword [rsp + 0x1d8], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x1d8]
mov rcx, qword [rsp + 0x3f0]
call fcn.1400572b0
cmp rax, 0xffffffffffffffff
je 0x140047f05
mov dword [rsp + 0x68], 1
jmp 0x140047f0d
mov dword [rsp + 0x68], 0
movzx eax, byte [rsp + 0x68]
mov byte [rsp + 0x47], al
lea rcx, [rsp + 0x2a0]
call fcn.140057f50
movzx eax, byte [rsp + 0x47]
test eax, eax
je 0x140047f55
mov dword [rsp + 0xac], 3
mov rcx, qword [rsp + 0x3f0]
call fcn.140057f50
mov eax, dword [rsp + 0xac]
jmp 0x140048302
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.140048770
mov rcx, rax
call fcn.140049ee0
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0xf0]
movzx edx, byte [rsp + 0x58]
mov rcx, rax
call fcn.140059f40
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 0x140047fc2
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.14005a250
nop
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x1f8], rax
mov rdx, qword [rsp + 0x1f8]
lea rcx, [rsp + 0x2c0]
call fcn.1400476b0
mov qword [rsp + 0x200], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x3f0]
call fcn.1400572b0
cmp rax, 0xffffffffffffffff
je 0x140048073
mov dword [rsp + 0x6c], 1
jmp 0x14004807b
mov dword [rsp + 0x6c], 0
movzx eax, byte [rsp + 0x6c]
mov byte [rsp + 0x49], al
lea rcx, [rsp + 0x2c0]
call fcn.140057f50
movzx eax, byte [rsp + 0x49]
test eax, eax
je 0x1400480c3
mov dword [rsp + 0xb0], 4
mov rcx, qword [rsp + 0x3f0]
call fcn.140057f50
mov eax, dword [rsp + 0xb0]
jmp 0x140048302
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.140048880
mov rcx, rax
call fcn.140049e50
mov rdx, rax
mov rcx, qword [rsp + 0x208]
call fcn.140057740
mov qword [rsp + 0x210], rax
mov rdx, qword [rsp + 0x210]
lea rcx, [rsp + 0x2e0]
call fcn.1400476b0
mov qword [rsp + 0x218], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x218]
mov rcx, qword [rsp + 0x3f0]
call fcn.1400572b0
cmp rax, 0xffffffffffffffff
je 0x140048153
mov dword [rsp + 0x70], 1
jmp 0x14004815b
mov dword [rsp + 0x70], 0
movzx eax, byte [rsp + 0x70]
mov byte [rsp + 0x4b], al
lea rcx, [rsp + 0x2e0]
call fcn.140057f50
movzx eax, byte [rsp + 0x4b]
test eax, eax
je 0x14004819e
mov dword [rsp + 0xb4], 4
mov rcx, qword [rsp + 0x3f0]
call fcn.140057f50
mov eax, dword [rsp + 0xb4]
jmp 0x140048302
lea rax, [rsp + 0x4c]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x4c]
call fcn.1400489a0
mov rcx, rax
call fcn.140049dc0
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 0x1400482e3
cmp qword [rsp + 0xf8], 0xffffffffffffffff
je 0x1400482e3
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 0x14004825e
mov dword [rsp + 0xb8], 1
mov rcx, qword [rsp + 0x3f0]
call fcn.140057f50
mov eax, dword [rsp + 0xb8]
jmp 0x140048302
cmp dword [rsp + 0x50], 0x24e1e
jne 0x14004828b
mov dword [rsp + 0xbc], 2
mov rcx, qword [rsp + 0x3f0]
call fcn.140057f50
mov eax, dword [rsp + 0xbc]
jmp 0x140048302
cmp dword [rsp + 0x50], 0x2a83e
jne 0x1400482b8
mov dword [rsp + 0xc0], 3
mov rcx, qword [rsp + 0x3f0]
call fcn.140057f50
mov eax, dword [rsp + 0xc0]
jmp 0x140048302
cmp dword [rsp + 0x50], 0xe8c2
jne 0x1400482e3
mov dword [rsp + 0xc4], 4
mov rcx, qword [rsp + 0x3f0]
call fcn.140057f50
mov eax, dword [rsp + 0xc4]
jmp 0x140048302
mov dword [rsp + 0xc8], 0
mov rcx, qword [rsp + 0x3f0]
call fcn.140057f50
mov eax, dword [rsp + 0xc8]
add rsp, 0x3e0
pop rdi
ret