Function at 0x5d9850
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62ff88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1902c
call fcn.005e5310
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], esi
call fcn.005d9840
mov ecx, ebx
call fcn.005d92a0
xor edi, edi
mov dword [ebp - 0x24], edi
cmp edi, dword [ebx + 0xbc]
jge 0x5d9ac9
xor edx, edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], edx
mov word [ebp - 0x18], si
mov eax, dword [ebx + 0xc4]
lea esi, [edi + edi*2]
shl esi, 2
add eax, esi
mov byte [ebp - 4], 1
mov ecx, dword [eax]
test ecx, ecx
jne 0x5d98c7
lea ecx, [eax + 4]
mov eax, str._s.z
test eax, eax
je 0x5d998b
test ecx, ecx
je 0x5d998b
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040e5b0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00401070
push str._s.z
lea ecx, [ebp - 0x3c]
call fcn.00402330
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 3
test eax, eax
jne 0x5d990c
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
push eax
call fcn.005e519b
lea ebx, [eax + edi + 2]
lea edi, [ebx + ebx]
push edi
call fcn.005fdccd
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x1c], edx
je 0x5d996d
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x30]
call fcn.004023b0
push eax
lea ecx, [ebp - 0x3c]
call fcn.004023b0
push eax
mov eax, dword [ebp - 0x1c]
push ebx
push eax
call fcn.005e512b
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005e519b
add esp, 0x14
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00401070
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
test edx, edx
jne 0x5d9992
lea edx, [ebp - 0x18]
push 0x6ed48c
push edx
call fcn.005cdfb0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x5d9aaf
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0xc4]
add eax, esi
mov ecx, dword [eax]
test ecx, ecx
je 0x5d99bf
mov eax, ecx
jmp 0x5d99c2
add eax, 4
push 0x6cc290
push eax
call fcn.005e683f
mov esi, eax
add esp, 8
test esi, esi
jne 0x5d99f2
push ebx
call fcn.005ce8d0
mov eax, dword [ebp - 0x1c]
add esp, 4
test eax, eax
jne 0x5d99e9
lea eax, [ebp - 0x18]
push eax
jmp 0x5d9aa9
mov edi, dword [ebp - 0x24]
test byte [esi + 0xc], 0x10
jne 0x5d9a80
push esi
push 0x19000
lea eax, [ebp - 0x1903c]
push 1
push eax
call fcn.005e7aae
mov edi, eax
mov al, byte [esi + 0xc]
add esp, 0x10
test al, 0x20
je 0x5d9a61
push ebx
call fcn.005ce8d0
mov eax, dword [ebp - 0x1c]
add esp, 4
test eax, eax
jne 0x5d9a2f
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.005e6658
add esp, 4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00401070
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x5d99ef
lea ecx, [ebp - 0x1903c]
push edi
push ecx
push ebx
call fcn.005ce700
add esp, 0xc
cmp eax, edi
je 0x5d99ef
jmp 0x5d9a1c
push ebx
call fcn.005ce8d0
push esi
call fcn.005e6658
mov eax, dword [ebp - 0x20]
lea edx, [edi + edi*2]
add esp, 8
mov ecx, dword [eax + 0xc4]
lea eax, [ecx + edx*4]
mov ecx, dword [ecx + edx*4]
test ecx, ecx
jne 0x5d9aa8
lea ecx, [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00401070
mov ebx, dword [ebp - 0x20]
inc edi
mov dword [ebp - 0x24], edi
xor esi, esi
jmp 0x5d9894
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret