Function at 0x140038640
Capabilities:
Get file size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x60
mov rbx, rdx
mov r13, rcx
mov rsi, 0xffffffffffffffff
xor ebp, ebp
cmp word [rcx + 0x144], 2
jne 0x1400387d7
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
test rax, rax
je 0x1400387d7
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r15d, eax
cmp eax, 0xffffffff
je 0x1400387ce
mov eax, dword [r13 + 0x11c]
test eax, eax
jne 0x14003879b
call fcn.14000db70
mov rcx, rax
test rax, rax
je 0x140038983
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0xa0], rax
lea rdx, str.confirm_picture_size_limit
cmp rdx, 0x10000
jae 0x14003870c
movzx edx, dx
lea rcx, [rsp + 0xa0]
call fcn.140028a30
jmp 0x14003872b
mov rax, rsi
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x140038710
mov r8d, eax
lea rcx, [rsp + 0xa0]
call fcn.14000ede0
nop
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x48]
lea rcx, [r13 + 0x1a8]
call fcn.1400304c0
mov rdi, qword [rax]
mov rdx, qword [rsp + 0xa0]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140038768
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rdi + 0x28]
cmp dword [rcx - 8], 1
jle 0x140038782
mov edx, dword [rcx - 0x10]
lea rcx, [rdi + 0x28]
call fcn.14000da50
mov rcx, qword [rdi + 0x28]
test rcx, rcx
jne 0x14003878b
mov eax, ebp
jmp 0x140038791
call qword [0x1400e7c80]
shl eax, 0xa
mov dword [r13 + 0x11c], eax
cmp r15d, eax
jb 0x1400387ce
mov rcx, qword [r13 + 0x178]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, 0x2008
call qword [rax]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x60
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.14000db70
mov rcx, rax
test rax, rax
je 0x14003898e
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0xb0], rax
test rbx, rbx
je 0x14003882c
cmp rbx, 0x10000
jae 0x14003881a
movzx edx, bx
lea rcx, [rsp + 0xb0]
call fcn.140028a30
jmp 0x140038842
mov rax, rsi
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140038820
jmp 0x14003882e
mov eax, ebp
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0xb0]
call fcn.14000ede0
nop
mov rcx, qword [rsp + 0xb0]
lea r14, [rcx - 0x18]
mov edx, dword [r14 + 8]
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov r15, rax
test rax, rax
je 0x14003897d
mov ecx, 0x18
call fcn.1400dc4e0
mov rdi, rax
mov qword [rsp + 0x40], rax
mov rcx, r15
test rax, rax
je 0x14003894b
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [rdi], rax
mov qword [rsp + 0xb8], rbp
lea rdx, [rsp + 0xb8]
call fcn.1400dc534
mov dword [rdi + 0x10], eax
mov rcx, qword [rsp + 0xb8]
mov qword [rdi + 8], rcx
mov rcx, r15
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rdi, rdi
je 0x140038951
mov eax, dword [rdi + 0x10]
mov dword [rdi + 0x10], ebp
test eax, eax
je 0x1400388db
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
jmp 0x140038951
mov dl, 1
mov rcx, qword [r13 + 0x98]
call fcn.140033530
movabs r8, 0x1400000014
xor r9d, r9d
mov rdx, rdi
mov rcx, qword [r13 + 0x98]
call fcn.1400331f0
test rax, rax
jne 0x140038919
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
jmp 0x140038951
lea rcx, [rax + 0xd8]
test rbx, rbx
je 0x14003893c
mov rax, rsi
nop dword [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140038930
mov ebp, eax
mov r8d, ebp
mov rdx, rbx
call fcn.14000ede0
mov bl, 1
jmp 0x140038953
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor bl, bl
lock xadd dword [r14 + 0x10], esi
sub esi, 1
jg 0x14003896b
mov rcx, qword [r14]
mov r8, qword [rcx]
mov rdx, r14
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, bl
add rsp, 0x60
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14000ef10
nop
mov ecx, 0x80004005
call fcn.14000d650
int3
mov ecx, 0x80004005
call fcn.14000d650
int3