Function at 0x18004739c
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x78]
sub rsp, 0x178
mov r13, rcx
lea rax, vtable.IMySteamInventory.2.0
mov qword [rcx], rax
lea rax, vtable.IMySteamInventory.1.0
mov qword [rcx + 8], rax
lea rax, vtable.IMySteamInventory.0
mov qword [rcx + 0x10], rax
mov dword [rcx + 0x18], 1
lea rbx, [rcx + 0x228]
mov qword [rbp + 0xd0], rbx
and dword [rbp + 0xc8], 0
mov eax, dword [rbp + 0xc8]
mov dword [rbx], eax
xor r12d, r12d
mov qword [rbx + 8], r12
mov qword [rbx + 0x10], r12
lea ecx, [r12 + 0x30]
call fcn.18008cedc
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbx + 8], rax
lea rcx, [rbx + 0x18]
mov qword [rcx], r12
mov qword [rcx + 8], r12
mov qword [rcx + 0x10], r12
lea r14d, [r12 + 7]
mov qword [rbx + 0x30], r14
lea r15d, [r12 + 8]
mov qword [rbx + 0x38], r15
mov edi, 0x3f800000
mov dword [rbx], edi
mov r8, qword [rbx + 8]
lea ebx, [r12 + 0x10]
mov edx, ebx
call fcn.18000dacc
nop
lea rsi, [r13 + 0x268]
mov qword [rbp + 0xd8], rsi
and dword [rbp + 0xd0], r12d
mov eax, dword [rbp + 0xd0]
mov dword [rsi], eax
mov qword [rsi + 8], r12
mov qword [rsi + 0x10], r12
lea ecx, [rbx + 8]
call fcn.18008cedc
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rsi + 8], rax
lea rcx, [rsi + 0x18]
mov qword [rcx], r12
mov qword [rcx + 8], r12
mov qword [rcx + 0x10], r12
mov qword [rsi + 0x30], r14
mov qword [rsi + 0x38], r15
mov dword [rsi], edi
mov r8, qword [rsi + 8]
mov edx, ebx
call fcn.18000dacc
nop
lea rax, [0x18019fea0]
mov rcx, rax
lea rdi, [r13 + 0x1c]
mov rdx, rdi
sub rdx, rax
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1800474ca
mov eax, 0x33
mov word [rsp + 0x30], ax
lea ecx, [rax + 0x3a]
mov word [rsp + 0x32], cx
lea eax, [rcx + 0xb]
mov word [rsp + 0x34], ax
lea eax, [rcx - 4]
mov word [rsp + 0x36], ax
lea r14d, [rcx + 4]
mov word [rsp + 0x38], r14w
lea eax, [rcx + 0xa]
mov word [rsp + 0x3a], ax
lea r15d, [rcx - 0x3b]
mov word [rsp + 0x3c], r15w
mov word [rsp + 0x3e], cx
lea eax, [rcx + 5]
mov word [rsp + 0x40], ax
mov word [rsp + 0x42], cx
lea edx, [rcx - 0x69]
mov word [rsp + 0x44], dx
movzx eax, word [0x1800c4ed6]
add ax, dx
mov word [rsp + 0x46], ax
movzx eax, word [0x1800c4ed8]
add ax, dx
mov word [rsp + 0x48], ax
movzx eax, word [0x1800c4eda]
add ax, dx
mov word [rsp + 0x4a], ax
movzx eax, word [str.ITEMS]
add ax, dx
mov word [rsp + 0x4c], ax
movzx eax, word [0x1800c4ede]
add ax, dx
mov word [rsp + 0x4e], ax
movzx eax, word [0x1800c4ee0]
add ax, dx
mov word [rsp + 0x50], ax
movzx eax, word [0x1800c4ee2]
add ax, dx
mov word [rsp + 0x52], ax
movzx eax, word [0x1800c4ee4]
add ax, dx
mov word [rsp + 0x54], ax
movzx eax, word [0x1800c4ee6]
add ax, dx
mov word [rsp + 0x56], ax
movzx eax, word [0x1800c4ee8]
add ax, dx
mov word [rsp + 0x58], ax
mov word [rsp + 0x5a], r12w
movzx eax, word [rsp + 0x30]
mov rcx, r12
movzx eax, word [rsp + rcx*2 + 0x30]
sub ax, dx
mov word [rsp + rcx*2 + 0x30], ax
inc rcx
cmp rcx, 0x15
jb 0x1800475d6
lea rcx, [rdi - 2]
lea rcx, [rcx + 2]
cmp word [rcx], r12w
jne 0x1800475f0
lea r8, [rsp + 0x30]
xor edx, edx
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
inc rdx
test ax, ax
jne 0x180047601
lea rdx, [0x1800c4ed8]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wfopen]
mov rbx, rax
test rax, rax
jne 0x1800477b2
mov rcx, r13
call fcn.180047b1c
cmp qword [r13 + 0x278], r12
jbe 0x18004794c
lea rcx, [0x18019fea0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180047663
xor edx, edx
lea rcx, [0x18019fea0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, [0x1800c4f00]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wfopen]
mov rdi, rax
test rax, rax
je 0x18004794c
mov byte [rbp + 0xc0], 0x51
mov byte [rbp + 0xc1], 0x5c
mov byte [rbp + 0xc2], 0x4d
mov byte [rbp + 0xc3], 0x55
mov byte [rbp + 0xc4], 0x5b
mov byte [rbp + 0xc5], r12b
mov cl, byte [rbp + 0xc0]
mov rcx, r12
mov al, byte [rbp + rcx + 0xc0]
sub al, 8
mov byte [rbp + rcx + 0xc0], al
inc rcx
cmp rcx, 5
jb 0x1800476b2
mov byte [rbp + 0xd8], 0x60
mov byte [rbp + 0xd9], 0x2a
mov byte [rbp + 0xda], 0x78
mov byte [rbp + 0xdb], 0x62
mov byte [rbp + 0xdc], 0xf
mov byte [rbp + 0xdd], r12b
mov al, byte [rbp + 0xd8]
mov rcx, r12
mov al, byte [rbp + rcx + 0xd8]
sub al, 5
mov byte [rbp + rcx + 0xd8], al
inc rcx
cmp rcx, 5
jb 0x1800476fe
lea r8, [rbp + 0xc0]
lea rdx, [rbp + 0xd8]
mov rcx, rdi
call fcn.18001ba10
mov rsi, qword [rsi + 8]
mov rbx, qword [rsi]
cmp rbx, rsi
je 0x1800477a4
mov r8, qword [rbx + 0x10]
mov qword [rbp - 0x80], r8
mov byte [rsp + 0x26], r15b
mov byte [rsp + 0x27], r14b
mov byte [rsp + 0x28], 0x2d
mov byte [rsp + 0x29], 0x4a
mov byte [rsp + 0x2a], 0x2d
mov byte [rsp + 0x2b], r15b
mov byte [rsp + 0x2c], r14b
mov byte [rsp + 0x2d], 0x17
mov byte [rsp + 0x2e], r12b
mov al, byte [rsp + 0x26]
mov rcx, r12
mov al, byte [rsp + rcx + 0x26]
sub al, 0xd
mov byte [rsp + rcx + 0x26], al
inc rcx
cmp rcx, 8
jb 0x180047775
mov r9d, dword [rbp - 0x7c]
lea rdx, [rsp + 0x26]
mov rcx, rdi
call fcn.18001ba10
mov rax, qword [rbx]
mov rbx, rax
cmp rax, rsi
jne 0x180047739
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_fclose]
jmp 0x18004794c
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.18006570c
mov r14, rax
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_fclose]
test r14, r14
jne 0x1800477d6
xor ecx, ecx
jmp 0x180047946
mov byte [rsp + 0x20], 0x54
mov byte [rsp + 0x21], 0x5f
mov byte [rsp + 0x22], 0x50
mov byte [rsp + 0x23], 0x58
mov byte [rsp + 0x24], 0x5e
mov byte [rsp + 0x25], r12b
mov al, byte [rsp + 0x20]
mov rcx, r12
mov al, byte [rsp + rcx + 0x20]
sub al, 0xb
mov byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 5
jb 0x1800477fb
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.180066224
mov rsi, rax
test rax, rax
je 0x180047943
mov r15d, dword [rax + 0xc]
mov edi, r12d
test r15d, r15d
jle 0x180047943
mov edx, edi
mov rcx, rsi
call fcn.180066110
mov rbx, rax
test rax, rax
je 0x180047938
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
call fcn.180006f10
mov dword [rbp + 0xd0], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
or r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], r12b
jne 0x180047877
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.18000f2e8
nop
call qword [sym.imp.msvcrt.dll__errno]
mov r12, rax
lea rbx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rbx, qword [rsp + 0x60]
and dword [rax], 0
mov r8d, 0xa
lea rdx, [rbp - 0x78]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_strtol]
cmp rbx, qword [rbp - 0x78]
je 0x180047970
cmp dword [r12], 0x22
je 0x180047963
mov dword [rbp + 0xc8], eax
lea r8, [rbp + 0xc8]
lea rdx, [rbp - 0x70]
lea rcx, [r13 + 0x268]
call fcn.180049158
mov rcx, qword [rax]
mov eax, dword [rbp + 0xd0]
mov dword [rcx + 0x14], eax
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x180047935
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180047930
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004797d
call fcn.18008ced4
xor r12d, r12d
inc edi
cmp edi, r15d
jl 0x180047837
mov rcx, r14
call fcn.18006591c
nop
mov rax, r13
add rsp, 0x178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, str.stoi_argument_out_of_range
call fcn.18008b484
int3
lea rcx, str.invalid_stoi_argument
call fcn.18008b43c
nop
call fcn.1800911e0
int3