Function at 0x140055f80
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x1e0], rbx
mov rax, qword [0x14013f130]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r12, rdx
mov qword [rsp + 0x50], rdx
mov rsi, rcx
xor eax, eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x48], eax
mov rax, qword [rcx + 0x58]
mov r13, qword [rax + 0x10]
mov r14d, dword [rax]
mov r15d, dword [rax + 4]
call fcn.1400973f0
mov rbx, rax
call fcn.1400973d4
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rcx, rax
movabs rax, 0x431bde82d7b634db
imul rcx
mov rdi, rdx
sar rdi, 0x12
mov rax, rdi
shr rax, 0x3f
add rdi, rax
mov r8d, 2
mov rdx, qword [rsi + 0x38]
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_PrintWindow]
mov dword [rbp - 0x80], eax
call fcn.1400973f0
mov rbx, rax
call fcn.1400973d4
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rcx, rax
movabs rax, 0x431bde82d7b634db
imul rcx
mov rbx, rdx
sar rbx, 0x12
mov rax, rbx
shr rax, 0x3f
add rbx, rax
sub rbx, rdi
lea rdi, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
cmp rbx, 0x3e8
jbe 0x1400561d7
call fcn.140084bd0
cmp eax, 2
jl 0x1400561d7
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp - 0x70]
call fcn.1400b93c0
lea rax, [0x1400fdef8]
mov qword [rbp - 0x70], rax
mov dword [rsp + 0x48], 1
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x18], rax
mov dword [rbp + 0x14], 0x78
xor r8d, r8d
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0x18]
call fcn.1400075d0
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], rdi
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x74], edx
mov edx, 2
lea rcx, [rbp - 0x68]
call fcn.140009f10
nop
lea rdx, str._screen_
lea rcx, [rbp - 0x70]
call fcn.14000ae60
mov rcx, rax
lea rdx, str.PwndCapturer::captureScreen__diff
call fcn.14000ae60
mov rcx, rax
mov rdx, rbx
call fcn.14001c920
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x68]
call fcn.140009e60
mov eax, 5
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x58]
lea ecx, [rax - 3]
call fcn.140084ea0
nop
lea rcx, [rsp + 0x58]
call fcn.140007080
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], rdi
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call fcn.140008ea0
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x74], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.140097eb0
nop
cmp dword [rbp - 0x80], 0
jne 0x140056325
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140084bd0
cmp eax, 2
jl 0x14005631b
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp - 0x70]
call fcn.1400b93c0
lea rax, [0x1400fdef8]
mov qword [rbp - 0x70], rax
mov eax, dword [rsp + 0x40]
or eax, 8
mov dword [rsp + 0x48], eax
lea rsi, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x18], rsi
mov dword [rbp + 0x14], 0x78
xor r8d, r8d
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0x18]
call fcn.1400075d0
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], rdi
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x74], edx
mov edx, 2
lea rcx, [rbp - 0x68]
call fcn.140009f10
nop
lea rdx, str._screen_
lea rcx, [rbp - 0x70]
call fcn.14000ae60
mov rcx, rax
lea rdx, str.PwndCapturer::captureScreen__failed__err
call fcn.14000ae60
mov rcx, rax
mov edx, ebx
call fcn.14000e310
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x68]
call fcn.140009e60
nop
lea rdx, [rsp + 0x58]
mov ecx, 2
call fcn.140084ea0
nop
lea rcx, [rsp + 0x58]
call fcn.140007080
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], rdi
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call fcn.140008ea0
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], rsi
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x74], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.140097eb0
nop
mov eax, 0xffffffff
jmp 0x140056443
mov rax, qword [rsi + 0x40]
movzx edi, word [rax + 0xe]
shr edi, 3
imul edi, r14d
mov dword [rsp + 0x20], edi
mov r9d, r15d
mov r8d, r14d
mov rdx, r13
mov rcx, qword [rsi + 0x70]
call fcn.140056e30
test eax, eax
jne 0x140056443
call fcn.1400973f0
mov rbx, rax
call fcn.1400973d4
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rcx, rax
movabs rax, 0x431bde82d7b634db
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [r12 + 0x80], rdx
call fcn.140029f70
cmp byte [rax + 0x1c], 0
je 0x140056418
cmp r14d, dword [rsi + 0x10]
jne 0x1400563b8
cmp r15d, dword [rsi + 0x14]
jne 0x1400563b8
mov al, 1
jmp 0x1400563ba
xor al, al
test al, al
jne 0x140056418
lea r12, [rsi + 0x68]
cmp qword [r12], 0
jne 0x1400564a9
mov qword [rbp - 0x80], 0
mov ecx, 0x18
call fcn.14009ab2c
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov rcx, rax
call fcn.1400809a0
nop
mov rbx, rax
cmp qword [rax + 0x10], 0
jne 0x14005646d
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
mov r12, qword [rsp + 0x50]
lea rax, [r12 + 8]
and r15d, 0xfffffffe
and r14d, 0xfffffffe
mov qword [rsp + 0x30], rax
mov r9d, edi
mov r8d, r15d
mov edx, r14d
mov rcx, r13
call fcn.140080810
neg al
sbb eax, eax
neg eax
dec eax
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14009ab00
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rbp - 0x80]
cmp r12, rcx
je 0x140056496
xor ebx, ebx
mov qword [rbp - 0x80], rbx
mov rcx, qword [r12]
mov qword [r12], rax
xor eax, eax
test rcx, rcx
je 0x140056496
mov rax, qword [rcx]
lea edx, [rbx + 1]
call qword [rax]
nop
xor eax, eax
test rax, rax
je 0x1400564a9
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
mov eax, r15d
imul eax, edi
movsxd r8, eax
mov dword [rbp - 0x70], 4
mov dword [rbp - 0x6c], r14d
mov dword [rbp - 0x68], r15d
mov dword [rbp - 0x64], edi
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x60], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x50], xmm1
mov r9, r8
mov rdx, r13
lea rcx, [rbp - 0x40]
call fcn.140055ce0
nop
mov rcx, qword [r12]
mov eax, dword [rsi + 0x10]
mov dword [rbp - 0x80], eax
mov eax, dword [rsi + 0x14]
mov dword [rbp - 0x7c], eax
mov r10, qword [rcx]
mov eax, dword [rsi + 0x28]
mov dword [rsp + 0x20], eax
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x70]
mov rdx, qword [rsp + 0x50]
call qword [r10 + ioctlsocket]
neg al
sbb ebx, ebx
neg ebx
lea rcx, [rbp - 0x40]
call fcn.1400316b0
nop
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14005652f
mov rdx, qword [rcx]
call qword [rdx + 0x28]
nop
lea eax, [rbx - 1]
jmp 0x140056443