Function at 0x140042750
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.140051bb0
mov qword [rsp + 0x130], rax
mov rdx, qword [rsp + 0x130]
lea rcx, [rsp + 0x220]
call fcn.1400424c0
mov qword [rsp + 0x138], rax
mov rdx, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x3f0]
call fcn.1400518d0
lea rcx, [rsp + 0x220]
call fcn.140052280
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.140043130
mov rcx, rax
call fcn.140044f40
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0xd0]
movzx edx, byte [rsp + 0x54]
mov rcx, rax
call fcn.140054270
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 0x140042833
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.140054580
nop
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x158], rax
mov rdx, qword [rsp + 0x158]
lea rcx, [rsp + 0x240]
call fcn.1400424c0
mov qword [rsp + 0x160], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x3f0]
call fcn.140051620
cmp rax, 0xffffffffffffffff
je 0x1400428db
mov dword [rsp + 0x5c], 1
jmp 0x1400428e3
mov dword [rsp + 0x5c], 0
movzx eax, byte [rsp + 0x5c]
mov byte [rsp + 0x41], al
lea rcx, [rsp + 0x240]
call fcn.140052280
movzx eax, byte [rsp + 0x41]
test eax, eax
je 0x14004292b
mov dword [rsp + 0xa0], 1
mov rcx, qword [rsp + 0x3f0]
call fcn.140052280
mov eax, dword [rsp + 0xa0]
jmp 0x140043122
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.140043240
mov rcx, rax
call fcn.140044eb0
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0xd8]
movzx edx, byte [rsp + 0x55]
mov rcx, rax
call fcn.140054270
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 0x140042998
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.140054580
nop
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x180], rax
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x260]
call fcn.1400424c0
mov qword [rsp + 0x188], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x3f0]
call fcn.140051620
cmp rax, 0xffffffffffffffff
je 0x140042a49
mov dword [rsp + 0x60], 1
jmp 0x140042a51
mov dword [rsp + 0x60], 0
movzx eax, byte [rsp + 0x60]
mov byte [rsp + 0x43], al
lea rcx, [rsp + 0x260]
call fcn.140052280
movzx eax, byte [rsp + 0x43]
test eax, eax
je 0x140042a99
mov dword [rsp + 0xa4], 2
mov rcx, qword [rsp + 0x3f0]
call fcn.140052280
mov eax, dword [rsp + 0xa4]
jmp 0x140043122
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.140043350
mov rcx, rax
call fcn.140044e20
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0xe0]
movzx edx, byte [rsp + 0x56]
mov rcx, rax
call fcn.140054270
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 0x140042b06
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.140054580
nop
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x1a8], rax
mov rdx, qword [rsp + 0x1a8]
lea rcx, [rsp + 0x280]
call fcn.1400424c0
mov qword [rsp + 0x1b0], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0x3f0]
call fcn.140051620
cmp rax, 0xffffffffffffffff
je 0x140042bb7
mov dword [rsp + 0x64], 1
jmp 0x140042bbf
mov dword [rsp + 0x64], 0
movzx eax, byte [rsp + 0x64]
mov byte [rsp + 0x45], al
lea rcx, [rsp + 0x280]
call fcn.140052280
movzx eax, byte [rsp + 0x45]
test eax, eax
je 0x140042c07
mov dword [rsp + 0xa8], 3
mov rcx, qword [rsp + 0x3f0]
call fcn.140052280
mov eax, dword [rsp + 0xa8]
jmp 0x140043122
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.140043460
mov rcx, rax
call fcn.140044d90
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0xe8]
movzx edx, byte [rsp + 0x57]
mov rcx, rax
call fcn.140054270
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 0x140042c74
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.140054580
nop
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x1d0], rax
mov rdx, qword [rsp + 0x1d0]
lea rcx, [rsp + 0x2a0]
call fcn.1400424c0
mov qword [rsp + 0x1d8], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x1d8]
mov rcx, qword [rsp + 0x3f0]
call fcn.140051620
cmp rax, 0xffffffffffffffff
je 0x140042d25
mov dword [rsp + 0x68], 1
jmp 0x140042d2d
mov dword [rsp + 0x68], 0
movzx eax, byte [rsp + 0x68]
mov byte [rsp + 0x47], al
lea rcx, [rsp + 0x2a0]
call fcn.140052280
movzx eax, byte [rsp + 0x47]
test eax, eax
je 0x140042d75
mov dword [rsp + 0xac], 3
mov rcx, qword [rsp + 0x3f0]
call fcn.140052280
mov eax, dword [rsp + 0xac]
jmp 0x140043122
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.140043590
mov rcx, rax
call fcn.140044d00
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0xf0]
movzx edx, byte [rsp + 0x58]
mov rcx, rax
call fcn.140054270
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 0x140042de2
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.140054580
nop
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x1f8], rax
mov rdx, qword [rsp + 0x1f8]
lea rcx, [rsp + 0x2c0]
call fcn.1400424c0
mov qword [rsp + 0x200], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x3f0]
call fcn.140051620
cmp rax, 0xffffffffffffffff
je 0x140042e93
mov dword [rsp + 0x6c], 1
jmp 0x140042e9b
mov dword [rsp + 0x6c], 0
movzx eax, byte [rsp + 0x6c]
mov byte [rsp + 0x49], al
lea rcx, [rsp + 0x2c0]
call fcn.140052280
movzx eax, byte [rsp + 0x49]
test eax, eax
je 0x140042ee3
mov dword [rsp + 0xb0], 4
mov rcx, qword [rsp + 0x3f0]
call fcn.140052280
mov eax, dword [rsp + 0xb0]
jmp 0x140043122
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.1400436a0
mov rcx, rax
call fcn.140044c70
mov rdx, rax
mov rcx, qword [rsp + 0x208]
call fcn.140051a70
mov qword [rsp + 0x210], rax
mov rdx, qword [rsp + 0x210]
lea rcx, [rsp + 0x2e0]
call fcn.1400424c0
mov qword [rsp + 0x218], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x218]
mov rcx, qword [rsp + 0x3f0]
call fcn.140051620
cmp rax, 0xffffffffffffffff
je 0x140042f73
mov dword [rsp + 0x70], 1
jmp 0x140042f7b
mov dword [rsp + 0x70], 0
movzx eax, byte [rsp + 0x70]
mov byte [rsp + 0x4b], al
lea rcx, [rsp + 0x2e0]
call fcn.140052280
movzx eax, byte [rsp + 0x4b]
test eax, eax
je 0x140042fbe
mov dword [rsp + 0xb4], 4
mov rcx, qword [rsp + 0x3f0]
call fcn.140052280
mov eax, dword [rsp + 0xb4]
jmp 0x140043122
lea rax, [rsp + 0x4c]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rcx, [rsp + 0x4c]
call fcn.1400437c0
mov rcx, rax
call fcn.140044be0
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 0x140043103
cmp qword [rsp + 0xf8], 0xffffffffffffffff
je 0x140043103
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 0x14004307e
mov dword [rsp + 0xb8], 1
mov rcx, qword [rsp + 0x3f0]
call fcn.140052280
mov eax, dword [rsp + 0xb8]
jmp 0x140043122
cmp dword [rsp + 0x50], 0x24e1e
jne 0x1400430ab
mov dword [rsp + 0xbc], 2
mov rcx, qword [rsp + 0x3f0]
call fcn.140052280
mov eax, dword [rsp + 0xbc]
jmp 0x140043122
cmp dword [rsp + 0x50], 0x2a83e
jne 0x1400430d8
mov dword [rsp + 0xc0], 3
mov rcx, qword [rsp + 0x3f0]
call fcn.140052280
mov eax, dword [rsp + 0xc0]
jmp 0x140043122
cmp dword [rsp + 0x50], 0xe8c2
jne 0x140043103
mov dword [rsp + 0xc4], 4
mov rcx, qword [rsp + 0x3f0]
call fcn.140052280
mov eax, dword [rsp + 0xc4]
jmp 0x140043122
mov dword [rsp + 0xc8], 0
mov rcx, qword [rsp + 0x3f0]
call fcn.140052280
mov eax, dword [rsp + 0xc8]
add rsp, 0x3e0
pop rdi
ret