Function at 0x1401c3130
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 [0x1403ee900]
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 0x1401c31c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1401c31b9
mov al, 0xff
jmp 0x1401c354e
mov al, 0xfe
jmp 0x1401c354e
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 0x1401c31ea
mov al, 0xfd
jmp 0x1401c354e
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x3840
ja 0x1401c3284
cmp dword [rsp + 0x44], 0x3840
je 0x1401c3346
cmp dword [rsp + 0x44], 0x4b0
ja 0x1401c3255
cmp dword [rsp + 0x44], 0x4b0
je 0x1401c331e
cmp dword [rsp + 0x44], 0x6e
je 0x1401c32fa
cmp dword [rsp + 0x44], 0x12c
je 0x1401c3307
cmp dword [rsp + 0x44], 0x258
je 0x1401c3314
jmp 0x1401c3396
cmp dword [rsp + 0x44], 0x960
je 0x1401c3328
cmp dword [rsp + 0x44], 0x12c0
je 0x1401c3332
cmp dword [rsp + 0x44], 0x2580
je 0x1401c333c
jmp 0x1401c3396
cmp dword [rsp + 0x44], 0xe100
ja 0x1401c32cb
cmp dword [rsp + 0x44], 0xe100
je 0x1401c336e
cmp dword [rsp + 0x44], 0x4b00
je 0x1401c3350
cmp dword [rsp + 0x44], 0x9600
je 0x1401c335a
cmp dword [rsp + 0x44], 0xdac0
je 0x1401c3364
jmp 0x1401c3396
cmp dword [rsp + 0x44], 0x1c200
je 0x1401c3378
cmp dword [rsp + 0x44], 0x1f400
je 0x1401c3382
cmp dword [rsp + 0x44], 0x3e800
je 0x1401c338c
jmp 0x1401c3396
mov dword [rsp + 0x5c], WSASetLastError
jmp 0x1401c339d
mov dword [rsp + 0x5c], Ordinal_301
jmp 0x1401c339d
mov dword [rsp + 0x5c], 0x258
jmp 0x1401c339d
mov dword [rsp + 0x5c], 0x4b0
jmp 0x1401c339d
mov dword [rsp + 0x5c], 0x960
jmp 0x1401c339d
mov dword [rsp + 0x5c], 0x12c0
jmp 0x1401c339d
mov dword [rsp + 0x5c], 0x2580
jmp 0x1401c339d
mov dword [rsp + 0x5c], 0x3840
jmp 0x1401c339d
mov dword [rsp + 0x5c], 0x4b00
jmp 0x1401c339d
mov dword [rsp + 0x5c], 0x9600
jmp 0x1401c339d
mov dword [rsp + 0x5c], 0xdac0
jmp 0x1401c339d
mov dword [rsp + 0x5c], 0xe100
jmp 0x1401c339d
mov dword [rsp + 0x5c], 0x1c200
jmp 0x1401c339d
mov dword [rsp + 0x5c], 0x1f400
jmp 0x1401c339d
mov dword [rsp + 0x5c], 0x3e800
jmp 0x1401c339d
mov al, 0xfc
jmp 0x1401c354e
mov byte [rsp + 0x40], 0
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x1401c33d2
cmp dword [rsp + 0x48], 1
je 0x1401c33d9
cmp dword [rsp + 0x48], 2
je 0x1401c33e0
cmp dword [rsp + 0x48], 3
je 0x1401c33e7
cmp dword [rsp + 0x48], 4
je 0x1401c33ee
jmp 0x1401c33f5
mov byte [rsp + 0x40], 5
jmp 0x1401c33fc
mov byte [rsp + 0x40], 6
jmp 0x1401c33fc
mov byte [rsp + 0x40], 7
jmp 0x1401c33fc
mov byte [rsp + 0x40], 8
jmp 0x1401c33fc
mov byte [rsp + 0x40], reloc.WS2_32.dll_recv
jmp 0x1401c33fc
mov al, 0xf9
jmp 0x1401c354e
mov byte [rsp + 0x42], 0
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x1401c3423
cmp dword [rsp + 0x50], 1
je 0x1401c342a
cmp dword [rsp + 0x50], 2
je 0x1401c3431
jmp 0x1401c3438
mov byte [rsp + 0x42], 0
jmp 0x1401c343f
mov byte [rsp + 0x42], 1
jmp 0x1401c343f
mov byte [rsp + 0x42], 2
jmp 0x1401c343f
mov al, 0xf8
jmp 0x1401c354e
mov byte [rsp + 0x41], 0
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x1401c3474
cmp dword [rsp + 0x4c], 1
je 0x1401c347b
cmp dword [rsp + 0x4c], 2
je 0x1401c3482
cmp dword [rsp + 0x4c], 3
je 0x1401c3489
cmp dword [rsp + 0x4c], 4
je 0x1401c3490
jmp 0x1401c3497
mov byte [rsp + 0x41], 0
jmp 0x1401c349e
mov byte [rsp + 0x41], 2
jmp 0x1401c349e
mov byte [rsp + 0x41], 1
jmp 0x1401c349e
mov byte [rsp + 0x41], 3
jmp 0x1401c349e
mov byte [rsp + 0x41], 4
jmp 0x1401c349e
mov al, 0xf7
jmp 0x1401c354e
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 0x1401c34d8
mov al, 0xfb
jmp 0x1401c354e
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 0x1401c354c
mov al, 0xfa
jmp 0x1401c354e
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140248f60
add rsp, 0x88
ret