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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b04b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x616040]
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 0x55fc84
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 0x55fc22
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.00528e72
add esp, 8
test eax, eax
js 0x55fd3b
cmp eax, dword [esi - 8]
jg 0x55fd3b
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 0x55fc62
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 0x55fc84
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 0x55ff1e
mov eax, dword [0x621ed8]
mov esi, eax
cmp esi, dword [0x621edc]
je 0x55ff09
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 0x55ff6e
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 0x55fd45
cmp ecx, dword [edi - 0x10]
jne 0x55fd45
lea ebx, [edi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x55fd7e
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 0x55ff19
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.00528d25
add esp, 0x10
mov ecx, dword [esp + 0x1c]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
lea ecx, [esp + 0x28]
call fcn.0058bc90
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 0x55ff6e
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 0x55fe39
cmp dword [edi + 0xc], 0
jl 0x55fe2e
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x55fe2a
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 0x55fe16
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 0x55fe39
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 0x55fe5f
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.00404750
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 0x55ff6e
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.00558e90
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xffffffff
mov edi, eax
call fcn.00404930
test edi, edi
jne 0x55ff00
add esi, 0x1c
cmp esi, dword [0x621edc]
je 0x55ff00
mov eax, dword [0x621ed8]
jmp 0x55fcc0
cmp edi, 2
je 0x56003d
push ebx
mov ecx, 0x621ed8
call fcn.00405850
jmp 0x56003d
call fcn.00402c80
jne 0x56003b
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.0058bc90
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 0x55ff78
push str.invalid_vector_T__subscript
call fcn.00546d68
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 0x55ffa6
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 0x55ffcc
push str.invalid_vector_T__subscript
call fcn.00546d68
push ecx
push dword [ebp + 0x10]
push esi
push 0x621ed8
push dword [ebp + 0xc]
push ecx
call fcn.00558e90
mov edi, eax
cmp edi, 2
je 0x56003d
mov ecx, 0x621ed8
call fcn.00404190
mov ecx, dword [0x621ee0]
mov eax, 0x92492493
sub ecx, dword [0x621ed8]
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x80
jae 0x560025
push 0x80
mov ecx, 0x621ed8
call fcn.00404750
push 0
mov ecx, ebx
call fcn.00404000
push eax
mov ecx, 0x621ed8
call fcn.00404050
jmp 0x56003d
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