Function at 0x140013530
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x110
mov rax, qword [0x140172b58]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov dword [rsp + 0x24], 0
mov byte [rsp + 0x30], 0
lea rdi, [rsp + 0x31]
xor eax, eax
mov ecx, 7
rep stosb byte [rdi], al
lea rdi, [rsp + 0x38]
xor eax, eax
mov ecx, 0x24
rep stosb byte [rdi], al
mov byte [rsp + 0x60], 0
lea rdi, [rsp + 0x61]
xor eax, eax
mov ecx, 9
rep stosb byte [rdi], al
lea rdi, [rsp + 0x6a]
xor eax, eax
mov ecx, 0x76
rep stosb byte [rdi], al
mov byte [rsp + 0xe0], 0
lea rdi, [rsp + 0xe1]
xor eax, eax
mov ecx, 0x1f
rep stosb byte [rdi], al
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x128], 0
je 0x1400135dd
mov rax, qword [rsp + 0x128]
mov dword [rax], 0
cmp qword [rsp + 0x130], 0
je 0x1400135f6
mov rax, qword [rsp + 0x130]
mov dword [rax], 0
cmp qword [rsp + 0x120], 0xffffffffffffffff
je 0x140013620
cmp qword [rsp + 0x128], 0
je 0x140013620
cmp dword [0x140178390], 0
je 0x140013620
cmp qword [rsp + 0x130], 0
jne 0x14001362a
jmp 0x140013891
cmp dword [0x140178390], 0
jne 0x14001363d
jmp 0x140013891
xor edx, edx
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x140013667
jmp 0x140013891
mov eax, dword [rsp + 0x20]
cmp dword [0x1401787bc], eax
jae 0x140013690
mov rax, qword [rsp + 0x128]
mov dword [rax], 1
jmp 0x140013891
cmp dword [rsp + 0x20], 0
jne 0x14001376a
mov rax, qword [rsp + 0x130]
mov dword [rax], 1
lea rcx, [rsp + 0x30]
call fcn.1400138c0
test eax, eax
jne 0x1400136c1
jmp 0x140013891
mov r9d, 0x20
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.140013e10
test eax, eax
jne 0x1400136ec
jmp 0x140013891
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x120]
call fcn.140013ba0
test eax, eax
jne 0x14001370c
jmp 0x140013891
movzx eax, word [rsp + 0x49]
mov word [0x1401787d0], ax
movsx eax, byte [rsp + 0x48]
mov dword [0x1401787d4], eax
mov r8d, 0x20
lea rdx, [rsp + 0xe0]
lea rcx, [0x140178818]
call sub.MSVCR90.dll_memcpy
mov r9d, 1
xor r8d, r8d
mov edx, 0x20
lea rcx, [0x140178818]
call fcn.140014010
test eax, eax
jne 0x140013765
jmp 0x140013891
jmp 0x140013889
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x120]
call fcn.140013c40
test eax, eax
jne 0x14001378a
jmp 0x140013891
movzx ecx, word [rsp + 0x7d]
movzx eax, word [0x1401787d0]
cmp ecx, eax
jne 0x1400137b7
movsx eax, byte [rsp + 0x7c]
cmp eax, dword [0x1401787d4]
jne 0x1400137b7
mov eax, dword [0x1401787b4]
cmp dword [rsp + 0x7f], eax
je 0x140013889
lea rcx, [rsp + 0x30]
call fcn.1400138c0
test eax, eax
jne 0x1400137cf
jmp 0x140013891
movzx eax, word [rsp + 0x49]
mov word [0x1401787d0], ax
movsx eax, byte [rsp + 0x48]
mov dword [0x1401787d4], eax
mov eax, dword [rsp + 0x7f]
mov dword [0x1401787b4], eax
mov r8d, 0x20
lea rdx, [rsp + 0xe0]
lea rcx, [0x140178818]
call sub.MSVCR90.dll_memcpy
mov r8d, 0x20
lea rdx, [rsp + 0x83]
lea rcx, [0x140178818]
call sub.MSVCR90.dll_memcpy
xor r9d, r9d
lea r8, [rsp + 0x4b]
mov edx, 0x20
lea rcx, [0x140178818]
call fcn.140014010
test eax, eax
jne 0x140013845
jmp 0x140013891
mov r9d, 1
xor r8d, r8d
mov edx, 0x20
lea rcx, [0x140178818]
call fcn.140014010
test eax, eax
jne 0x140013867
jmp 0x140013891
movzx ecx, word [rsp + 0x7d]
movzx eax, word [0x1401787d0]
cmp ecx, eax
je 0x140013889
mov rax, qword [rsp + 0x128]
mov dword [rax], 1
jmp 0x140013891
mov dword [rsp + 0x24], 1
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140103060
add rsp, 0x110
pop rdi
ret