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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x250]
sub rsp, 0x350
mov rax, qword [0x14004b070]
xor rax, rsp
mov qword [rbp + 0x240], rax
xor r14d, r14d
lea rcx, [rbp + 0x200]
call fcn.140001fb0
nop
mov rcx, qword [rbp + 0x210]
test rcx, rcx
je 0x140004291
movabs rbx, 0x7fffffffffffffff
mov rax, rbx
sub rax, rcx
cmp rax, 9
jb 0x140004304
lea r9, [rbp + 0x200]
cmp qword [rbp + 0x218], 0x10
cmovae r9, qword [rbp + 0x200]
mov qword [rsp + 0x30], 9
lea rax, str.im30_win
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x1e0]
call fcn.14000c8f0
nop
lea rcx, [rbp + 0x1e0]
cmp qword [rbp + 0x1f8], 0x10
cmovae rcx, qword [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140003ba7
test al, 0x10
jne 0x140003bce
lea rcx, [rbp + 0x1e0]
cmp qword [rbp + 0x1f8], 0x10
cmovae rcx, qword [rbp + 0x1e0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x140004239
mov rax, rbx
mov rcx, qword [rbp + 0x210]
sub rax, rcx
cmp rax, 0x1b
jb 0x14000430a
lea r9, [rbp + 0x200]
cmp qword [rbp + 0x218], 0x10
cmovae r9, qword [rbp + 0x200]
mov qword [rsp + 0x30], 0x1b
lea rax, str.im30_winlastfortress_guid
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x1a0]
call fcn.14000c8f0
nop
lea rcx, [rbp + 0x1a0]
cmp qword [rbp + 0x1b8], 0x10
cmovae rcx, qword [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140003c49
test al, 0x10
jne 0x140003c70
lea rcx, [rbp + 0x1a0]
cmp qword [rbp + 0x1b8], 0x10
cmovae rcx, qword [rbp + 0x1a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1400041df
mov rax, qword [rbp + 0x1b0]
sub rbx, rax
cmp rbx, 9
jb 0x140004310
lea r9, [rbp + 0x1a0]
cmp qword [rbp + 0x1b8], 0x10
cmovae r9, qword [rbp + 0x1a0]
mov qword [rsp + 0x30], 9
lea rcx, str.guid.txt
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x220]
call fcn.14000c8f0
nop
lea rcx, [rbp + 0x220]
cmp qword [rbp + 0x238], 0x10
cmovae rcx, qword [rbp + 0x220]
lea rdx, [0x1400438d8]
call fcn.1400151a8
lea rsi, [0x14004df60]
mov edi, 6
lea r15d, [rdi - 4]
lea r12, vtable.std::ios_base.0
test rax, rax
je 0x140003ed7
mov rcx, rax
call fcn.1400156c8
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp - 0x80]
call fcn.140010f40
lea rdx, [rbp + 0x220]
lea rcx, [rbp - 0x80]
call fcn.140006d80
nop
mov rax, qword [rbp - 0x80]
movsxd rax, dword [rax + 4]
test byte [rbp + rax - 0x70], dil
jne 0x140003e77
xorps xmm0, xmm0
movups xmmword [rbp + 0x1c0], xmm0
mov qword [rbp + 0x1d0], r14
mov qword [rbp + 0x1d8], 0xf
mov byte [rbp + 0x1c0], 0
mov rax, qword [rbp + rax - 0x40]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x48], rcx
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rcx, [rsp + 0x40]
call fcn.14000ab60
mov r8, qword [rax]
mov dl, 0xa
mov rcx, rax
call qword [r8 + 0x40]
movzx ebx, al
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140003db4
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test rax, rax
je 0x140003db4
mov r8, qword [rax]
lea edx, [rdi - 5]
mov rcx, rax
call qword [r8]
movzx r8d, bl
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp - 0x80]
call fcn.14000ce40
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
jne 0x140003dfc
lea rdx, [rbp + 0x1c0]
cmp qword [rbp + 0x1d8], 0x10
cmovae rdx, qword [rbp + 0x1c0]
mov r8, qword [rbp + 0x1d0]
mov rcx, rsi
call fcn.140009560
lea rcx, [rbp - 0x70]
call fcn.140009420
test rax, rax
jne 0x140003e35
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov eax, edi
cmp qword [rbp + rcx - 0x38], 0
cmovne eax, r15d
or eax, dword [rbp + rcx - 0x70]
and eax, 0x17
mov dword [rbp + rcx - 0x70], eax
mov edx, dword [rbp + rcx - 0x6c]
and edx, eax
jne 0x140004316
mov rdx, qword [rbp + 0x1d8]
cmp rdx, 0x10
jb 0x140003e77
inc rdx
mov rcx, qword [rbp + 0x1c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003e71
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000436a
call fcn.14000ea00
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x70]
call fcn.140006cd0
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x7c], edx
mov qword [rbp + 0x30], r12
lea rcx, [rbp + 0x30]
call fcn.14000de90
nop
mov r8, qword [0x14004df70]
test r8, r8
je 0x140003f14
mov rcx, rsi
cmp qword [0x14004df78], 0x10
cmovae rcx, qword [0x14004df60]
cmp r8, 0xa
jne 0x140004187
lea rdx, str.NotGenUuid
call fcn.1400113a0
test eax, eax
jne 0x140004187
lea rcx, [rbp + 0x1c0]
call fcn.140003660
mov rbx, rax
cmp rsi, rax
je 0x140003fa6
mov rdx, qword [0x14004df78]
cmp rdx, 0x10
jb 0x140003f69
mov rcx, qword [0x14004df60]
inc rdx
cmp rdx, 0x1000
jb 0x140003f64
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140004370
mov rcx, r8
call fcn.14000ea00
mov qword [0x14004df70], r14
mov qword [0x14004df78], 0xf
mov byte [0x14004df60], 0
movups xmm0, xmmword [rbx]
movups xmmword [0x14004df60], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x14004df70], xmm1
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rdx, qword [rbp + 0x1d8]
cmp rdx, 0x10
jb 0x140003fe7
inc rdx
mov rcx, qword [rbp + 0x1c0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003fe2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004370
call fcn.14000ea00
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x90]
call fcn.140010f40
lea rdx, [rbp + 0x220]
lea rcx, [rbp + 0x90]
call fcn.140005ed0
nop
mov rcx, qword [rbp + 0x90]
movsxd rax, dword [rcx + 4]
test byte [rbp + rax + 0xa0], 6
jne 0x14000410d
cmp qword [0x14004df78], 0x10
cmovae rsi, qword [0x14004df60]
mov r8, qword [0x14004df70]
mov rdx, rsi
lea rcx, [rbp + 0x90]
call fcn.14000cba0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
mov rcx, qword [rcx + rax + 0x40]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x48], rcx
mov rdx, qword [rcx]
call qword [rdx + 8]
nop
lea rcx, [rsp + 0x40]
call fcn.14000ab60
mov r8, qword [rax]
mov dl, 0xa
mov rcx, rax
call qword [r8 + 0x40]
movzx esi, al
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400040a9
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test rax, rax
je 0x1400040a9
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
movzx edx, sil
mov rcx, rbx
call fcn.14000c720
mov rcx, rbx
call fcn.14000a790
lea rcx, [rbp + 0x98]
call fcn.140009420
test rax, rax
jne 0x140004106
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
cmp qword [rbp + rcx + 0xd8], 0
cmovne edi, r15d
or edi, dword [rbp + rcx + 0xa0]
and edi, 0x17
mov dword [rbp + rcx + 0xa0], edi
mov eax, dword [rbp + rcx + 0xa4]
and eax, edi
jne 0x140004376
mov rcx, qword [rbp + 0x90]
movsxd rax, dword [rcx + 4]
lea rcx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rax + 0x90], rcx
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x8c], edx
lea rcx, [rbp + 0x98]
call fcn.140006cd0
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x90], rax
mov rax, qword [rbp + 0x90]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0x8c], edx
mov qword [rbp + 0x138], r12
lea rcx, [rbp + 0x138]
call fcn.14000de90
nop
mov rdx, qword [rbp + 0x238]
cmp rdx, 0x10
jb 0x1400041c8
inc rdx
mov rcx, qword [rbp + 0x220]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400041c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400043c8
call fcn.14000ea00
movdqa xmm0, xmmword [0x140043ef0]
movdqu xmmword [rbp + 0x230], xmm0
mov byte [rbp + 0x220], 0
mov rdx, qword [rbp + 0x1b8]
cmp rdx, 0x10
jb 0x140004220
inc rdx
mov rcx, qword [rbp + 0x1a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000421b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400043ce
call fcn.14000ea00
mov qword [rbp + 0x1b0], r14
mov qword [rbp + 0x1b8], 0xf
mov byte [rbp + 0x1a0], 0
mov rdx, qword [rbp + 0x1f8]
cmp rdx, 0x10
jb 0x14000427a
inc rdx
mov rcx, qword [rbp + 0x1e0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004275
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400043d4
call fcn.14000ea00
movdqa xmm0, xmmword [0x140043ef0]
movdqu xmmword [rbp + 0x1f0], xmm0
mov byte [rbp + 0x1e0], 0
mov rdx, qword [rbp + 0x218]
cmp rdx, 0x10
jb 0x1400042ce
inc rdx
mov rcx, qword [rbp + 0x200]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400042c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400042fe
call fcn.14000ea00
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.14000e9e0
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14001a598
nop
call fcn.140001530
nop
call fcn.140001530
nop
call fcn.140001530
nop
test dl, 4
je 0x140004324
lea rbx, str.ios_base::badbit_set
jmp 0x140004339
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.140001670
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140001e50
lea rdx, [0x140049128]
lea rcx, [rsp + 0x58]
call fcn.1400107b4
nop
call fcn.14001a598
nop
call fcn.14001a598
nop
test al, 4
je 0x140004383
lea rbx, str.ios_base::badbit_set
jmp 0x140004397
test al, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.140001670
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140001e50
lea rdx, [0x140049128]
lea rcx, [rsp + 0x58]
call fcn.1400107b4
nop
call fcn.14001a598
nop
call fcn.14001a598
nop
call fcn.14001a598
int3