Function at 0x5d9b00
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62ffb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x19030
call fcn.005e5310
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], esi
call fcn.005d92a0
mov dword [ebp - 0x20], esi
cmp esi, dword [edi + 0xbc]
jge 0x5d9e0d
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x18], bx
mov eax, dword [edi + 0xc4]
lea esi, [esi + esi*2]
shl esi, 2
add eax, esi
mov byte [ebp - 4], 1
mov ecx, dword [eax]
cmp ecx, ebx
jne 0x5d9b70
lea ecx, [eax + 4]
mov eax, str._s.z
test eax, eax
je 0x5d9c34
cmp ecx, ebx
je 0x5d9c34
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040e5b0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00401070
push str._s.z
lea ecx, [ebp - 0x40]
call fcn.00402330
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 3
cmp eax, ebx
jne 0x5d9bb5
lea eax, [ebp - 0x30]
mov edi, dword [ebp - 0x38]
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 0x5d9c16
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 - 0x34]
call fcn.004023b0
push eax
lea ecx, [ebp - 0x40]
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 - 0x40]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00401070
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
test edx, edx
jne 0x5d9c3b
lea edx, [ebp - 0x18]
push 0x6cc290
push edx
call fcn.005cdfb0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x5d9c8f
call fcn.005e7dff
mov eax, dword [edi + 0xc4]
add eax, esi
mov ecx, dword [eax]
test ecx, ecx
je 0x5d9c66
mov eax, ecx
jmp 0x5d9c69
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
je 0x5d9cc4
call fcn.00401070
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
mov esi, eax
jmp 0x5d9b3b
mov eax, dword [edi + 0xc4]
add eax, esi
mov ecx, dword [eax]
test ecx, ecx
jne 0x5d9ca0
lea ecx, [eax + 4]
push 0x6c79ec
push ecx
call fcn.005e683f
mov edi, eax
add esp, 8
test edi, edi
jne 0x5d9cdf
push ebx
call fcn.005ce8d0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
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
push ebx
call fcn.005ce860
add esp, 4
test eax, eax
jne 0x5d9dd0
lea edx, [ebp - 0x19040]
push 0x19000
push edx
push ebx
call fcn.005ce4d0
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x5d9d3a
push edi
call fcn.005e6658
push ebx
call fcn.005ce8d0
add esp, 8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00401070
or eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jle 0x5d9cdf
push edi
push esi
lea eax, [ebp - 0x19040]
push 1
push eax
call fcn.005e66d5
add esp, 0x10
cmp eax, esi
je 0x5d9cdf
call fcn.005e7dff
mov ecx, dword [eax]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
lea edx, [eax + eax*2]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0xc4]
lea eax, [ecx + edx*4]
mov ecx, dword [ecx + edx*4]
test ecx, ecx
jne 0x5d9d7b
lea ecx, [eax + 4]
lea eax, [esi + 0x2800]
cdq
push edx
push eax
push ecx
call fcn.005d9e40
add esp, 0xc
mov esi, 0x755f
test al, al
je 0x5d9d99
mov esi, dword [ebp - 0x28]
push ebx
call fcn.005ce8d0
push edi
call fcn.005e6658
add esp, 8
test esi, esi
jne 0x5d9db1
mov esi, 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00401070
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.005ce8d0
push edi
call fcn.005e6658
mov eax, dword [ebp - 0x1c]
add esp, 8
test eax, eax
jne 0x5d9de9
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00401070
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x20], eax
mov esi, eax
jmp 0x5d9b3b
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