Function at 0x580860
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x18
push 0
push 0
dec ecx
jne 0x580868
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5812d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x47121c]
call fcn.00476d94
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x18]
mov eax, dword [ebp - 4]
lea edx, [eax + 0x14]
mov eax, dword [ebp - 4]
call fcn.005812f4
xor eax, eax
push ebp
push 0x5808e5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x20]
mov eax, dword [ebp - 4]
lea edx, [eax + 0x1c]
mov eax, dword [ebp - 4]
call fcn.005812f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5808ef
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x118], 0
je 0x580907
cmp byte [eax + 0x119], 0
jne 0x580937
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
cmp byte [edx + 0x17c], 0
je 0x58091f
cmp byte [edx + 0x17d], 0
jne 0x580937
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
cmp byte [ecx + 0x1bc], 0
je 0x580943
cmp byte [ecx + 0x1bd], 0
je 0x580943
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0058869c
jmp 0x58094d
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0058869c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xc]
cmp byte [ebx + 0x118], 0
je 0x580ad7
cmp dword [ebx + 0x108], 0
je 0x5809be
mov eax, dword [ebx + 0x10c]
call fcn.00406580
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00406580
push eax
mov eax, dword [ebx + 0x110]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x108]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
lea eax, [ebp - 0x20]
call fcn.004068c8
mov eax, dword [ebp - 0x20]
call fcn.00406580
mov ecx, eax
mov edx, 0x5812e4
xor eax, eax
call fcn.0050f500
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x114]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x580ad7
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x114]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
lea eax, [ebp - 0x24]
call fcn.004068c8
mov eax, dword [ebp - 0x24]
call fcn.0045cf74
test al, al
je 0x580acb
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x114]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
lea eax, [ebp - 0x2c]
call fcn.004068c8
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp - 0x34]
call fcn.00406580
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x580acb
xor eax, eax
push ebp
push 0x580ac1
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x114]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
lea eax, [ebp - 0x38]
call fcn.004068c8
mov eax, dword [ebp - 0x38]
call fcn.00406580
mov edx, 0x5812f0
mov ecx, 1
call fcn.00578164
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x580acb
inc dword [ebp - 0xc]
dec dword [ebp - 0x18]
jne 0x5809e3
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xc]
cmp byte [ebx + 0x17c], 0
je 0x580cba
cmp byte [ebx + 0x130], 0
je 0x580b3d
mov eax, dword [ebx + 0x168]
call fcn.00406580
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00406580
push eax
push 1
mov ecx, dword [ebx + 0x164]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
lea eax, [ebp - 0x40]
call fcn.004068c8
mov eax, dword [ebp - 0x40]
call fcn.00406580
mov ecx, eax
mov edx, 0x5812e4
xor eax, eax
call fcn.0050f500
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xc]
cmp dword [ebx + 0x16c], 0
je 0x580ba1
mov eax, dword [ebx + 0x170]
call fcn.00406580
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00406580
push eax
mov eax, dword [ebx + 0x174]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x16c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
lea eax, [ebp - 0x44]
call fcn.004068c8
mov eax, dword [ebp - 0x44]
call fcn.00406580
mov ecx, eax
mov edx, 0x5812e4
xor eax, eax
call fcn.0050f500
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x178]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x580cba
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x178]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
lea eax, [ebp - 0x48]
call fcn.004068c8
mov eax, dword [ebp - 0x48]
call fcn.0045cf74
test al, al
je 0x580cae
lea ecx, [ebp - 0x54]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x178]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
lea eax, [ebp - 0x50]
call fcn.004068c8
mov ebx, dword [ebp - 0x50]
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp - 0x34]
call fcn.00406580
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x580cae
xor eax, eax
push ebp
push 0x580ca4
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x178]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
lea eax, [ebp - 0x58]
call fcn.004068c8
mov eax, dword [ebp - 0x58]
call fcn.00406580
mov edx, 0x5812f0
mov ecx, 1
call fcn.00578164
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x580cae
inc dword [ebp - 0xc]
dec dword [ebp - 0x18]
jne 0x580bc6
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xc]
cmp byte [ebx + 0x1bc], 0
je 0x580d27
cmp dword [ebx + 0x1b0], 0
je 0x580d27
mov eax, dword [ebx + 0x1b4]
call fcn.00406580
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00406580
push eax
mov eax, dword [ebx + 0x1b8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x1b0]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
lea eax, [ebp - 0x60]
call fcn.004068c8
mov eax, dword [ebp - 0x60]
call fcn.00406580
mov ecx, eax
mov edx, 0x5812e4
xor eax, eax
call fcn.0050f500
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x190]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x5810c4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x190]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x580f1d
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x64]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x190]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x64]
or edx, 0xffffffff
call fcn.0045cac0
mov ebx, eax
test ebx, ebx
jl 0x580f11
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x180]
cmp ebx, dword [eax + 8]
jge 0x580f11
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x180]
mov edx, ebx
call fcn.0047374c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x38], 0
je 0x580e1a
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c]
call fcn.00406580
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00406580
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1b8]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x38]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
lea eax, [ebp - 0x68]
call fcn.004068c8
mov eax, dword [ebp - 0x68]
call fcn.00406580
mov ecx, eax
mov edx, 0x5812e4
xor eax, eax
call fcn.0050f500
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x580f11
inc eax
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x70]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x70]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
lea eax, [ebp - 0x6c]
call fcn.004068c8
mov eax, dword [ebp - 0x6c]
call fcn.0045cf74
test al, al
je 0x580f08
lea ecx, [ebp - 0x78]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
lea eax, [ebp - 0x74]
call fcn.004068c8
mov ebx, dword [ebp - 0x74]
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp - 0x34]
call fcn.00406580
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x580f08
xor eax, eax
push ebp
push 0x580efe
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x80]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x80]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
lea eax, [ebp - 0x7c]
call fcn.004068c8
mov eax, dword [ebp - 0x7c]
call fcn.00406580
mov edx, 0x5812f0
mov ecx, 1
call fcn.00578164
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x580f08
dec dword [ebp - 0x1c]
jne 0x580e32
inc dword [ebp - 0xc]
dec dword [ebp - 0x18]
jne 0x580d65
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xc]
cmp dword [ebx + 0x188], 0
je 0x580f87
mov eax, dword [ebx + 0x18c]
call fcn.00406580
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00406580
push eax
mov eax, dword [ebx + 0x1b8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x188]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
lea eax, [ebp - 0x84]
call fcn.004068c8
mov eax, dword [ebp - 0x84]
call fcn.00406580
mov ecx, eax
mov edx, 0x5812e4
xor eax, eax
call fcn.0050f500
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x194]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x5810c4
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x8c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x194]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
lea eax, [ebp - 0x88]
call fcn.004068c8
mov eax, dword [ebp - 0x88]
call fcn.0045cf74
test al, al
je 0x5810b8
lea ecx, [ebp - 0x94]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x194]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x94]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
lea eax, [ebp - 0x90]
call fcn.004068c8
mov ebx, dword [ebp - 0x90]
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp - 0x34]
call fcn.00406580
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x5810b8
xor eax, eax
push ebp
push 0x5810ae
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x9c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x194]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x9c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
lea eax, [ebp - 0x98]
call fcn.004068c8
mov eax, dword [ebp - 0x98]
call fcn.00406580
mov edx, 0x5812f0
mov ecx, 1
call fcn.00578164
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5810b8
inc dword [ebp - 0xc]
dec dword [ebp - 0x18]
jne 0x580fac
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x581143
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
push 0x5812f0
lea ecx, [ebp - 0xa4]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0xa0]
call fcn.0045d3c0
mov eax, dword [ebp - 0xa0]
call fcn.00406580
push eax
push 1
lea ecx, [ebp - 0xa8]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0xa8]
call fcn.00406580
mov ecx, eax
mov edx, 0x5812e4
xor eax, eax
call fcn.0050f500
inc dword [ebp - 0xc]
dec dword [ebp - 0x18]
jne 0x5810dc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c0]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x581280
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0xb0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c0]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0xb0]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
lea eax, [ebp - 0xac]
call fcn.004068c8
mov eax, dword [ebp - 0xac]
call fcn.0045cf74
test al, al
je 0x581274
lea ecx, [ebp - 0xb8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c0]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0xb8]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
lea eax, [ebp - 0xb4]
call fcn.004068c8
mov ebx, dword [ebp - 0xb4]
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp - 0x34]
call fcn.00406580
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x581274
xor eax, eax
push ebp
push 0x58126a
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0xc0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c0]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0xc0]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
lea eax, [ebp - 0xbc]
call fcn.004068c8
mov eax, dword [ebp - 0xbc]
call fcn.00406580
mov edx, 0x5812f0
mov ecx, 1
call fcn.00578164
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x581274
inc dword [ebp - 0xc]
dec dword [ebp - 0x18]
jne 0x581168
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp byte [eax + 4], 0
je 0x5812a3
cmp dword [ebp - 8], 2
je 0x5812a3
cmp byte [eax + 0x1bc], 0
je 0x5812a3
mov eax, dword [ebp - 4]
call fcn.0057fbb8
mov eax, dword [ebp - 0x10]
call fcn.004042e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5812dd
lea eax, [ebp - 0xc0]
mov edx, 0x23
call fcn.004064ec
lea eax, [ebp - 0x30]
mov edx, 5
call fcn.004064ec
ret