Function at 0x56e8d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d1c23
mov eax, dword fs:[0]
push eax
sub esp, 0x34
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 ebx, ecx
mov dword [ebp - 0x18], ebx
lea edi, [ebx + 0x4bc]
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x24], edi
call fcn.00404330
push 0xe3f
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebx + 0xa8]
call fcn.005a7560
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebx + 0xac]
mov ebx, dword [ebp - 0x30]
je 0x56eb3b
mov esi, dword [eax + 0x48]
test esi, esi
je 0x56eb3b
cmp dword [esi + 0x20], 0
je 0x56eb3b
push dword [ebp - 0x24]
mov edx, dword [edi + 4]
push ecx
mov ecx, dword [edi]
call fcn.00405440
mov eax, dword [edi]
add esp, 8
mov dword [edi + 4], eax
mov ecx, esi
lea eax, [ebp - 0x3c]
push eax
call fcn.00597900
mov byte [ebp - 4], 1
mov ecx, edi
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x3c]
sar eax, 2
push eax
call fcn.004041c0
mov ecx, dword [ebp - 0x3c]
mov esi, ecx
cmp ecx, dword [ebp - 0x38]
je 0x56ead4
mov ecx, dword [ebp - 0x2c]
mov eax, 0x92492493
sub ecx, ebx
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov ecx, dword [esi]
mov edi, eax
sar edi, 2
cmp dword [ebp - 0x1c], ecx
jbe 0x56eaf0
lea eax, [ecx*8]
sub eax, ecx
lea eax, [ebx + eax*4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x4c0]
mov ebx, dword [eax + 0x4bc]
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jbe 0x56eaf0
lea eax, [edi*8]
sub eax, edi
mov edi, dword [ebx + eax*4]
sub edi, 0x10
lea ebx, [ebx + eax*4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x56ea8f
cmp dword [edi + 0xc], 0
jl 0x56ea84
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x56ea84
push edx
call fcn.004035b0
mov dword [ebp - 0x20], eax
lea ecx, [edi + 0xc]
add esp, 4
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x56ea7a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x56ea78
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x56ea78
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [ebx], eax
jmp 0x56ea8f
call edx
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [ebx], eax
jmp 0x56ea8f
push dword [ecx - 0xc]
push ecx
mov ecx, ebx
call fcn.00403620
mov edi, dword [ebp - 0x10]
add esi, 4
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x30]
add eax, 4
mov dword [ebp - 0x14], eax
cmp esi, dword [ebp - 0x38]
jne 0x56e9b5
mov ecx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x24]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x56eb3b
mov eax, dword [ebp - 0x34]
sub eax, ecx
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x56eafa
call fcn.0054a598
push str.invalid_vector_T__subscript
call fcn.00545b0e
shl eax, 2
cmp eax, 0x1000
jb 0x56eb32
test cl, 0x1f
je 0x56eb0e
call fcn.0054a598
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x56eb1a
call fcn.0054a598
sub ecx, eax
cmp ecx, 4
jae 0x56eb26
call fcn.0054a598
cmp ecx, 0x23
jbe 0x56eb30
call fcn.0054a598
mov ecx, eax
push ecx
call fcn.0040e5b0
add esp, 4
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x120], 0xd0d
jne 0x56ebbf
mov ecx, dword [ebp - 0x2c]
mov eax, 0x92492493
sub ecx, ebx
imul ecx
mov eax, 0x92492493
add edx, ecx
mov ecx, dword [edi + 4]
sub ecx, dword [edi]
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
je 0x56ebbf
mov eax, ebx
mov dword [ebp - 0x18], 0
sub eax, ecx
xor edi, edi
mov dword [ebp - 0x24], eax
test ebx, ebx
jle 0x56ebbf
mov esi, dword [ebp - 0x30]
cmp ebx, edi
jbe 0x56eaf0
cmp byte [esi + 0x1a], 0
je 0x56ebb7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x24], eax
jle 0x56ebbf
inc edi
add esi, 0x1c
cmp ebx, edi
jg 0x56eb97
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x56ec4a
push dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
push ecx
mov ecx, ebx
call fcn.00405440
mov ecx, dword [ebp - 0x28]
mov eax, 0x92492493
sub ecx, ebx
add esp, 8
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 0x9249249
jbe 0x56ec00
call fcn.0054a598
lea eax, [ecx*8]
sub eax, ecx
shl eax, 2
cmp eax, 0x1000
jb 0x56ec41
test bl, 0x1f
je 0x56ec1d
call fcn.0054a598
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x56ec29
call fcn.0054a598
sub ebx, eax
cmp ebx, 4
jae 0x56ec35
call fcn.0054a598
cmp ebx, 0x23
jbe 0x56ec3f
call fcn.0054a598
mov ebx, eax
push ebx
call fcn.0040e5b0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret