Function at 0x18004b280
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x180090010]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rbx, rdx
mov qword [rsp + 0x78], rdx
lea rdx, [rbp - 0x60]
lea rcx, str.C:Pegasus
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
jne 0x18004b53e
mov edi, 0x4000
test word [rbp - 0x5a], di
je 0x18004b53e
lea rdx, [rbp - 0x60]
lea rcx, str.C:Pegasuscfg
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
jne 0x18004b2f6
test word [rbp - 0x5a], di
jne 0x18004b303
lea rcx, [0x180084fc8]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp]
call sub.VCRUNTIME140.dll_memset
mov r8, rbx
lea rdx, str.C:Pegasuscfg_
lea rcx, [rsp + 0x38]
call fcn.18004def0
nop
cmp qword [rax + 0x18], 0x10
jb 0x18004b333
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp]
call fcn.18004d870
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx], rdi
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 4], edx
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x18004b3a5
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004b3a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004b3a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005c764
movdqa xmm0, xmmword [0x180085ce0]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [0x180085ce0]
movdqu xmmword [rbp - 0x70], xmm1
mov byte [rbp - 0x80], 0
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, [rbp]
mov dl, 0xa
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp - 0x80]
lea rcx, [rbp]
call fcn.18004e870
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
jne 0x18004b494
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.180041770
mov r8, rax
lea rdx, [rbp - 0x30]
call fcn.18004c7d0
nop
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x60]
call fcn.180041770
movss xmm0, dword [rbp - 0x10]
movss dword [rbp - 0x40], xmm0
movzx eax, byte [rbp - 0xc]
mov byte [rbp - 0x3c], al
lea rdx, [rbp - 0x60]
call fcn.18004c2f0
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x18004b3d0
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004b483
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004b48d
call fcn.18005c764
jmp 0x18004b3d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x18004b4d2
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004b4cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004b4cd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005c764
lea rcx, [rbp + 0x10]
call fcn.18004dce0
test rax, rax
jne 0x18004b4fd
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, [rbp]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx], rdi
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 4], edx
lea rcx, [rbp + 0x10]
call fcn.18004d800
lea rcx, [rbp + 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
jmp 0x18004b54c
lea rcx, str.C:Pegasus_
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x18004b582
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18004b57d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18004b5b9
mov rcx, r8
call fcn.18005c764
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.18005c260
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3