Function at 0x40583b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x41c0b0]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
call fcn.004067b4
test eax, eax
je 0x405aec
push esi
push edi
push dword [ebp + 8]
lea edi, [ebp - 0x46c]
call fcn.00405652
mov eax, dword [ebx + 0x18]
push dword [ebp - 0x46c]
push eax
call fcn.0040ebb0
test eax, eax
pop ecx
pop ecx
je 0x405893
mov esi, ebx
call fcn.004067d7
lea eax, [ebx + 0x18]
call fcn.00401d26
mov edx, dword [ebx + 0x14]
cmp edx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x10]
ja 0x4058c4
jb 0x4058a5
cmp eax, dword [ebp + 0xc]
jae 0x4058c4
mov ecx, dword [ebp + 0xc]
sub ecx, eax
mov eax, dword [ebp + 0x10]
sbb eax, edx
xor edx, edx
cmp eax, edx
jb 0x4058c4
ja 0x405a24
cmp ecx, dword [ebp + 0x14]
ja 0x405a24
and dword [ebp + 8], 0
cmp dword [ebx + 4], 0
jle 0x4059fb
mov esi, dword [ebp + 8]
mov edi, ebx
call fcn.00406836
mov ecx, eax
lea esi, [ebp - 0x470]
call fcn.00401678
mov eax, dword [ebp - 0x470]
xor esi, esi
lea edi, [ebp - 0x468]
mov word [ebp - 0x10], 0x5c
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov word [ebp - 0x218], si
call fcn.004066e1
cmp eax, esi
je 0x40594e
mov esi, dword [ebp + 8]
mov edi, ebx
call fcn.00406836
lea ecx, [ebp - 0x468]
mov esi, eax
call fcn.004066bf
cmp eax, dword [esi + 0x10]
jne 0x40594e
cmp edx, dword [esi + 0x14]
jne 0x40594e
mov esi, dword [ebp + 8]
call fcn.00406836
mov ecx, eax
add ecx, 4
lea eax, [ebp - 0x468]
call fcn.004066a0
jmp 0x4059ca
push str..tmp
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x474]
push eax
call fcn.00405b12
push str..xml
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x478]
push eax
call fcn.00405b12
push dword [ebp - 0x474]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
mov edi, dword [ebp - 0x478]
push edi
call esi
mov eax, dword [ebp + 8]
mov ecx, ebx
call fcn.00406811
dec dword [ebp + 8]
lea eax, [edi - 0xc]
cmp eax, dword [0x41cc24]
je 0x4059b3
push eax
call fcn.0040171a
mov eax, dword [ebp - 0x474]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x4059ca
push eax
call fcn.0040171a
lea eax, [ebp - 0x468]
call fcn.0040678f
mov eax, dword [ebp - 0x470]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x4059ec
push eax
call fcn.0040171a
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebx + 4]
jl 0x4058d2
mov edx, dword [ebx + 0x14]
cmp edx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x10]
ja 0x405a43
jb 0x405a0d
cmp eax, dword [ebp + 0xc]
jae 0x405a43
mov ecx, dword [ebp + 0xc]
sub ecx, eax
mov eax, dword [ebp + 0x10]
sbb eax, edx
xor edx, edx
cmp eax, edx
jb 0x405a43
ja 0x405a24
cmp ecx, dword [ebp + 0x14]
jbe 0x405a43
mov eax, dword [ebp - 0x46c]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x405a3b
push eax
call fcn.0040171a
xor eax, eax
inc eax
jmp 0x405aea
mov eax, ebx
call fcn.00406642
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
add eax, ecx
mov ecx, dword [ebx + 0x10]
xor edx, edx
xor esi, esi
add ecx, eax
mov dword [ebp - 0x47c], eax
mov eax, dword [ebx + 0x14]
adc eax, edx
cmp eax, dword [ebp + 0x10]
jb 0x405aad
jbe 0x405aa8
cmp esi, dword [ebx + 4]
jge 0x405aad
mov edi, ebx
call fcn.00406836
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405a8f
mov eax, esi
mov ecx, ebx
call fcn.00406811
dec esi
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
inc esi
add ecx, dword [ebp - 0x47c]
push 0
pop edx
adc eax, edx
cmp eax, dword [ebp + 0x10]
ja 0x405a6d
jb 0x405aad
cmp ecx, dword [ebp + 0xc]
ja 0x405a6d
mov eax, dword [ebx + 0x10]
add eax, dword [ebp - 0x47c]
mov ebx, dword [ebx + 0x14]
push 0
pop ecx
adc ebx, ecx
cmp ebx, dword [ebp + 0x10]
ja 0x405acf
jb 0x405aca
cmp eax, dword [ebp + 0xc]
jae 0x405acf
xor esi, esi
inc esi
jmp 0x405ad1
xor esi, esi
mov eax, dword [ebp - 0x46c]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x405ae8
push eax
call fcn.0040171a
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0040f289
leave
ret 0x14