Function at 0x52d2a0
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov dword [esp + 0xc], edx
mov esi, ecx
mov eax, dword [0x72a00c]
xor eax, ebp
mov dword [esp + 0x68], eax
xor eax, eax
dec eax
lea edi, [esp + 0x30]
mov dword [edi + 0x34], eax
mov dword [edi + 0x30], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x20]
push 0x102
push str........._base_files_file_util_win.cc
push str.DoDeleteFile
push ebx
call fcn.0063ced0
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.00635f30
movzx ecx, byte [esi + 0xb]
test cl, cl
mov eax, dword [esi + 4]
mov edx, ecx
cmovs edx, eax
test edx, edx
je 0x52d44d
test cl, cl
jns 0x52d336
mov edi, 0xa1
cmp eax, 0x103
jbe 0x52d336
lea ecx, [esp + 0x30]
call fcn.00635fb0
jmp 0x52d467
mov ecx, esi
push ebx
call fcn.0063df60
movzx eax, byte [esp + 0x2b]
test al, al
jns 0x52d34f
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
test eax, eax
je 0x52d3cc
lea edx, [ebx + eax*2]
add eax, eax
mov edi, ebx
mov dword [esp + 0x10], edx
movzx ecx, word [edi]
cmp ecx, 0x2a
je 0x52d375
cmp ecx, 0x3f
je 0x52d375
add edi, 2
add eax, 0xfffffffe
jne 0x52d35e
mov edi, edx
lea ecx, [esp + 0x20]
call fcn.0063d9e0
cmp edi, dword [esp + 0x10]
je 0x52d3d5
sub edi, ebx
cmp edi, 0xfffffffe
je 0x52d3d5
mov ecx, esi
lea edi, [esp + 0x20]
push edi
call fcn.0063df60
lea ebx, [esp + 0x14]
mov ecx, esi
push ebx
call fcn.0063da40
movzx eax, byte [esp + 0xc]
mov ecx, ebx
mov edx, edi
mov esi, edi
push eax
call fcn.0052df80
add esp, 4
mov edi, eax
mov ecx, ebx
call fcn.0063d9e0
mov ecx, esi
call fcn.0063d9e0
jmp 0x52d45a
lea ecx, [esp + 0x20]
call fcn.0063d9e0
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x52d3df
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x52d43d
mov ebx, eax
test bl, 1
je 0x52d40d
mov eax, ebx
and eax, 0xfffffffe
cmp byte [esi + 0xb], 0
mov ecx, esi
jns 0x52d401
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x52d43d
test bl, 0x10
jne 0x52d423
cmp byte [esi + 0xb], 0
jns 0x52d41a
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x52d439
cmp byte [esp + 0xc], 0
jne 0x52d485
cmp byte [esi + 0xb], 0
jns 0x52d432
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x52d44d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x52d45a
lea ecx, [esp + 0x30]
call fcn.00635fb0
mov bl, 1
jmp 0x52d470
lea ecx, [esp + 0x30]
call fcn.00635fb0
test edi, edi
je 0x52d456
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0066e1f1
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ebx, [esp + 0x20]
mov ecx, ebx
push 0x70a47a
call fcn.0069b560
mov ecx, esi
mov edx, ebx
push 1
call fcn.0052df80
add esp, 4
mov edi, eax
cmp byte [ebx + 0xb], 0
jns 0x52d4b7
push dword [esp + 0x20]
call fcn.0066d8a0
add esp, 4
test edi, edi
jne 0x52d328
jmp 0x52d42a