Function at 0x14003fd80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov qword [rbp + 0xc8], 0xfffffffffffffffe
mov qword [rsp + 0x250], rbx
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rbp + 0x118], rax
mov rbx, rdx
mov qword [rsp + 0x20], rdx
mov rsi, rcx
mov qword [rbp - 0x10], rcx
mov qword [rbp + 0xe0], rcx
mov qword [rbp + 0xd8], rdx
cmp qword [rdx + 0x18], 8
jb 0x14003fde0
mov rcx, qword [rdx]
jmp 0x14003fde3
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003fdf2
test al, 0x10
jne 0x14003fe09
cmp qword [rbx + 0x18], 8
jb 0x14003fdfe
mov rcx, qword [rbx]
jmp 0x14003fe01
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
mov qword [rbp + 0xe8], rax
mov qword [rbp + 0xf0], rax
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rbx
mov word [rsp + 0x28], bx
or rdi, 0xffffffffffffffff
mov r9, rdi
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.14002bf60
nop
lea ecx, [rbx + 0x38]
call fcn.1400ed86c
mov qword [rbp - 0x20], rax
test rax, rax
je 0x14003fe91
mov qword [rbp - 8], rax
mov qword [rsp + 0x68], rax
mov qword [rax + 0x18], 7
mov qword [rax + 0x10], rbx
mov word [rax], bx
mov dword [rax + 0x20], ebx
mov qword [rax + 0x24], 0xffff
mov dword [rax + 0x2c], 0xffff
mov qword [rax + 0x30], rbx
jmp 0x14003fe94
mov rax, rbx
lea rcx, [rbp + 0xe8]
mov qword [rsp + 0x68], rcx
mov qword [rbp + 0xe8], rax
mov qword [rbp + 0xf0], rbx
lea r8, [rbp + 0xf0]
mov rdx, rax
lea rcx, [rbp + 0xe8]
call fcn.140046860
nop
xor r8d, r8d
lea rdx, [rsp + 0x28]
lea rcx, [rbp + 0xe8]
call fcn.140143340
nop
cmp qword [rsp + 0x40], 8
jb 0x14003feec
mov rcx, qword [rsp + 0x28]
call fcn.1400ed78c
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rbx
mov word [rsp + 0x28], bx
lea rax, [rbp - 0x30]
mov qword [rsp + 0x68], rax
lea rax, [rbp - 0x30]
mov qword [rbp - 8], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
mov rax, qword [rbp - 0x30]
cmp qword [rbp + 0xe8], rax
setne sil
mov rbx, qword [rbp - 0x28]
test rbx, rbx
je 0x14003ff4e
lock dec dword [rbx + 8]
jne 0x14003ff4e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + ioctlsocket]
lock dec dword [rbx + 0xc]
jne 0x14003ff4e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + select]
test sil, sil
je 0x140040358
xor ebx, ebx
mov qword [rbp + 0x108], rbx
mov qword [rbp + 0x110], rbx
mov qword [rbp + 0x110], 7
mov qword [rbp + 0x108], rbx
mov word [rbp + 0xf8], bx
mov r9, rdi
xor r8d, r8d
mov rdx, qword [rbp + 0xe8]
lea rcx, [rbp + 0xf8]
call fcn.14002bf60
nop
xor r8d, r8d
mov rdx, qword [rbp + 0xe8]
lea rcx, [rbp - 0x20]
call fcn.140143ff0
xor r8d, r8d
cmp dword [rax], 3
jne 0x140040143
lea rax, [rbp]
mov qword [rbp + 0xc0], rax
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x48], bx
mov r9, rdi
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x48]
call fcn.14002bf60
nop
lea rax, [rbp + 0x80]
mov qword [rbp - 0x18], rax
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0xf8]
call fcn.140144d80
nop
mov r8, rax
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x20]
call fcn.14003cdd0
nop
cmp qword [rax + 0x18], 8
jb 0x14004002c
mov rax, qword [rax]
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], rbx
mov word [rbp], bx
cmp word [rax], 0
jne 0x140040047
mov r8, rbx
jmp 0x14004005b
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140040050
mov rdx, rax
lea rcx, [rbp]
call fcn.14003ca90
nop
lea rdx, [rbp + 0xf8]
cmp qword [rbp + 0x110], 8
cmovae rdx, qword [rbp + 0xf8]
mov qword [rbp + 0x98], 7
mov qword [rbp + 0x90], rbx
mov word [rbp + 0x80], bx
cmp word [rdx], 0
jne 0x1400400a3
mov r8, rbx
jmp 0x1400400bb
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400400b0
lea rcx, [rbp + 0x80]
call fcn.14003ca90
nop
lea rdx, [rbp]
lea rcx, [rbp + 0x80]
call fcn.14003fd80
nop
cmp qword [rbp + 0x38], 8
jb 0x1400400e9
mov rcx, qword [rbp + 0x20]
call fcn.1400ed78c
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], rbx
mov word [rbp + 0x20], bx
cmp qword [rbp + 0x78], 8
jb 0x140040109
mov rcx, qword [rbp + 0x60]
call fcn.1400ed78c
mov qword [rbp + 0x78], 7
mov qword [rbp + 0x70], rbx
mov word [rbp + 0x60], bx
cmp qword [rsp + 0x60], 8
jb 0x14004012b
mov rcx, qword [rsp + 0x48]
call fcn.1400ed78c
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x48], bx
jmp 0x140040316
mov rdx, qword [rbp + 0xe8]
lea rcx, [rbp + 0xd0]
call fcn.140143ff0
cmp dword [rax], 2
jne 0x140040316
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], rbx
mov word [rbp - 0x70], bx
mov r9, rdi
xor r8d, r8d
mov rdx, qword [rsp + 0x20]
lea rcx, [rbp - 0x70]
call fcn.14002bf60
nop
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0xf8]
call fcn.140144d80
nop
mov r8, rax
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0xa0]
call fcn.14003cdd0
nop
cmp qword [rax + 0x18], 8
jb 0x1400401bb
mov rax, qword [rax]
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rbx
mov word [rbp - 0x50], bx
cmp word [rax], 0
jne 0x1400401de
mov r8, rbx
jmp 0x1400401ec
mov r8, rdi
inc r8
cmp word [rax + r8*2], 0
jne 0x1400401e1
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.14003ca90
nop
lea rdx, [rbp + 0xf8]
cmp qword [rbp + 0x110], 8
cmovae rdx, qword [rbp + 0xf8]
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], rbx
mov word [rsp + 0x70], bx
cmp word [rdx], 0
jne 0x140040234
mov r8, rbx
jmp 0x14004024b
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140040240
lea rcx, [rsp + 0x70]
call fcn.14003ca90
nop
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x70]
call fcn.140040400
nop
cmp qword [rbp - 0x78], 8
jb 0x140040276
mov rcx, qword [rsp + 0x70]
call fcn.1400ed78c
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], rbx
mov word [rsp + 0x70], bx
cmp qword [rbp - 0x38], 8
jb 0x140040297
mov rcx, qword [rbp - 0x50]
call fcn.1400ed78c
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], rbx
mov word [rbp - 0x50], bx
cmp qword [rbp + 0xb8], 8
jb 0x1400402bd
mov rcx, qword [rbp + 0xa0]
call fcn.1400ed78c
mov qword [rbp + 0xb8], 7
mov qword [rbp + 0xb0], rbx
mov word [rbp + 0xa0], bx
cmp qword [rbp + 0x58], 8
jb 0x1400402e6
mov rcx, qword [rbp + 0x40]
call fcn.1400ed78c
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x50], rbx
mov word [rbp + 0x40], bx
cmp qword [rbp - 0x58], 8
jb 0x140040306
mov rcx, qword [rbp - 0x70]
call fcn.1400ed78c
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], rbx
mov word [rbp - 0x70], bx
cmp qword [rbp + 0x110], 8
jb 0x14004032c
mov rcx, qword [rbp + 0xf8]
call fcn.1400ed78c
mov qword [rbp + 0x110], 7
mov qword [rbp + 0x108], rbx
mov word [rbp + 0xf8], bx
xor edx, edx
lea rcx, [rbp + 0xe8]
call fcn.1401436b0
jmp 0x14003ff10
lea rax, [rbp + 0xe8]
mov qword [rbp - 0x18], rax
mov rbx, qword [rbp + 0xf0]
test rbx, rbx
je 0x14004038e
lock dec dword [rbx + 8]
jne 0x14004038e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + ioctlsocket]
lock dec dword [rbx + 0xc]
jne 0x14004038e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + select]
nop
mov rbx, qword [rbp - 0x10]
cmp qword [rbx + 0x18], 8
jb 0x1400403a1
mov rcx, qword [rbx]
call fcn.1400ed78c
mov qword [rbx + 0x18], 7
xor edi, edi
mov qword [rbx + 0x10], rdi
mov word [rbx], di
mov rbx, qword [rsp + 0x20]
cmp qword [rbx + 0x18], 8
jb 0x1400403c6
mov rcx, qword [rbx]
call fcn.1400ed78c
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
mov word [rbx], di
mov rcx, qword [rbp + 0x118]
xor rcx, rsp
call fcn.1400efba0
mov rbx, qword [rsp + 0x250]
add rsp, 0x220
pop rdi
pop rsi
pop rbp
ret