Function at 0x4aa7b0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f947f
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x529748]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
push edi
mov eax, dword [0x529748]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x10]
mov dword [esp + 0x48], 0
mov edx, str.JjE_Li81NCAzPjZ9LD4h
mov esi, dword [0x5300d4]
mov dword [esp + 0x20], esi
mov dword [esp + 0x50], 0
call fcn.004bba60
mov dword [esp + 0x70], 0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 1
jne 0x4aa82e
push str.invalid_vector_T__subscript
call fcn.004bc548
push ecx
lea ecx, [esp + 0x54]
call fcn.0048e020
mov byte [esp + 0x70], 2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4aa866
push eax
call fcn.004191e0
add esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x44]
push dword [edi]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x48], 0
call fcn.0048e020
lea ecx, [esp + 0x44]
mov byte [esp + 0x70], 3
call fcn.004b86c0
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4aa8aa
test al, 0x10
jne 0x4aa8e6
lea ecx, [esp + 0x44]
call fcn.004bb360
test eax, eax
je 0x4aa8e6
push 0x526c18
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 1
push eax
mov dword [esp + 0x20], 0x31
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 0x513484
call fcn.004c22fb
lea eax, [esp + 0x24]
mov dword [esp + 0x40], 0
push eax
mov ecx, edi
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], 0
call fcn.004b8490
mov byte [esp + 0x70], 4
lea ecx, [esp + 0x54]
push dword [eax]
call fcn.0048e020
mov byte [esp + 0x70], 6
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 0x4aa93d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push dword [esi + 8]
call fcn.00415690
push ecx
mov byte [esp + 0x78], 7
mov esi, esp
mov ecx, dword [0x530360]
mov dword [esp + 0x30], esp
lea ecx, [ecx - 0x10]
call fcn.0049ca30
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x78], 8
mov eax, dword [0x53072c]
test al, 1
jne 0x4aa9b0
or eax, 1
mov dword [0x53072c], eax
xorps xmm0, xmm0
mov byte [esp + 0x78], 9
movdqu xmmword [0x530714], xmm0
movq qword [0x530724], xmm0
call fcn.004909e0
push 0x4fcf40
call fcn.004be337
add esp, 4
mov byte [esp + 0x78], 8
mov ecx, 0x530714
mov byte [esp + 0x78], 6
call fcn.00490d60
lea eax, [esp + 0x4c]
mov edx, str.AAQb
push eax
lea eax, [esp + 0x44]
push eax
push 0
push 0
lea ecx, [esp + 0x20]
call fcn.004bba60
mov byte [esp + 0x80], 0xa
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
mov dword [esp + 0x58], 1
sar eax, 1
jne 0x4aaa00
push str.invalid_vector_T__subscript
call fcn.004bc548
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.0048e020
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x84], 0xb
mov eax, dword [ecx + 0x10]
cmp dword [eax - 0xc], 0
jne 0x4aaa2e
call fcn.004ab540
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, dword [ecx + 0x10]
mov esi, esp
sub ecx, 0x10
call fcn.0049ca30
add eax, 0x10
lea ecx, [esp + 0x70]
mov dword [esi], eax
xor edx, edx
mov byte [esp + 0x88], 0xa
call fcn.004ba740
add esp, 0x18
test eax, eax
jne 0x4aaa66
mov byte [esp + 0xf], 1
cmp dword [esp + 0x4c], eax
ja 0x4aaa6b
mov byte [esp + 0xf], 0
mov dword [esp + 0x70], 6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4aaa84
push eax
call fcn.004191e0
add esp, 4
cmp byte [esp + 0xf], 0
je 0x4aac67
mov edx, 0x515118
lea ecx, [esp + 0x10]
call fcn.004bba60
mov byte [esp + 0x70], 0xc
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
sar eax, 1
jne 0x4aaab7
push str.invalid_vector_T__subscript
call fcn.004bc548
push ecx
mov ecx, edi
call fcn.004b8730
mov byte [esp + 0x70], 6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4aaad5
push eax
call fcn.004191e0
add esp, 4
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4aab28
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4aab28
push dword [esp + 0x40]
call fcn.004191e0
add esp, 4
mov dword [esp + 0x14], 1
lea eax, [esp + 0x10]
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 0x513484
push 0x526c18
push eax
call fcn.004c22fb
lea eax, [esp + 0x48]
mov dword [esp + 0x48], 0
push eax
push dword [esp + 0x50]
push ecx
mov ecx, dword [edi]
mov esi, esp
sub ecx, 0x10
call fcn.0049ca30
add eax, 0x10
mov ecx, 1
mov dword [esi], eax
mov esi, dword [esp + 0x4c]
mov edx, esi
call fcn.004995c0
add esp, 0xc
test eax, eax
jne 0x4aac2f
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x4c]
jne 0x4aac2f
push esi
call fcn.004191e0
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x48]
add esp, 4
mov ecx, edi
mov edx, dword [esi + 0xc]
push eax
call fcn.004a9a60
add esp, 4
test eax, eax
je 0x4aabc6
push 0x526c18
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 1
push eax
mov dword [esp + 0x20], 3
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 0x513484
call fcn.004c22fb
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4aabda
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x54]
mov ecx, edi
call fcn.004b8730
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4aabf5
mov byte [esi + 0x40], 1
lea ecx, [esp + 0x54]
call fcn.00415730
lea ecx, [esp + 0x44]
call fcn.00415730
lea ecx, [esp + 0x50]
call fcn.00415730
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004bd963
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.004191e0
add esp, 4
mov dword [esp + 0x14], 1
lea eax, [esp + 0x10]
mov dword [esp + 0x18], 5
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 0x513484
push 0x526c18
push eax
call fcn.004c22fb
push 0x526c18
lea eax, [esp + 0x34]
mov dword [esp + 0x38], 1
push eax
mov dword [esp + 0x40], 8
mov dword [esp + 0x44], 0
mov dword [esp + 0x38], 0x513484
call fcn.004c22fb
int3