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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d355f
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x638fe4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, 0x92492493
mov ecx, dword [edi + 4]
mov esi, dword [edi]
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x584950
test eax, eax
jne 0x584889
push str.invalid_vector_T__subscript
call fcn.00545b0e
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.004035b0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x5848c8
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00402cf0
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi - 8]
push esi
call fcn.0054c667
add esp, 8
test eax, eax
js 0x584a0d
cmp eax, dword [esi - 8]
jg 0x584a0d
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 0x584908
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x584950
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x584a06
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x584a06
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [edi + 4]
mov eax, 0x92492493
sub ecx, dword [edi]
mov ebx, 1
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jbe 0x584ca7
mov eax, dword [0x644178]
mov esi, eax
cmp esi, dword [0x64417c]
je 0x584c92
mov ebx, dword [edi]
mov ecx, esi
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
mov ecx, dword [edi + 4]
sar edx, 4
sub ecx, ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, 0x92492493
imul ecx
add edx, ecx
mov ecx, dword [ebp - 0x14]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ecx
jbe 0x58487f
lea eax, [ecx*8]
sub eax, ecx
shl eax, 2
mov dword [ebp - 0x10], eax
push ecx
mov dword [ebp - 0x1c], esp
mov eax, dword [eax + ebx]
mov ecx, dword [eax - 0x10]
lea edi, [eax - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
je 0x5849f4
call dword [eax + 0x10]
mov ecx, eax
cmp dword [edi + 0xc], 0
lea eax, [edi + 0xc]
jl 0x584a17
cmp ecx, dword [edi]
jne 0x584a17
lock inc dword [eax]
jmp 0x584a50
call edx
jmp 0x584950
push 0x80070057
call fcn.00402650
mov eax, dword [ecx]
lea ebx, [edi + 4]
push 2
push dword [ebx]
call dword [eax]
mov edi, eax
test edi, edi
je 0x584ca2
mov eax, dword [ebx]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
mov edx, dword [ebx]
lea eax, [edx*2 + 2]
push eax
push dword [ebp - 0x18]
lea edx, [edx*2 + 2]
call fcn.0056c4f0
add esp, 8
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + 0x10]
mov dword [ecx], eax
lea ecx, [ebp - 0x24]
call fcn.005b0260
add esp, 4
mov edi, eax
mov dword [ebp - 4], 1
mov eax, 0x92492493
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, ebx
mov dword [ebp - 0x20], ebx
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x14]
jbe 0x58487f
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add eax, ebx
mov dword [ebp - 0x18], eax
mov edi, dword [eax]
lea edx, [ecx - 0x10]
sub edi, 0x10
cmp edx, edi
je 0x584b31
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x584b26
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x584b23
push edx
call fcn.004035b0
mov dword [ebp - 0x18], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x584b12
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x584b10
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x584b10
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [ebx + ecx], eax
jmp 0x584b34
call edx
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [ebx + ecx], eax
jmp 0x584b34
mov eax, dword [ebp - 0x18]
push dword [ecx - 0xc]
push ecx
mov ecx, eax
call fcn.00403620
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x584b7d
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x584b79
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x584b79
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x584b7d
mov ecx, edx
call edi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
push 0x80
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 2
call fcn.00404b60
push esi
lea ecx, [ebp - 0x30]
call fcn.00404080
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov edi, dword [eax]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, dword [ebp - 0x14]
jbe 0x58487f
push ecx
push dword [ebp + 0x10]
lea eax, [ebx + edi]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
push ecx
call fcn.0057d3c0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
jne 0x584c4f
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x584c37
push dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
push ecx
mov ecx, edi
call fcn.00405440
mov ecx, dword [ebp - 0x28]
mov eax, 0x92492493
sub ecx, edi
add esp, 8
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push edi
call fcn.00404fe0
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
add esi, 0x1c
cmp esi, dword [0x64417c]
je 0x584c86
mov eax, dword [0x644178]
mov edi, dword [ebp + 8]
jmp 0x584988
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x584c86
push dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
push ecx
mov ecx, esi
call fcn.00405440
mov ecx, dword [ebp - 0x28]
mov eax, 0x92492493
sub ecx, esi
add esp, 8
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.00404fe0
cmp ebx, 2
je 0x584dd2
mov edi, dword [ebp + 8]
push edi
mov ecx, 0x644178
call fcn.00405b60
jmp 0x584dd2
call fcn.00402e60
jne 0x584dd0
test eax, eax
jne 0x584cbb
push str.invalid_vector_T__subscript
call fcn.00545b0e
push ecx
mov esi, esp
mov dword [ebp + 8], esi
mov eax, dword [edi]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004035b0
add esp, 4
lea ecx, [ebp + 8]
add eax, 0x10
mov dword [esi], eax
call fcn.005b0260
add esp, 4
mov ebx, eax
mov dword [ebp - 4], 3
mov eax, 0x92492493
mov ecx, dword [edi + 4]
mov esi, dword [edi]
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x584d10
push str.invalid_vector_T__subscript
call fcn.00545b0e
push ebx
mov ecx, esi
call fcn.00403220
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00402b90
mov ecx, dword [edi + 4]
mov eax, 0x92492493
mov esi, dword [edi]
sub ecx, esi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x584d4d
push str.invalid_vector_T__subscript
call fcn.00545b0e
push ecx
push dword [ebp + 0x10]
push esi
push 0x644178
push dword [ebp + 0xc]
push ecx
call fcn.0057d3c0
mov ebx, eax
cmp ebx, 2
je 0x584dd2
push dword [ebp + 8]
mov edx, dword [0x64417c]
push ecx
mov ecx, dword [0x644178]
call fcn.00405440
mov eax, dword [0x644178]
add esp, 8
mov ecx, dword [0x644180]
sub ecx, eax
mov dword [0x64417c], eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x80
jae 0x584dba
push 0x80
mov ecx, 0x644178
call fcn.00404b60
push 0
mov ecx, edi
call fcn.00404170
push eax
mov ecx, 0x644178
call fcn.00404080
jmp 0x584dd2
xor ebx, ebx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10