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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5adf28
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x614040]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, 0x92492493
mov ecx, dword [ebx + 4]
mov esi, dword [ebx]
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x55f894
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00403660
add esp, 4
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov dword [esp + 0x40], 0
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x55f832
push 0x104
lea ecx, [esp + 0x14]
call fcn.00402c20
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi - 8]
push esi
call fcn.00528e42
add esp, 8
test eax, eax
js 0x55f94b
cmp eax, dword [esi - 8]
jg 0x55f94b
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x55f872
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esi, 0xfffffff0
mov dword [esp + 0x40], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55f894
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebx + 4]
mov eax, 0x92492493
sub ecx, dword [ebx]
mov edi, 1
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jbe 0x55fb2e
mov eax, dword [0x61fed8]
mov esi, eax
cmp esi, dword [0x61fedc]
je 0x55fb19
lea esp, [esp]
mov ecx, esi
sub ecx, eax
mov eax, 0x92492493
imul ecx
mov eax, 0x92492493
add edx, ecx
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
imul ecx
mov dword [esp + 0x14], edi
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jbe 0x55fb7e
lea eax, [edi*8]
sub eax, edi
mov edi, dword [ebx]
shl eax, 2
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], esp
mov edi, dword [edi + eax]
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi - 4], 0
lea edx, [edi - 4]
mov ecx, eax
jl 0x55f955
cmp ecx, dword [edi - 0x10]
jne 0x55f955
lea ebx, [edi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x55f98e
push 0x80070057
call fcn.00402740
mov eax, dword [ecx]
push 2
push dword [edi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x55fb29
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov ecx, dword [edi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push edi
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.00528cf5
add esp, 0x10
mov ecx, dword [esp + 0x1c]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
lea ecx, [esp + 0x28]
call fcn.00589950
add esp, 4
mov dword [esp + 0x18], eax
mov ebx, dword [ebp + 8]
mov eax, 0x92492493
mov dword [esp + 0x40], 1
mov edi, dword [ebx]
mov ecx, dword [ebx + 4]
sub ecx, edi
mov dword [esp + 0x1c], edi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [esp + 0x14]
jbe 0x55fb7e
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
add eax, edi
mov dword [esp + 0x20], eax
mov ecx, dword [ecx]
mov edi, dword [eax]
sub edi, 0x10
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x55fa49
cmp dword [edi + 0xc], 0
jl 0x55fa3e
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x55fa3a
push edx
call fcn.00403660
mov dword [esp + 0x1c], eax
lea ecx, [edi + 0xc]
add esp, 4
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x55fa26
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add eax, 0x10
mov dword [edx + ecx], eax
jmp 0x55fa49
mov eax, dword [esp + 0x20]
push dword [ecx - 0xc]
push ecx
mov ecx, eax
call fcn.004035a0
mov dword [esp + 0x40], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55fa6f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
push 0x80
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 2
call fcn.00404700
push esi
lea ecx, [esp + 0x2c]
call fcn.00404050
mov ecx, dword [ebx + 4]
mov eax, 0x92492493
mov edi, dword [ebx]
sub ecx, edi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [esp + 0x14]
jbe 0x55fb7e
mov eax, dword [esp + 0x10]
push ecx
push dword [ebp + 0x10]
add eax, edi
push eax
lea eax, [esp + 0x34]
push eax
push dword [ebp + 0xc]
push ecx
call fcn.00558a80
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xffffffff
mov edi, eax
call fcn.004048e0
test edi, edi
jne 0x55fb10
add esi, 0x1c
cmp esi, dword [0x61fedc]
je 0x55fb10
mov eax, dword [0x61fed8]
jmp 0x55f8d0
cmp edi, 2
je 0x55fc4d
push ebx
mov ecx, 0x61fed8
call fcn.00405850
jmp 0x55fc4d
call fcn.00402c80
jne 0x55fc4b
mov eax, dword [ebx]
push ecx
mov esi, esp
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00403660
add esp, 4
lea ecx, [esp + 0x28]
add eax, 0x10
mov dword [esi], eax
call fcn.00589950
add esp, 4
mov edi, eax
mov dword [esp + 0x40], 3
mov eax, 0x92492493
mov ecx, dword [ebx + 4]
mov esi, dword [ebx]
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x55fb88
push str.invalid_vector_T__subscript
call fcn.00546d3a
push edi
mov ecx, esi
call fcn.004032d0
mov dword [esp + 0x40], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55fbb6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebx + 4]
mov eax, 0x92492493
mov esi, dword [ebx]
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x55fbdc
push str.invalid_vector_T__subscript
call fcn.00546d3a
push ecx
push dword [ebp + 0x10]
push esi
push 0x61fed8
push dword [ebp + 0xc]
push ecx
call fcn.00558a80
mov edi, eax
cmp edi, 2
je 0x55fc4d
mov ecx, 0x61fed8
call fcn.00404190
mov ecx, dword [0x61fee0]
mov eax, 0x92492493
sub ecx, dword [0x61fed8]
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x80
jae 0x55fc35
push 0x80
mov ecx, 0x61fed8
call fcn.00404700
push 0
mov ecx, ebx
call fcn.00404000
push eax
mov ecx, 0x61fed8
call fcn.00404050
jmp 0x55fc4d
xor edi, edi
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10