Function at 0x5a1530
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x19
push 0
push 0
dec ecx
jne 0x5a1539
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00405b18
mov eax, dword [ebp - 8]
call fcn.00405b18
xor eax, eax
push ebp
push 0x5a1882
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [edi + 0x14], 0
lea eax, [ebp - 0xa2]
push eax
call fcn.0040a000
lea edx, [ebp - 0xa8]
lea eax, [ebp - 0xa2]
call fcn.0040a020
mov eax, dword [ebp - 0xa8]
push eax
lea eax, [ebp - 0xac]
call fcn.005a14c8
mov edx, dword [ebp - 0xac]
lea eax, [ebp - 0x10]
pop ecx
call fcn.004059b0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, 0x5a1898
mov eax, dword [ebp - 4]
call fcn.005a0034
cmp al, 2
je 0x5a1857
cmp al, 1
jne 0x5a15e5
mov ecx, 0x5a18b0
mov dl, 1
mov eax, dword [0x4092b4]
call fcn.0040fa8c
call fcn.00404fe8
push 0x40
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x41dee4]
call fcn.00422f9c
mov esi, eax
lea edx, [ebp - 0x92]
mov ecx, 0x10
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
xor ecx, ecx
xor edx, edx
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x35]
mov ecx, dword [ebp - 0x86]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0x21]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x82]
mov ecx, 0x4d
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
jmp 0x5a1834
xor ecx, ecx
mov edx, dword [ebp - 0x41]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x14]
movzx eax, byte [ebp - 0x42]
sub al, 1
jb 0x5a1673
je 0x5a1753
dec al
je 0x5a17b5
dec al
je 0x5a16ed
jmp 0x5a1816
mov dl, 1
mov eax, dword [0x41dfe8]
call fcn.00404704
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x3d]
xor edx, edx
push edx
push eax
mov edx, esi
mov eax, dword [ebp - 0x14]
call fcn.00422d84
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov dl, 1
mov eax, dword [0x430a00]
call fcn.00437530
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x54]
lea eax, [ebp - 0xb0]
lea edx, [ebp - 0x82]
mov ecx, 0x40
call fcn.00405908
mov edx, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edi + 4]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
call fcn.00404734
jmp 0x5a1816
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x3d]
call fcn.00405db8
lea eax, [ebp - 0xc]
call fcn.00405b88
mov edx, eax
mov ecx, dword [ebp - 0x3d]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0xb8]
lea edx, [ebp - 0x82]
mov ecx, 0x40
call fcn.00405908
push dword [ebp - 0xb8]
push 0x5a18d4
push dword [ebp - 0xc]
lea eax, [ebp - 0xb4]
mov edx, 3
call fcn.00405a2c
mov edx, dword [ebp - 0xb4]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x5a1816
lea edx, [ebp - 0x1c]
mov ecx, dword [ebp - 0x3d]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0xc0]
lea edx, [ebp - 0x82]
mov ecx, 0x40
call fcn.00405908
push dword [ebp - 0xc0]
push 0x5a18d4
lea edx, [ebp - 0xc4]
mov eax, dword [ebp - 0x1c]
call fcn.0040aa9c
push dword [ebp - 0xc4]
lea eax, [ebp - 0xbc]
mov edx, 3
call fcn.00405a2c
mov edx, dword [ebp - 0xbc]
mov eax, dword [edi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x5a1816
lea edx, [ebp - 0x1d]
mov ecx, dword [ebp - 0x3d]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [ebp - 0xcc]
lea edx, [ebp - 0x82]
mov ecx, 0x40
call fcn.00405908
push dword [ebp - 0xcc]
push 0x5a18d4
lea edx, [ebp - 0xd0]
movzx eax, byte [ebp - 0x1d]
call fcn.0040aa9c
push dword [ebp - 0xd0]
lea eax, [ebp - 0xc8]
mov edx, 3
call fcn.00405a2c
mov edx, dword [ebp - 0xc8]
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor ecx, ecx
mov edx, dword [ebp - 0x39]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x82]
mov ecx, 0x4d
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0x39], 0
jne 0x5a1648
mov eax, esi
call fcn.00404734
mov eax, dword [ebp - 0x10]
call fcn.00405b28
push eax
call sub.kernel32.dll_DeleteFileA
mov byte [edi + 0x14], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a1889
lea eax, [ebp - 0xd0]
mov edx, 0xb
call fcn.004056bc
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004056bc
ret