Function at 0x5a7a40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x5a7a48
push ebx
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x5a7d21
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.004053e0
mov dword [ebp - 0x20], 0xffffffff
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x58]
call fcn.005a4148
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x5a7cec
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x58]
mov edx, dword [ebp - 0x1c]
call fcn.005a3d04
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x5a7cdf
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x28]
add edx, 4
call fcn.00405644
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
call fcn.0040b5ac
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 4]
call fcn.0040a068
mov eax, dword [ebp - 4]
test eax, eax
je 0x5a7adc
sub eax, 4
mov eax, dword [eax]
dec eax
jle 0x5a7b52
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x44
jne 0x5a7b1e
lea eax, [ebp - 8]
push eax
mov ecx, 0x14
mov edx, 6
mov eax, dword [ebp - 4]
call fcn.004058d8
or edx, 0xffffffff
mov eax, dword [ebp - 8]
call fcn.0040aa64
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x10]
mov edx, 0x5a7d38
mov eax, dword [ebp - 0x14]
call fcn.0040b3a0
jmp 0x5a7b52
lea eax, [ebp - 8]
push eax
mov ecx, 0x14
mov edx, 5
mov eax, dword [ebp - 4]
call fcn.004058d8
or edx, 0xffffffff
mov eax, dword [ebp - 8]
call fcn.0040aa64
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x10]
mov edx, 0x5a7d48
mov eax, dword [ebp - 0x14]
call fcn.0040b3a0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x54]
call fcn.005a42f4
xor edx, edx
push ebp
push 0x5a7cd8
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
call fcn.005a5d2c
test al, al
jne 0x5a7c8d
cmp dword [ebp - 0x10], 0
je 0x5a7cbf
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0040b434
mov eax, dword [ebp - 0xc]
call fcn.0040b004
test al, al
jne 0x5a7ba7
mov eax, dword [ebp - 0xc]
call fcn.0040b028
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
test eax, eax
jne 0x5a7bfb
mov eax, dword [ebp - 0x14]
call fcn.0040afe0
test al, al
je 0x5a7bd2
push 0
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x41aee4]
call fcn.00420754
mov dword [ebp - 0x24], eax
jmp 0x5a7bfe
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0xb
lea edx, [ebp - 0x38]
xor ecx, ecx
mov eax, 0x5a7d58
call fcn.0040c244
mov eax, dword [ebp - 0x30]
mov dl, 1
call fcn.005a4f98
jmp 0x5a7bfe
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x5a7c86
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
call fcn.005a5dd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a7cbf
mov eax, dword [ebp - 0x24]
call fcn.004043dc
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
jne 0x5a7c63
mov eax, dword [ebp - 0x14]
call fcn.00405870
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
mov edx, 0x5a7d80
call fcn.004056f8
mov eax, dword [ebp - 0x3c]
mov dl, 1
call fcn.005a4f98
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x58]
mov edx, dword [ebp - 0x1c]
call fcn.005a3c18
mov edx, 0xd0
mov eax, dword [ebp - 0x28]
call fcn.00402fd0
ret
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
test ebx, ebx
je 0x5a7cbf
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x28]
add edx, 4
call fcn.00405644
mov edx, dword [ebp - 0x40]
mov eax, ebx
call fcn.004209bc
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
call fcn.004043dc
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a7cdf
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x54]
call fcn.005a4300
ret
dec dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x5a7a91
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a7d28
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.00405404
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00405404
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00405404
ret