Function at 0x140030670
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 [0x1400bdbf0]
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 + reloc.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____], 0
je 0x14003071d
mov rax, qword [rsp + reloc.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____]
mov dword [rax], 0
cmp qword [rsp + 0x130], 0
je 0x140030736
mov rax, qword [rsp + 0x130]
mov dword [rax], 0
cmp qword [rsp + 0x120], 0xffffffffffffffff
je 0x140030760
cmp qword [rsp + reloc.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____], 0
je 0x140030760
cmp dword [0x1400cc6c0], 0
je 0x140030760
cmp qword [rsp + 0x130], 0
jne 0x14003076a
jmp 0x1400309d1
cmp dword [0x1400cc6c0], 0
jne 0x14003077d
jmp 0x1400309d1
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 0x1400307a7
jmp 0x1400309d1
mov eax, dword [rsp + 0x20]
cmp dword [0x1400ccaec], eax
jae 0x1400307d0
mov rax, qword [rsp + reloc.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____]
mov dword [rax], 1
jmp 0x1400309d1
cmp dword [rsp + 0x20], 0
jne 0x1400308aa
mov rax, qword [rsp + 0x130]
mov dword [rax], 1
lea rcx, [rsp + 0x30]
call fcn.1400309f0
test eax, eax
jne 0x140030801
jmp 0x1400309d1
mov r9d, 0x20
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.140030f20
test eax, eax
jne 0x14003082c
jmp 0x1400309d1
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x120]
call fcn.140030cd0
test eax, eax
jne 0x14003084c
jmp 0x1400309d1
movzx eax, word [rsp + 0x49]
mov word [0x1400ccb00], ax
movsx eax, byte [rsp + 0x48]
mov dword [0x1400ccb04], eax
mov r8d, 0x20
lea rdx, [rsp + 0xe0]
lea rcx, [0x1400ccb48]
call sub.MSVCR90.dll_memcpy
mov r9d, 1
xor r8d, r8d
mov edx, 0x20
lea rcx, [0x1400ccb48]
call fcn.140031120
test eax, eax
jne 0x1400308a5
jmp 0x1400309d1
jmp 0x1400309c9
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x120]
call fcn.140030d60
test eax, eax
jne 0x1400308ca
jmp 0x1400309d1
movzx ecx, word [rsp + 0x7d]
movzx eax, word [0x1400ccb00]
cmp ecx, eax
jne 0x1400308f7
movsx eax, byte [rsp + 0x7c]
cmp eax, dword [0x1400ccb04]
jne 0x1400308f7
mov eax, dword [0x1400ccae4]
cmp dword [rsp + 0x7f], eax
je 0x1400309c9
lea rcx, [rsp + 0x30]
call fcn.1400309f0
test eax, eax
jne 0x14003090f
jmp 0x1400309d1
movzx eax, word [rsp + 0x49]
mov word [0x1400ccb00], ax
movsx eax, byte [rsp + 0x48]
mov dword [0x1400ccb04], eax
mov eax, dword [rsp + 0x7f]
mov dword [0x1400ccae4], eax
mov r8d, 0x20
lea rdx, [rsp + 0xe0]
lea rcx, [0x1400ccb48]
call sub.MSVCR90.dll_memcpy
mov r8d, 0x20
lea rdx, [rsp + 0x83]
lea rcx, [0x1400ccb48]
call sub.MSVCR90.dll_memcpy
xor r9d, r9d
lea r8, [rsp + 0x4b]
mov edx, 0x20
lea rcx, [0x1400ccb48]
call fcn.140031120
test eax, eax
jne 0x140030985
jmp 0x1400309d1
mov r9d, 1
xor r8d, r8d
mov edx, 0x20
lea rcx, [0x1400ccb48]
call fcn.140031120
test eax, eax
jne 0x1400309a7
jmp 0x1400309d1
movzx ecx, word [rsp + 0x7d]
movzx eax, word [0x1400ccb00]
cmp ecx, eax
je 0x1400309c9
mov rax, qword [rsp + reloc.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____]
mov dword [rax], 1
jmp 0x1400309d1
mov dword [rsp + 0x24], 1
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.14004d770
add rsp, 0x110
pop rdi
ret