Function at 0x58f870
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x18
push 0
push 0
dec ecx
jne 0x58f879
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x590494
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x21], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x478], 0
mov dword [eax + 0x47c], 0
xor edx, edx
push ebp
push 0x5903bb
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x5a8044]
mov eax, dword [eax]
mov edx, 0x5904b4
call fcn.005792e8
mov eax, dword [0x5a818c]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.004f7798
test bl, bl
jne 0x58f926
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x450]
call fcn.00406fa4
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
mov edx, 0x5904fc
call fcn.0040725c
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00592068
mov eax, dword [0x5a7f54]
mov eax, dword [eax]
call fcn.004fa200
mov eax, dword [ebp - 4]
cmp byte [eax + 0x443], 0
je 0x59034e
mov eax, dword [0x5a8044]
mov eax, dword [eax]
mov edx, 0x590520
call fcn.005792e8
test bl, bl
je 0x58f9bc
push 0x590560
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x468]
call fcn.00406fa4
push dword [ebp - 0x44]
push 0x5905cc
push 0x5905e0
mov eax, dword [0x5a8044]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
push dword [eax + 0x20c]
push dword [eax + 0x208]
lea eax, [ebp - 0x48]
call fcn.004140d0
push dword [ebp - 0x48]
lea eax, [ebp - 0x40]
mov edx, 5
call fcn.00407340
mov edx, dword [ebp - 0x40]
mov eax, dword [0x5a8044]
mov eax, dword [eax]
call fcn.005792e8
jmp 0x590385
mov eax, dword [0x5a8044]
mov eax, dword [eax]
mov edx, 0x590624
call fcn.005792e8
mov ecx, 0x59068c
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00592068
mov eax, dword [ebp - 4]
cmp dword [eax + 0x470], 0
setne byte [ebp - 0x31]
lea ecx, [ebp - 0x4c]
mov eax, dword [0x5a8044]
mov eax, dword [eax]
mov edx, dword [ebp + 8]
call fcn.0057b9a4
push dword [ebp - 0x4c]
push 0x5906d4
push 0x5906e4
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x450]
call fcn.00406fa4
push dword [ebp - 0x50]
mov eax, dword [ebp - 4]
add eax, 0x454
mov edx, 4
call fcn.00407340
cmp byte [ebp - 0x31], 0
je 0x58fac7
lea edx, [ebp - 0x18]
mov eax, dword [0x5a8044]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
call fcn.0056a84c
lea ecx, [ebp - 0x54]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x454]
mov eax, dword [0x5a8044]
mov eax, dword [eax]
call fcn.0057b9a4
push dword [ebp - 0x54]
push 0x5906d4
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x46c]
call fcn.00406fa4
push dword [ebp - 0x58]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407340
lea ecx, [ebp - 0x5c]
mov eax, dword [0x5a8044]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
call fcn.0057b9a4
push dword [ebp - 0x5c]
push 0x5906d4
lea eax, [ebp - 0x60]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x46c]
call fcn.00406fa4
push dword [ebp - 0x60]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00407340
mov eax, dword [ebp - 4]
push dword [eax + 0x454]
push 0x5906d4
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x458]
call fcn.00406fa4
push dword [ebp - 0x64]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00407340
mov ecx, 0x590700
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00592068
xor eax, eax
push ebp
push 0x58fb44
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x454]
call fcn.004148e4
test al, al
je 0x58fb3a
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x454]
mov eax, dword [0x5a8044]
mov eax, dword [eax]
call fcn.00580684
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x58fb4e
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x454]
mov eax, dword [0x5a8044]
mov eax, dword [eax]
call fcn.0057e0e0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x454]
call fcn.004148e4
test al, al
jne 0x58fc14
mov byte [ebp - 0x21], 0
mov eax, dword [0x5a818c]
mov eax, dword [eax]
xor edx, edx
call fcn.004f7798
push 0x590764
mov eax, dword [ebp - 4]
push dword [eax + 0x454]
push 0x5905cc
push 0x5907b0
lea eax, [ebp - 0x68]
mov edx, 4
call fcn.00407340
mov edx, dword [ebp - 0x68]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.00592068
push 0x10
lea edx, [ebp - 0x6c]
mov eax, dword [0x5a7f54]
mov eax, dword [eax]
call fcn.004f9c58
mov eax, dword [ebp - 0x6c]
push eax
push 0x590764
mov eax, dword [ebp - 4]
push dword [eax + 0x454]
push 0x590838
push 0x5907b0
lea eax, [ebp - 0x70]
mov edx, 4
call fcn.00407340
mov edx, dword [ebp - 0x70]
mov eax, dword [0x5a8044]
mov eax, dword [eax]
pop ecx
call fcn.00578aa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x590469
mov ecx, 0x590850
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00592068
mov eax, dword [ebp - 8]
call fcn.0041489c
test al, al
je 0x58fcea
mov eax, dword [ebp - 8]
call fcn.00406e14
push eax
call sub.kernel32.dll_DeleteFileW
mov eax, dword [ebp - 8]
call fcn.0041489c
test al, al
je 0x58fcea
mov byte [ebp - 0x21], 0
mov eax, dword [0x5a818c]
mov eax, dword [eax]
xor edx, edx
call fcn.004f7798
push 0x5908ac
push dword [ebp - 8]
push 0x5908d4
push 0x5905cc
push 0x5907b0
lea eax, [ebp - 0x74]
mov edx, 5
call fcn.00407340
mov edx, dword [ebp - 0x74]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.00592068
push 0x10
lea edx, [ebp - 0x78]
mov eax, dword [0x5a7f54]
mov eax, dword [eax]
call fcn.004f9c58
mov eax, dword [ebp - 0x78]
push eax
push 0x5908ac
push dword [ebp - 8]
push 0x5908d4
push 0x590838
push 0x5907b0
lea eax, [ebp - 0x7c]
mov edx, 5
call fcn.00407340
mov edx, dword [ebp - 0x7c]
mov eax, dword [0x5a8044]
mov eax, dword [eax]
pop ecx
call fcn.00578aa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x590469
mov ecx, 0x590944
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00592068
mov eax, dword [0x5a7f54]
mov eax, dword [eax]
call fcn.004fa200
push 0xff00
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x42ea78]
call fcn.0043a9fc
mov dword [ebp - 0x28], eax
xor edx, edx
push ebp
push 0x58fdb2
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x58fd80
push dword fs:[edx]
mov dword fs:[edx], esp
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x45c]
test eax, eax
je 0x58fd56
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x45c]
mov ecx, eax
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x58fd8f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58fdb9
mov eax, dword [ebp - 0x28]
call fcn.00404f5c
mov eax, dword [ebp - 4]
add eax, 0x45c
call fcn.004061fc
ret
mov byte [ebp - 0x21], 0
mov eax, dword [0x5a818c]
mov eax, dword [eax]
xor edx, edx
call fcn.004f7798
mov eax, dword [ebp - 4]
call fcn.0058f470
mov eax, dword [0x5a8044]
mov eax, dword [eax]
mov cl, 1
xor edx, edx
call fcn.005786f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x590469
mov eax, dword [0x5a7f54]
mov eax, dword [eax]
call fcn.004fa200
xor ecx, ecx
mov edx, 0x591060
mov eax, dword [ebp - 4]
call fcn.00592068
mov eax, dword [0x5a818c]
mov eax, dword [eax]
xor edx, edx
call fcn.004f7798
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x590469
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59049b
lea eax, [ebp - 0xc4]
mov edx, 0x24
call fcn.00406d80
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.00406d80
ret