Function at 0x406e70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443369
mov eax, dword fs:[0]
push eax
mov eax, 0x1006c
call fcn.00424ef0
mov eax, dword [0x459054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10074], ebx
cmp dword [ebx + 0x260], 8
lea eax, [ebx + 0x24c]
mov dword [ebp - 0x10078], eax
jb 0x406ec1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x10044
lea eax, [ebp - 0x1006c]
push 0
push eax
call fcn.00427f80
lea eax, [ebp - 0x10030]
mov dword [ebp - 0x1006c], 0
mov dword [ebp - 0x1003c], eax
lea esi, [ebp - 0x10030]
neg eax
mov dword [ebp - 0x10068], 0
and eax, 3
mov dword [ebp - 0x1005c], 0
add esp, 0xc
mov dword [ebp - 0x10058], 0
add eax, esi
mov dword [ebp - 0x10054], 0
mov dword [ebp - 0x10038], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x1004c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x10034], eax
mov dword [ebp - 4], 0
mov esi, str.xml_version_1.0__encoding_UTF_8_
nop dword [eax]
inc esi
cmp byte [esi], 0
jne 0x406f60
sub esi, str.xml_version_1.0__encoding_UTF_8_
lea ecx, [ebp - 0x1003c]
inc esi
push esi
call fcn.00408140
mov edi, eax
test esi, esi
je 0x406f9e
mov edx, str.xml_version_1.0__encoding_UTF_8_
mov ecx, edi
sub edx, edi
nop dword [eax + eax]
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub esi, 1
jne 0x406f90
push 0
push 0
push 0
push edi
push 7
lea ecx, [ebp - 0x1003c]
call fcn.004081c0
cmp dword [ebp - 0x10054], 0
je 0x406fcf
mov ecx, dword [ebp - 0x10050]
mov dword [eax + 0x28], ecx
mov ecx, dword [ebp - 0x10050]
mov dword [ecx + 0x2c], eax
jmp 0x406fdc
mov dword [eax + 0x28], 0
mov dword [ebp - 0x10054], eax
push 0
push 0
push 0
mov dword [ebp - 0x10050], eax
lea ecx, [ebp - 0x1006c]
push str.list
mov dword [eax + 0x10], ecx
lea ecx, [ebp - 0x1003c]
push 1
mov dword [eax + 0x2c], 0
call fcn.004081c0
mov edi, eax
mov dword [ebp - 0x10070], edi
call fcn.00401570
add eax, 0x70
cmp dword [eax + 0x14], 0x10
jb 0x407022
mov eax, dword [eax]
push eax
push 0x445490
lea eax, [ebp - 0x1006c]
push edi
push eax
call fcn.0040c290
mov esi, dword [ebx + 0x264]
add esp, 0x10
cmp esi, dword [ebx + 0x268]
je 0x407155
lea edi, [esi + 0x24]
nop dword [eax]
cmp dword [edi + 0x30], 0
je 0x40713d
cmp dword [edi], 0
je 0x40713d
cmp dword [esi], 0
je 0x40713d
push 0
push 0
push 0
push str.Item
push 1
lea ecx, [ebp - 0x1003c]
call fcn.004081c0
mov ebx, eax
mov eax, dword [ebp - 0x10070]
cmp dword [eax + 0x18], 0
je 0x4070a0
mov ecx, dword [eax + 0x1c]
mov dword [ebx + 0x28], ecx
mov ecx, dword [eax + 0x1c]
mov dword [ecx + 0x2c], ebx
jmp 0x4070aa
mov dword [ebx + 0x28], 0
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x2c], 0
cmp dword [edi + 4], 0x10
jb 0x4070c2
mov eax, dword [edi - 0x10]
jmp 0x4070c5
lea eax, [edi - 0x10]
push eax
push 0x445440
lea eax, [ebp - 0x1006c]
push ebx
push eax
call fcn.0040c290
add esp, 0x10
cmp dword [edi + 0x1c], 0x10
jb 0x4070e6
mov eax, dword [edi + 8]
jmp 0x4070e9
lea eax, [edi + 8]
push eax
push 0x445444
lea eax, [ebp - 0x1006c]
push ebx
push eax
call fcn.0040c290
add esp, 0x10
cmp dword [edi + 0x34], 0x10
jb 0x40710a
mov eax, dword [edi + 0x20]
jmp 0x40710d
lea eax, [edi + 0x20]
push eax
push str.name
lea eax, [ebp - 0x1006c]
push ebx
push eax
call fcn.0040c290
push dword [esi]
lea eax, [ebp - 0x1006c]
push 0x44549c
push ebx
push eax
call fcn.0040c320
mov ebx, dword [ebp - 0x10074]
add esp, 0x20
add esi, 0x74
add edi, 0x74
cmp esi, dword [ebx + 0x268]
jne 0x407050
mov edi, dword [ebp - 0x10070]
cmp dword [ebp - 0x10054], 0
je 0x407172
mov eax, dword [ebp - 0x10050]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x10050]
mov dword [eax + 0x2c], edi
jmp 0x40717f
mov dword [edi + 0x28], 0
mov dword [ebp - 0x10054], edi
mov dword [ebp - 0x10050], edi
lea eax, [ebp - 0x1006c]
mov dword [edi + 0x10], eax
mov dword [edi + 0x2c], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
push 0
push 0
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x10074]
push eax
call fcn.00403b80
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x10078]
call fcn.0040c670
mov ecx, dword [ebp - 0x14]
add esp, 0x1c
mov byte [ebp - 4], 0
mov esi, eax
cmp ecx, 0x10
jb 0x407223
mov edx, dword [ebp - 0x28]
inc ecx
cmp ecx, 0x1000
jb 0x40721a
test dl, 0x1f
je 0x4071f6
call fcn.0042b711
mov eax, dword [edx - 4]
cmp eax, edx
jb 0x407202
call fcn.0042b711
sub edx, eax
cmp edx, 4
jae 0x40720e
call fcn.0042b711
cmp edx, 0x23
jbe 0x407218
call fcn.0042b711
mov edx, eax
push edx
call fcn.004249eb
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea ecx, [ebp - 0x1003c]
mov dword [ebp - 4], 2
call fcn.00408690
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424ea2
mov esp, ebp
pop ebp
ret