Function at 0x58450c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x584515
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
call fcn.004064dc
xor eax, eax
push ebp
push 0x584845
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0045cf74
test al, al
je 0x58481d
mov dl, 1
mov eax, dword [0x47121c]
call fcn.00476d94
mov dword [ebp - 0x30], eax
mov dl, 1
mov eax, dword [0x471590]
call fcn.004042b8
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x84]
call fcn.00406548
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x80]
call fcn.00406548
xor ecx, ecx
mov dl, 1
mov eax, dword [0x51a788]
call fcn.0051ab04
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.0045d3c0
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.0046491c
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x28]
add eax, 0x88
call fcn.004064f4
mov eax, dword [ebp - 0x28]
add eax, 0x8c
mov edx, 0x584868
call fcn.004064f4
xor edx, edx
push ebp
push 0x5847e1
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
call fcn.0051abd8
test al, al
je 0x5847d7
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0x44]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
call fcn.0051c448
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x5847cf
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 5], 0
jne 0x5847cf
movzx eax, byte [0x58488c]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x48]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x48]
mov ecx, 0x58489c
mov edx, 0x5848ac
call fcn.00464fc8
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x18]
call fcn.0045d4bc
mov dword [ebp - 0x38], 0xffffffff
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x5846ad
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x4c]
mov edx, ebx
mov eax, dword [ebp - 0x30]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x14]
call fcn.0045be80
test eax, eax
jne 0x5846a9
mov dword [ebp - 0x38], ebx
jmp 0x5846ad
inc ebx
dec esi
jne 0x584688
cmp dword [ebp - 0x38], 0
jl 0x5847c3
mov eax, dword [ebp - 0x34]
call fcn.00477620
lea ecx, [ebp - 0x50]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
call fcn.0051bc54
xor eax, eax
push ebp
push 0x58471a
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x58]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 8]
call fcn.004068c8
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x34]
call fcn.0047759c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x584724
lea ecx, [ebp - 0x60]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 8]
call fcn.004068c8
mov eax, dword [ebp - 0x5c]
call fcn.0045cf74
test al, al
je 0x5847c3
lea ecx, [ebp - 0x68]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 8]
call fcn.004068c8
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x6c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
call fcn.004068c8
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x84]
lea eax, [ebp - 0x70]
mov ecx, dword [ebp - 0x18]
call fcn.004068c8
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x10]
call fcn.0045d3c0
mov eax, dword [ebp - 0x10]
call fcn.0045cfbc
test al, al
jne 0x5847c3
mov eax, dword [ebp - 0x10]
call fcn.0045cfe0
inc dword [ebp - 0x2c]
dec dword [ebp - 0x3c]
jne 0x58462b
mov eax, dword [ebp - 0x28]
call fcn.0051b44c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5847f7
mov eax, dword [ebp - 0x28]
call fcn.004042e8
mov eax, dword [ebp - 0x30]
call fcn.004042e8
mov eax, dword [ebp - 0x34]
call fcn.004042e8
mov eax, dword [ebp - 4]
call fcn.00406580
push eax
call sub.kernel32.dll_DeleteFileW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58484c
lea eax, [ebp - 0x70]
mov edx, 0xd
call fcn.004064ec
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004064ec
ret