Function at 0x140004530
Capabilities:
Create directory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe78
movaps xmmword [rsp + 0xe60], xmm6
mov rax, qword [0x140032010]
xor rax, rsp
mov qword [rsp + 0xe58], rax
stmxcsr dword [rsp + 0x30]
or dword [rsp + 0x30], 0x8040
ldmxcsr dword [rsp + 0x30]
mov rsi, rdx
cmp ecx, 1
jg 0x140004594
mov rsi, qword [rsi]
mov ecx, 2
call fcn.1400093a4
mov rcx, rax
mov r8, rsi
call fcn.140004b00
jmp 0x140004920
lea r14, [0x14002bb76]
lea rdx, [rsp + 0xd50]
mov rcx, r14
call fcn.140010270
test eax, eax
jne 0x1400045c3
movzx eax, word [rsp + 0xd56]
and eax, 0xf000
cmp eax, 0x8000
je 0x1400045d2
lea rcx, [0x14002ce16]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rbx, [0x14002c0eb]
lea rdx, [rsp + 0xd50]
mov rcx, rbx
call fcn.140010270
test eax, eax
jne 0x140004601
movzx eax, word [rsp + 0xd56]
and eax, 0xf000
cmp eax, 0x8000
je 0x140004610
lea rcx, str.nvram
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, 0x8000000
call fcn.14001105c
mov qword [0x140034788], rax
test rax, rax
je 0x1400048fc
lea rdi, [rsp + 0x30]
mov r8d, 0xd20
mov rcx, rdi
xor edx, edx
call fcn.140004c20
mov ecx, Ordinal_27
mov rdx, rdi
mov r8d, 0xd20
call sub.avs2_core.dll_Ordinal_145
test rax, rax
je 0x1400048fc
mov rdi, rax
lea rax, [0x14002ccaa]
mov qword [rsp + 0x20], rax
lea r9, str._config_fs_root_device
mov rcx, rdi
xor edx, edx
mov r8d, 0xb
call sub.avs2_core.dll_XCgsqzn00000a2
test rax, rax
je 0x14000468e
mov rcx, rax
call sub.avs2_core.dll_XCgsqzn00000aa
lea rax, [0x14002c955]
mov qword [rsp + 0x20], rax
lea r9, str._config_fs_root_option
mov rcx, rdi
xor edx, edx
mov r8d, 0xb
call sub.avs2_core.dll_XCgsqzn00000a2
test rax, rax
je 0x1400046be
mov rcx, rax
call sub.avs2_core.dll_XCgsqzn00000aa
lea r9, str._config_fs_mounttable
mov rcx, rdi
xor edx, edx
mov r8d, 1
call sub.avs2_core.dll_XCgsqzn00000a2
mov r15, rax
lea r9, [0x14002be9e]
xor ecx, ecx
mov rdx, rax
mov r8d, 1
call sub.avs2_core.dll_XCgsqzn00000a2
mov r12, rax
lea r13, str.boot
mov qword [rsp + 0x20], r13
lea r9, str.name_
xor ecx, ecx
mov rdx, rax
mov r8d, 0x2e
call sub.avs2_core.dll_XCgsqzn00000a2
test rax, rax
je 0x140004722
mov rcx, rax
call sub.avs2_core.dll_XCgsqzn00000aa
lea rbp, [0x14002be9f]
mov qword [rsp + 0x20], rbp
lea r9, str.fstype_
xor ecx, ecx
mov rdx, r12
mov r8d, 0x2e
call sub.avs2_core.dll_XCgsqzn00000a2
test rax, rax
je 0x140004752
mov rcx, rax
call sub.avs2_core.dll_XCgsqzn00000aa
mov qword [rsp + 0x20], r14
lea r9, str.src_
xor ecx, ecx
mov rdx, r12
mov r8d, 0x2e
call sub.avs2_core.dll_XCgsqzn00000a2
test rax, rax
je 0x14000477b
mov rcx, rax
call sub.avs2_core.dll_XCgsqzn00000aa
lea rax, str._dev_raw
mov qword [rsp + 0x20], rax
lea r9, str.dst_
xor ecx, ecx
mov rdx, r12
mov r8d, 0x2e
call sub.avs2_core.dll_XCgsqzn00000a2
test rax, rax
je 0x1400047ab
mov rcx, rax
call sub.avs2_core.dll_XCgsqzn00000aa
lea rax, str.vf0_posix0
mov qword [rsp + 0x20], rax
lea r9, str.opt_
xor ecx, ecx
mov rdx, r12
mov r8d, 0x2e
call sub.avs2_core.dll_XCgsqzn00000a2
test rax, rax
je 0x1400047db
mov rcx, rax
call sub.avs2_core.dll_XCgsqzn00000aa
lea r9, [0x14002be9e]
xor ecx, ecx
mov rdx, r15
mov r8d, 1
call sub.avs2_core.dll_XCgsqzn00000a2
mov r14, rax
mov qword [rsp + 0x20], r13
lea r9, str.name_
xor ecx, ecx
mov rdx, rax
mov r8d, 0x2e
call sub.avs2_core.dll_XCgsqzn00000a2
test rax, rax
je 0x14000481e
mov rcx, rax
call sub.avs2_core.dll_XCgsqzn00000aa
mov qword [rsp + 0x20], rbp
lea r9, str.fstype_
xor ecx, ecx
mov rdx, r14
mov r8d, 0x2e
call sub.avs2_core.dll_XCgsqzn00000a2
test rax, rax
je 0x140004847
mov rcx, rax
call sub.avs2_core.dll_XCgsqzn00000aa
mov qword [rsp + 0x20], rbx
lea r9, str.src_
xor ecx, ecx
mov rdx, r14
mov r8d, 0x2e
call sub.avs2_core.dll_XCgsqzn00000a2
test rax, rax
je 0x140004870
mov rcx, rax
call sub.avs2_core.dll_XCgsqzn00000aa
lea rax, str._dev_nvram
mov qword [rsp + 0x20], rax
lea r9, str.dst_
xor ecx, ecx
mov rdx, r14
mov r8d, 0x2e
call sub.avs2_core.dll_XCgsqzn00000a2
test rax, rax
je 0x1400048a0
mov rcx, rax
call sub.avs2_core.dll_XCgsqzn00000aa
lea rax, str.sz_block512_nr_block32_nr_mirror4
mov qword [rsp + 0x20], rax
lea r9, str.opt_
xor ecx, ecx
mov rdx, r14
mov r8d, 0x2e
call sub.avs2_core.dll_XCgsqzn00000a2
test rax, rax
je 0x1400048d0
mov rcx, rax
call sub.avs2_core.dll_XCgsqzn00000aa
mov qword [rsp + 0x20], 0
lea r9, str._config_log_enable_file
mov rcx, rdi
xor edx, edx
mov r8d, 0x34
call sub.avs2_core.dll_XCgsqzn00000a2
mov rcx, rdi
call sub.avs2_core.dll_XCgsqzn000009e
test eax, eax
je 0x140004953
mov ecx, 2
call fcn.1400093a4
lea rcx, str.Failed_to_boot_n
mov edx, 0xf
mov r8d, 1
mov r9, rax
call fcn.140010c48
mov esi, 1
mov rcx, qword [rsp + 0xe58]
xor rcx, rsp
call fcn.140015e70
mov eax, esi
movaps xmm6, xmmword [rsp + 0xe60]
add rsp, 0xe78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str._config
mov rcx, rdi
xor edx, edx
call sub.avs2_core.dll_Ordinal_162
mov rdx, qword [0x140034788]
xorps xmm6, xmm6
movups xmmword [rsp + 0x20], xmm6
mov r8d, 0x8000000
mov rcx, rax
xor r9d, r9d
call sub.avs2_core.dll_XCgsqzn000012b
mov r9, qword [rsi + 8]
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0xd0], 0
mov dword [rsp + 0x30], 1
lea rcx, [rsp + 0x34]
lea r8, [0x14002beb0]
mov edx, 0x41
call fcn.140004b60
movabs rax, 0x30303130313033
mov qword [rsp + 0x82], rax
movups xmm0, xmmword [str.QCV:J:A:A:2023010100]
movups xmmword [rsp + 0x75], xmm0
movabs rax, 0x30303030303030
mov qword [rsp + 0xa7], rax
movups xmm0, xmmword [str.00000000_0000_0000_0000_000000000000]
movups xmmword [rsp + 0x8a], xmm0
movups xmm0, xmmword [0x14002c98e]
movups xmmword [rsp + 0x9a], xmm0
lea rcx, [rsp + 0x30]
call sub.libeacnet.dll_Ordinal_1
cmp eax, 2
jne 0x140004a70
mov ecx, 2
call fcn.1400093a4
lea rcx, str.Failed_to_boot_net_n
mov edx, 0x13
jmp 0x140004912
call sub.libeacnet.dll_Ordinal_2
cmp eax, 2
je 0x140004a86
mov ecx, 0x64
call sub.avs2_core.dll_XCgsqzn0000007
jmp 0x140004a70
call sub.libeacnet.dll_Ordinal_27
cmp eax, 2
je 0x140004ace
call sub.libeacnet.dll_Ordinal_28
cmp eax, 2
je 0x140004aa6
mov ecx, 0x64
call sub.avs2_core.dll_XCgsqzn0000007
jmp 0x140004a90
lea rsi, [rsp + 0x30]
lea r8, [rsp + 0xd50]
mov rcx, rsi
mov edx, 0x100
mov r9d, 0x100
call sub.libeacnet.dll_Ordinal_29
mov rcx, rsi
call fcn.140011064
call sub.libeacnet.dll_Ordinal_3
call sub.avs2_core.dll_XCgsqzn000012a
mov rcx, qword [0x140034788]
xor esi, esi
test rcx, rcx
je 0x140004925
call fcn.140010c34
mov qword [0x140034788], 0
jmp 0x140004925