Function at 0x140151bc0
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 [0x140276680]
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 0x140151c50
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140151c49
mov al, 0xff
jmp 0x140151fde
mov al, 0xfe
jmp 0x140151fde
mov dword [rsp + 0x58], Ordinal_30
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 0x140151c7a
mov al, 0xfd
jmp 0x140151fde
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x3840
ja 0x140151d14
cmp dword [rsp + 0x44], 0x3840
je 0x140151dd6
cmp dword [rsp + 0x44], 0x4b0
ja 0x140151ce5
cmp dword [rsp + 0x44], 0x4b0
je 0x140151dae
cmp dword [rsp + 0x44], 0x6e
je 0x140151d8a
cmp dword [rsp + 0x44], 0x12c
je 0x140151d97
cmp dword [rsp + 0x44], 0x258
je 0x140151da4
jmp 0x140151e26
cmp dword [rsp + 0x44], 0x960
je 0x140151db8
cmp dword [rsp + 0x44], 0x12c0
je 0x140151dc2
cmp dword [rsp + 0x44], 0x2580
je 0x140151dcc
jmp 0x140151e26
cmp dword [rsp + 0x44], 0xe100
ja 0x140151d5b
cmp dword [rsp + 0x44], 0xe100
je 0x140151dfe
cmp dword [rsp + 0x44], 0x4b00
je 0x140151de0
cmp dword [rsp + 0x44], 0x9600
je 0x140151dea
cmp dword [rsp + 0x44], 0xdac0
je 0x140151df4
jmp 0x140151e26
cmp dword [rsp + 0x44], 0x1c200
je 0x140151e08
cmp dword [rsp + 0x44], 0x1f400
je 0x140151e12
cmp dword [rsp + 0x44], 0x3e800
je 0x140151e1c
jmp 0x140151e26
mov dword [rsp + 0x5c], WSAGetLastError
jmp 0x140151e2d
mov dword [rsp + 0x5c], Ordinal_301
jmp 0x140151e2d
mov dword [rsp + 0x5c], 0x258
jmp 0x140151e2d
mov dword [rsp + 0x5c], 0x4b0
jmp 0x140151e2d
mov dword [rsp + 0x5c], 0x960
jmp 0x140151e2d
mov dword [rsp + 0x5c], 0x12c0
jmp 0x140151e2d
mov dword [rsp + 0x5c], 0x2580
jmp 0x140151e2d
mov dword [rsp + 0x5c], 0x3840
jmp 0x140151e2d
mov dword [rsp + 0x5c], 0x4b00
jmp 0x140151e2d
mov dword [rsp + 0x5c], 0x9600
jmp 0x140151e2d
mov dword [rsp + 0x5c], 0xdac0
jmp 0x140151e2d
mov dword [rsp + 0x5c], 0xe100
jmp 0x140151e2d
mov dword [rsp + 0x5c], 0x1c200
jmp 0x140151e2d
mov dword [rsp + 0x5c], 0x1f400
jmp 0x140151e2d
mov dword [rsp + 0x5c], 0x3e800
jmp 0x140151e2d
mov al, 0xfc
jmp 0x140151fde
mov byte [rsp + 0x40], 0
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x140151e62
cmp dword [rsp + 0x48], 1
je 0x140151e69
cmp dword [rsp + 0x48], 2
je 0x140151e70
cmp dword [rsp + 0x48], 3
je 0x140151e77
cmp dword [rsp + 0x48], 4
je 0x140151e7e
jmp 0x140151e85
mov byte [rsp + 0x40], 5
jmp 0x140151e8c
mov byte [rsp + 0x40], 6
jmp 0x140151e8c
mov byte [rsp + 0x40], 7
jmp 0x140151e8c
mov byte [rsp + 0x40], 8
jmp 0x140151e8c
mov byte [rsp + 0x40], reloc.WS2_32.dll_recv
jmp 0x140151e8c
mov al, 0xf9
jmp 0x140151fde
mov byte [rsp + 0x42], 0
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140151eb3
cmp dword [rsp + 0x50], 1
je 0x140151eba
cmp dword [rsp + 0x50], 2
je 0x140151ec1
jmp 0x140151ec8
mov byte [rsp + 0x42], 0
jmp 0x140151ecf
mov byte [rsp + 0x42], 1
jmp 0x140151ecf
mov byte [rsp + 0x42], 2
jmp 0x140151ecf
mov al, 0xf8
jmp 0x140151fde
mov byte [rsp + 0x41], 0
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x140151f04
cmp dword [rsp + 0x4c], 1
je 0x140151f0b
cmp dword [rsp + 0x4c], 2
je 0x140151f12
cmp dword [rsp + 0x4c], 3
je 0x140151f19
cmp dword [rsp + 0x4c], 4
je 0x140151f20
jmp 0x140151f27
mov byte [rsp + 0x41], 0
jmp 0x140151f2e
mov byte [rsp + 0x41], 2
jmp 0x140151f2e
mov byte [rsp + 0x41], 1
jmp 0x140151f2e
mov byte [rsp + 0x41], 3
jmp 0x140151f2e
mov byte [rsp + 0x41], 4
jmp 0x140151f2e
mov al, 0xf7
jmp 0x140151fde
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 0x140151f68
mov al, 0xfb
jmp 0x140151fde
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 0x140151fdc
mov al, 0xfa
jmp 0x140151fde
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401d7940
add rsp, 0x88
ret