Function at 0x180047dc8
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 - 0x58]
sub rsp, 0x158
mov r12, 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 + 0xb0], rbx
and dword [rbp + 0xa8], 0
mov eax, dword [rbp + 0xa8]
mov dword [rbx], eax
xor r13d, r13d
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
lea ecx, [r13 + 0x30]
call fcn.180095eac
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbx + 8], rax
lea rcx, [rbx + 0x18]
mov qword [rcx], r13
mov qword [rcx + 8], r13
mov qword [rcx + 0x10], r13
lea esi, [r13 + 7]
mov qword [rbx + 0x30], rsi
lea r15d, [r13 + 8]
mov qword [rbx + 0x38], r15
mov edi, 0x3f800000
mov dword [rbx], edi
mov r8, qword [rbx + 8]
lea ebx, [rsi + 9]
mov edx, ebx
call fcn.18000da50
nop
lea r14, [r12 + 0x268]
mov qword [rbp + 0xb0], r14
and dword [rbp + 0xa8], r13d
mov eax, dword [rbp + 0xa8]
mov dword [r14], eax
mov qword [r14 + 8], r13
mov qword [r14 + 0x10], r13
lea ecx, [rsi + 0x11]
call fcn.180095eac
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [r14 + 8], rax
lea rcx, [r14 + 0x18]
mov qword [rcx], r13
mov qword [rcx + 8], r13
mov qword [rcx + 0x10], r13
mov qword [r14 + 0x30], rsi
mov qword [r14 + 0x38], r15
mov dword [r14], edi
mov r8, qword [r14 + 8]
mov edx, ebx
call fcn.18000da50
nop
lea rsi, [0x1801b9ff0]
mov rcx, rsi
lea rdi, [r12 + 0x1c]
mov rdx, rdi
sub rdx, rsi
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180047ef5
mov eax, 0x3a
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 eax, [rcx + 4]
mov word [rsp + 0x38], ax
lea eax, [rcx + 0xa]
mov word [rsp + 0x3a], ax
lea eax, [rcx - 0x3b]
mov word [rsp + 0x3c], ax
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 [0x1800ce046]
add ax, dx
mov word [rsp + 0x46], ax
movzx eax, word [0x1800ce048]
add ax, dx
mov word [rsp + 0x48], ax
movzx eax, word [0x1800ce04a]
add ax, dx
mov word [rsp + 0x4a], ax
movzx eax, word [str.ITEMS]
add ax, dx
mov word [rsp + 0x4c], ax
movzx eax, word [0x1800ce04e]
add ax, dx
mov word [rsp + 0x4e], ax
movzx eax, word [0x1800ce050]
add ax, dx
mov word [rsp + 0x50], ax
movzx eax, word [0x1800ce052]
add ax, dx
mov word [rsp + 0x52], ax
movzx eax, word [0x1800ce054]
add ax, dx
mov word [rsp + 0x54], ax
movzx eax, word [0x1800ce056]
add ax, dx
mov word [rsp + 0x56], ax
movzx eax, word [0x1800ce058]
add ax, dx
mov word [rsp + 0x58], ax
mov word [rsp + 0x5a], r13w
movzx eax, word [rsp + 0x30]
mov rcx, r13
movzx eax, word [rsp + rcx*2 + 0x30]
sub ax, dx
mov word [rsp + rcx*2 + 0x30], ax
inc rcx
cmp rcx, 0x15
jb 0x180047ffd
lea rcx, [rdi - 2]
lea rcx, [rcx + 2]
cmp word [rcx], r13w
jne 0x180048017
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 0x180048028
lea rdx, [0x1800ce048]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wfopen]
mov rbx, rax
test rax, rax
jne 0x1800481d1
mov rcx, r12
call fcn.18004855c
cmp qword [r12 + 0x278], r13
jbe 0x18004838a
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180048083
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, [0x1800ce070]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wfopen]
mov rsi, rax
test rax, rax
je 0x18004838a
mov byte [rbp + 0xa0], 0x56
mov byte [rbp + 0xa1], 0x61
mov byte [rbp + 0xa2], 0x52
mov byte [rbp + 0xa3], 0x5a
mov byte [rbp + 0xa4], 0x60
mov byte [rbp + 0xa5], r13b
mov cl, byte [rbp + 0xa0]
mov rcx, r13
mov al, byte [rbp + rcx + 0xa0]
sub al, 0xd
mov byte [rbp + rcx + 0xa0], al
inc rcx
cmp rcx, 5
jb 0x1800480d2
mov byte [rbp + 0xa8], 0x5d
mov byte [rbp + 0xa9], 0x27
mov byte [rbp + 0xaa], 0x75
mov byte [rbp + 0xab], 0x5f
mov byte [rbp + 0xac], 0xc
mov byte [rbp + 0xad], r13b
mov al, byte [rbp + 0xa8]
mov rcx, r13
mov al, byte [rbp + rcx + 0xa8]
sub al, 2
mov byte [rbp + rcx + 0xa8], al
inc rcx
cmp rcx, 5
jb 0x18004811e
lea r8, [rbp + 0xa0]
lea rdx, [rbp + 0xa8]
mov rcx, rsi
call fcn.18001c184
mov rdi, qword [r14 + 8]
mov rbx, qword [rdi]
jmp 0x1800481be
mov r8, qword [rbx + 0x10]
mov qword [rbp + 0xa0], r8
mov byte [rsp + 0x20], 0x29
mov byte [rsp + 0x21], 0x68
mov byte [rsp + 0x22], 0x24
mov byte [rsp + 0x23], 0x41
mov byte [rsp + 0x24], 0x24
mov byte [rsp + 0x25], 0x29
mov byte [rsp + 0x26], 0x68
mov byte [rsp + 0x27], 0xe
mov byte [rsp + 0x28], r13b
mov al, byte [rsp + 0x20]
mov rcx, r13
mov al, byte [rsp + rcx + 0x20]
sub al, 4
mov byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, r15
jb 0x180048195
mov r9d, dword [rbp + 0xa4]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.18001c184
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x180048156
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_fclose]
jmp 0x18004838a
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.18006e3c8
mov r14, rax
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_fclose]
test r14, r14
jne 0x1800481f5
xor ecx, ecx
jmp 0x180048384
mov byte [rbp + 0xa8], 0x51
mov byte [rbp + 0xa9], 0x5c
mov byte [rbp + 0xaa], 0x4d
mov byte [rbp + 0xab], 0x55
mov byte [rbp + 0xac], 0x5b
mov byte [rbp + 0xad], r13b
mov al, byte [rbp + 0xa8]
mov rcx, r13
mov al, byte [rbp + rcx + 0xa8]
sub al, r15b
mov byte [rbp + rcx + 0xa8], al
inc rcx
cmp rcx, 5
jb 0x180048228
lea rdx, [rbp + 0xa8]
mov rcx, r14
call fcn.18006ef08
mov rsi, rax
test rax, rax
je 0x180048381
mov r15d, dword [rax + 0xc]
mov edi, r13d
test r15d, r15d
jle 0x180048381
mov edx, edi
mov rcx, rsi
call fcn.18006edf4
mov rbx, rax
test rax, rax
je 0x180048376
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
call fcn.180006df0
mov dword [rbp + 0xb0], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
or r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], r13b
jne 0x1800482ad
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.18000f1f0
nop
call qword [sym.imp.msvcrt.dll__errno]
mov r13, 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 + 0xb8]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_strtol]
cmp rbx, qword [rbp + 0xb8]
je 0x1800483ae
cmp dword [r13], 0x22
je 0x1800483a1
mov dword [rbp + 0xa8], eax
lea r8, [rbp + 0xa8]
lea rdx, [rsp + 0x20]
lea rcx, [r12 + 0x268]
call fcn.180049b90
mov rcx, qword [rax]
mov eax, dword [rbp + 0xb0]
mov dword [rcx + 0x14], eax
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x180048373
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004836e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800483bb
call fcn.180095ea4
xor r13d, r13d
inc edi
cmp edi, r15d
jl 0x18004826d
mov rcx, r14
call fcn.18006e5d8
nop
mov rax, r12
add rsp, 0x158
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.180094438
int3
lea rcx, str.invalid_stoi_argument
call fcn.1800943f0
nop
call fcn.18009a2c0
int3