Function at 0x508fa0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 8
push 0
push 0
dec ecx
jne 0x508fa9
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004055e4
mov eax, dword [ebp - 8]
call fcn.004055e4
xor eax, eax
push ebp
push 0x50934c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x19], 0
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00409d80
cmp dword [ebp - 0x28], 0
je 0x509324
mov eax, dword [ebp - 4]
mov edx, 0x509368
call fcn.0040558c
je 0x509324
xor edx, edx
push ebp
push 0x5092ef
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 8]
call fcn.0040aae4
push dword [ebp - 0x2c]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 8]
call fcn.0040ab18
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
xor edx, edx
call fcn.0040aa50
push dword [ebp - 0x30]
push 0x509378
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 8]
call fcn.0040ab50
push dword [ebp - 0x38]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004054f8
mov eax, dword [ebp - 0x10]
call fcn.0040a750
test al, al
je 0x50907a
mov eax, dword [ebp - 0x10]
call fcn.004055f4
push eax
call sub.kernel32.dll_DeleteFileA
dec bl
je 0x50908c
sub bl, 7
je 0x5091f8
jmp 0x509291
xor eax, eax
push ebp
push 0x5091f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4d02e0]
call fcn.00474720
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
call fcn.004d2490
add eax, 0x8c
mov edx, 0x509384
call fcn.004051b8
mov eax, dword [ebp - 0x20]
call fcn.004d2490
add eax, 0x80
mov edx, 0x509394
call fcn.004051b8
mov edx, 0x7d0
mov eax, dword [ebp - 0x20]
call fcn.004821e8
mov edx, 0x7d0
mov eax, dword [ebp - 0x20]
call fcn.00482200
push 0x5093a4
push dword [ebp - 4]
push 0x5093b4
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.004054f8
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 0x20]
call fcn.004d0a38
push 0xffff
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x41b828]
call fcn.00420728
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x5091c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x20]
call fcn.004d2490
add eax, 0x60
mov edx, 0x5093d8
call fcn.004051b8
mov eax, dword [ebp - 0x20]
call fcn.004d2490
add eax, 4
mov edx, 0x5093d8
call fcn.004051b8
push 0x5093a4
push dword [ebp - 4]
push 0x5093ec
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.004054f8
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.004d0840
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x5091a4
cmp eax, 0x64
seta al
jmp 0x5091a7
setg al
mov byte [ebp - 0x19], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5091c7
mov eax, dword [ebp - 0x24]
call fcn.00404248
ret
lea eax, [ebp - 0x14]
mov edx, 0x509384
call fcn.004051fc
lea eax, [ebp - 0x18]
mov edx, 0x509384
call fcn.004051fc
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.00505328
push 0xffff
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x41b828]
call fcn.00420728
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x50928a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x24]
push eax
push 0x5093a4
push dword [ebp - 4]
push 0x509418
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.004054f8
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00505818
mov byte [ebp - 0x19], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509291
mov eax, dword [ebp - 0x24]
call fcn.00404248
ret
cmp byte [ebp - 0x19], 0
je 0x5092cb
xor eax, eax
movzx edx, byte [ebp + 8]
sub dl, 1
jb 0x5092a6
je 0x5092b8
jmp 0x5092c8
mov ecx, 0x50943c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.004e51d4
jmp 0x5092c8
mov ecx, 0x50945c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.004e51d4
mov byte [ebp - 0x19], al
mov eax, dword [ebp - 0x10]
call fcn.0040a750
test al, al
je 0x5092e5
mov eax, dword [ebp - 0x10]
call fcn.004055f4
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x509324
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509353
lea eax, [ebp - 0x48]
mov edx, 9
call fcn.00405188
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00405188
ret