Function at 0x140155460
Capabilities:
Check if file exists

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x140298e80]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x90]
cmp qword [rax + 8], 0xffffffffffffffff
jne 0x1401554f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1401554e9
mov al, 0xff
jmp 0x14015587e
mov al, 0xfe
jmp 0x14015587e
mov dword [rsp + 0x58], Ordinal_32
lea rdx, [rsp + 0x58]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetCommState]
test eax, eax
jne 0x14015551a
mov al, 0xfd
jmp 0x14015587e
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x3840
ja 0x1401555b4
cmp dword [rsp + 0x44], 0x3840
je 0x140155676
cmp dword [rsp + 0x44], 0x4b0
ja 0x140155585
cmp dword [rsp + 0x44], 0x4b0
je 0x14015564e
cmp dword [rsp + 0x44], 0x6e
je 0x14015562a
cmp dword [rsp + 0x44], 0x12c
je 0x140155637
cmp dword [rsp + 0x44], 0x258
je 0x140155644
jmp 0x1401556c6
cmp dword [rsp + 0x44], 0x960
je 0x140155658
cmp dword [rsp + 0x44], 0x12c0
je 0x140155662
cmp dword [rsp + 0x44], 0x2580
je 0x14015566c
jmp 0x1401556c6
cmp dword [rsp + 0x44], 0xe100
ja 0x1401555fb
cmp dword [rsp + 0x44], 0xe100
je 0x14015569e
cmp dword [rsp + 0x44], 0x4b00
je 0x140155680
cmp dword [rsp + 0x44], 0x9600
je 0x14015568a
cmp dword [rsp + 0x44], 0xdac0
je 0x140155694
jmp 0x1401556c6
cmp dword [rsp + 0x44], 0x1c200
je 0x1401556a8
cmp dword [rsp + 0x44], 0x1f400
je 0x1401556b2
cmp dword [rsp + 0x44], 0x3e800
je 0x1401556bc
jmp 0x1401556c6
mov dword [rsp + 0x5c], WSAGetLastError
jmp 0x1401556cd
mov dword [rsp + 0x5c], Ordinal_301
jmp 0x1401556cd
mov dword [rsp + 0x5c], 0x258
jmp 0x1401556cd
mov dword [rsp + 0x5c], 0x4b0
jmp 0x1401556cd
mov dword [rsp + 0x5c], 0x960
jmp 0x1401556cd
mov dword [rsp + 0x5c], 0x12c0
jmp 0x1401556cd
mov dword [rsp + 0x5c], 0x2580
jmp 0x1401556cd
mov dword [rsp + 0x5c], 0x3840
jmp 0x1401556cd
mov dword [rsp + 0x5c], 0x4b00
jmp 0x1401556cd
mov dword [rsp + 0x5c], 0x9600
jmp 0x1401556cd
mov dword [rsp + 0x5c], 0xdac0
jmp 0x1401556cd
mov dword [rsp + 0x5c], 0xe100
jmp 0x1401556cd
mov dword [rsp + 0x5c], 0x1c200
jmp 0x1401556cd
mov dword [rsp + 0x5c], 0x1f400
jmp 0x1401556cd
mov dword [rsp + 0x5c], 0x3e800
jmp 0x1401556cd
mov al, 0xfc
jmp 0x14015587e
mov byte [rsp + 0x40], 0
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x140155702
cmp dword [rsp + 0x48], 1
je 0x140155709
cmp dword [rsp + 0x48], 2
je 0x140155710
cmp dword [rsp + 0x48], 3
je 0x140155717
cmp dword [rsp + 0x48], 4
je 0x14015571e
jmp 0x140155725
mov byte [rsp + 0x40], 5
jmp 0x14015572c
mov byte [rsp + 0x40], 6
jmp 0x14015572c
mov byte [rsp + 0x40], 7
jmp 0x14015572c
mov byte [rsp + 0x40], 8
jmp 0x14015572c
mov byte [rsp + 0x40], reloc.WS2_32.dll_recv
jmp 0x14015572c
mov al, 0xf9
jmp 0x14015587e
mov byte [rsp + 0x42], 0
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140155753
cmp dword [rsp + 0x50], 1
je 0x14015575a
cmp dword [rsp + 0x50], 2
je 0x140155761
jmp 0x140155768
mov byte [rsp + 0x42], 0
jmp 0x14015576f
mov byte [rsp + 0x42], 1
jmp 0x14015576f
mov byte [rsp + 0x42], 2
jmp 0x14015576f
mov al, 0xf8
jmp 0x14015587e
mov byte [rsp + 0x41], 0
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x1401557a4
cmp dword [rsp + 0x4c], 1
je 0x1401557ab
cmp dword [rsp + 0x4c], 2
je 0x1401557b2
cmp dword [rsp + 0x4c], 3
je 0x1401557b9
cmp dword [rsp + 0x4c], 4
je 0x1401557c0
jmp 0x1401557c7
mov byte [rsp + 0x41], 0
jmp 0x1401557ce
mov byte [rsp + 0x41], 2
jmp 0x1401557ce
mov byte [rsp + 0x41], 1
jmp 0x1401557ce
mov byte [rsp + 0x41], 3
jmp 0x1401557ce
mov byte [rsp + 0x41], 4
jmp 0x1401557ce
mov al, 0xf7
jmp 0x14015587e
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x6a], al
movzx eax, byte [rsp + 0x42]
mov byte [rsp + 0x6c], al
movzx eax, byte [rsp + 0x41]
mov byte [rsp + 0x6b], al
lea rdx, [rsp + 0x58]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetCommState]
test eax, eax
jne 0x140155808
mov al, 0xfb
jmp 0x14015587e
mov rax, qword [rsp + 0x90]
mov dword [rax + 0x10], 0
mov rax, qword [rsp + 0x90]
mov dword [rax + 0x18], 0xffffffff
mov rax, qword [rsp + 0x90]
mov dword [rax + 0x14], 0
mov rax, qword [rsp + 0x90]
mov dword [rax + 0x20], 0xffffffff
mov rax, qword [rsp + 0x90]
mov dword [rax + 0x1c], 0
mov rax, qword [rsp + 0x90]
add rax, 0x10
mov rdx, rax
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetCommTimeouts]
test eax, eax
jne 0x14015587c
mov al, 0xfa
jmp 0x14015587e
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401dae20
add rsp, 0x88
ret