Function at 0x140004870
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0xa10
mov rax, qword [0x140019160]
xor rax, rsp
mov qword [rsp + 0xa00], rax
mov rsi, rdx
mov rbx, r8
mov rbp, rcx
xor r12d, r12d
xor edx, edx
mov r8d, 0x640
mov rcx, rsi
mov edi, 1
mov dword [rsp + 0x40], r12d
call fcn.140007bd0
lea r8, [rsp + 0x5f0]
xor r9d, r9d
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x14000519a
cmp eax, 0x104
ja 0x14000519a
lea r8, str.Printer
lea rdx, [rsp + 0x5f0]
mov r9d, edi
mov rcx, rbp
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], rsi
call fcn.140004760
test eax, eax
je 0x140004f6a
lea rbx, [rsi + 0x408]
lea r8, str.ImageDriver
lea rdx, [rsp + 0x5f0]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rbx
call fcn.140004760
test eax, eax
jne 0x14000494d
mov dword [rbx], r12d
lea rax, [rsi + 0x200]
lea r8, str.OutputFile
lea rdx, [rsp + 0x5f0]
mov r9d, edi
mov rcx, rbp
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], rax
call fcn.140004760
mov edi, eax
test eax, eax
je 0x14000519d
lea rbx, [rsi + 0x400]
lea r8, str.Type
lea rdx, [rsp + 0x5f0]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rbx
call fcn.140004760
mov edi, eax
test eax, eax
je 0x14000519d
lea rax, [rsi + 0x404]
lea r8, str.Resolution
lea rdx, [rsp + 0x5f0]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call fcn.140004760
mov edi, eax
test eax, eax
je 0x14000519d
lea rax, [rsi + 0x620]
lea r8, str.Frame
lea rdx, [rsp + 0x5f0]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call fcn.140004760
mov edi, eax
test eax, eax
je 0x14000519d
lea rax, [rsi + 0x624]
lea r8, str.Repeat
lea rdx, [rsp + 0x5f0]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call fcn.140004760
mov edi, eax
test eax, eax
je 0x14000519d
lea rax, [rsi + 0x628]
lea r8, str.ImageWidth
lea rdx, [rsp + 0x5f0]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call fcn.140004760
mov edi, eax
test eax, eax
je 0x14000519d
lea rax, [rsi + 0x62c]
lea r8, str.ImageHeight
lea rdx, [rsp + 0x5f0]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call fcn.140004760
mov edi, eax
test eax, eax
je 0x14000519d
lea rax, [rsi + 0x630]
lea r8, str.WMPositionX
lea rdx, [rsp + 0x5f0]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call fcn.140004760
mov edi, eax
test eax, eax
je 0x14000519d
lea rax, [rsi + 0x634]
lea r8, str.WMPositionY
lea rdx, [rsp + 0x5f0]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call fcn.140004760
mov edi, eax
test eax, eax
je 0x14000519d
lea rax, [rsi + 0x638]
lea r8, str.IsWMPosXNegative
lea rdx, [rsp + 0x5f0]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call fcn.140004760
mov edi, eax
test eax, eax
je 0x14000519d
lea rax, [rsi + 0x63c]
lea r8, str.IsWMPosYNegative
lea rdx, [rsp + 0x5f0]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call fcn.140004760
mov edi, eax
test eax, eax
je 0x14000519d
lea rax, [rsi + 0x564]
lea r8, str.Angle
lea rdx, [rsp + 0x5f0]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call fcn.140004760
mov edi, eax
test eax, eax
je 0x14000519d
mov eax, dword [rbx]
cmp eax, 1
jne 0x140004eb7
lea rax, [rsi + 0x418]
lea r8, str.text.String
lea rdx, [rsp + 0x5f0]
mov r9d, 1
mov rcx, rbp
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rax
call fcn.140004760
mov edi, eax
test eax, eax
je 0x140004d06
lea rax, [rsi + 0x518]
lea r8, str.text.Face
lea rdx, [rsp + 0x5f0]
mov r9d, 1
mov rcx, rbp
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rax
call fcn.140004760
mov edi, eax
test eax, eax
je 0x140004d06
lea rax, [rsi + 0x558]
lea r8, str.text.CharSet
lea rdx, [rsp + 0x5f0]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call fcn.140004760
mov edi, eax
test eax, eax
je 0x140004d06
lea rax, [rsi + 0x560]
lea r8, str.text.PtSize
lea rdx, [rsp + 0x5f0]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call fcn.140004760
mov edi, eax
test eax, eax
je 0x140004d06
lea rax, [rsi + 0x568]
lea r8, str.text.Color
lea rdx, [rsp + 0x5f0]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call fcn.140004760
mov edi, eax
lea rbx, [rsi + 0x56c]
lea r8, str.text.Bold
lea rdx, [rsp + 0x5f0]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rbx
call fcn.140004760
test eax, eax
jne 0x140004d3b
mov dword [rbx], r12d
lea rbx, [rsi + 0x570]
lea r8, str.text.Italic
lea rdx, [rsp + 0x5f0]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rbx
call fcn.140004760
test eax, eax
jne 0x140004d70
mov dword [rbx], r12d
lea rbx, [rsi + 0x55c]
lea r8, str.text.Outline
lea rdx, [rsp + 0x5f0]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rbx
call fcn.140004760
test eax, eax
jne 0x140004da5
mov dword [rbx], r12d
lea rbx, [rsi + 0x574]
lea r8, str.text.AutoFontChange
lea rdx, [rsp + 0x5f0]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rbx
call fcn.140004760
test eax, eax
jne 0x140004dda
mov dword [rbx], r12d
lea rbx, [rsi + 0x57c]
lea r8, str.text.FontChange
lea rdx, [rsp + 0x5f0]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rbx
call fcn.140004760
test eax, eax
jne 0x140004e0f
mov dword [rbx], r12d
lea rbx, [rsi + 0x578]
lea r8, str.text.RightToLeft
lea rdx, [rsp + 0x5f0]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rbx
call fcn.140004760
test eax, eax
jne 0x140004e44
mov dword [rbx], r12d
lea rbx, [rsi + 0x580]
lea r8, str.text.UseLines
lea rdx, [rsp + 0x5f0]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rbx
call fcn.140004760
test eax, eax
jne 0x140004e79
mov dword [rbx], r12d
lea r8, str.text.Opaque
lea rdx, [rsp + 0x5f0]
add rsi, 0x584
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rsi
call fcn.140004760
test eax, eax
jne 0x14000519d
mov dword [rsi], r12d
jmp 0x14000519d
cmp eax, 2
jne 0x14000519a
lea rax, [rsi + 0x418]
lea r8, str.image.File
lea rdx, [rsp + 0x5f0]
mov r9d, 1
mov rcx, rbp
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], rax
call fcn.140004760
lea rbx, [rsi + 0x618]
lea r8, str.image.Scale.x
lea rdx, [rsp + 0x5f0]
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov edi, eax
mov qword [rsp + 0x20], rbx
call fcn.140004760
test eax, eax
jne 0x140004f2b
mov dword [rbx], 0x64
lea r8, str.image.Scale.y
lea rdx, [rsp + 0x5f0]
add rsi, 0x61c
xor r9d, r9d
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rsi
call fcn.140004760
test eax, eax
jne 0x14000519d
mov eax, dword [rbx]
mov dword [rsi], eax
jmp 0x14000519d
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x5f0]
xor r9d, r9d
mov edx, 0x80000000
mov r8d, edi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140004fda
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x640
jne 0x140004ff5
lea r9, [rsp + 0x40]
mov r8d, eax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140004fda
cmp dword [rsp + 0x40], 0x640
je 0x140004fdd
mov edi, r12d
cmp rbx, 0xffffffffffffffff
je 0x14000519d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000519d
cmp eax, 0x59c
jne 0x140004fda
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, eax
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140005025
cmp dword [rsp + 0x40], 0x59c
je 0x140005028
mov edi, r12d
lea r8, [rsp + 0x50]
mov edx, 0x100
mov rcx, rsi
call fcn.140007b0c
lea rcx, [rsi + 0x200]
lea r8, [rsp + 0x250]
mov edx, 0x100
call fcn.140007b0c
mov eax, dword [rsp + 0x5b4]
lea rcx, [rsi + 0x418]
mov dword [rsi + 0x404], eax
mov eax, dword [rsp + 0x5cc]
lea r8, [rsp + 0x450]
mov dword [rsi + 0x620], eax
mov eax, dword [rsp + 0x5d0]
mov edx, 0x80
mov dword [rsi + 0x624], eax
mov eax, dword [rsp + 0x5d4]
mov dword [rsi + 0x400], 1
mov dword [rsi + 0x628], eax
mov eax, dword [rsp + 0x5d8]
mov dword [rsi + 0x62c], eax
mov eax, dword [rsp + 0x5dc]
mov dword [rsi + 0x630], eax
mov eax, dword [rsp + 0x5e0]
mov dword [rsi + 0x634], eax
mov eax, dword [rsp + 0x5e4]
mov dword [rsi + 0x638], eax
mov eax, dword [rsp + 0x5e8]
mov dword [rsi + 0x63c], eax
mov eax, dword [rsp + 0x5bc]
mov dword [rsi + 0x408], eax
mov eax, dword [rsp + 0x5a4]
mov dword [rsi + 0x564], eax
call fcn.140007b0c
lea rcx, [rsi + 0x518]
lea r8, [rsp + 0x550]
mov edx, 0x20
call fcn.140007b0c
mov eax, dword [rsp + 0x59c]
mov r11d, dword [rsp + 0x590]
mov dword [rsi + 0x55c], eax
mov eax, dword [rsp + 0x5a0]
mov dword [rsi + 0x558], r11d
mov dword [rsi + 0x560], eax
mov eax, dword [rsp + 0x5a8]
mov dword [rsi + 0x568], eax
mov eax, dword [rsp + 0x5ac]
mov dword [rsi + 0x56c], eax
mov eax, dword [rsp + 0x5b0]
mov dword [rsi + 0x570], eax
mov eax, dword [rsp + 0x5c0]
mov dword [rsi + 0x574], eax
mov eax, dword [rsp + 0x5c4]
mov dword [rsi + 0x57c], eax
mov eax, dword [rsp + 0x5c8]
mov dword [rsi + 0x578], eax
jmp 0x140004fdd
mov edi, r12d
mov eax, edi
mov rcx, qword [rsp + 0xa00]
xor rcx, rsp
call fcn.140007ba0
lea r11, [rsp + 0xa10]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret