Function at 0x432830
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c4
mov eax, dword [0x52efc0]
mov dl, byte [ebp + 0xc]
mov ecx, str.DeleteFile.NonRecursive
mov ebx, dword [ebp + 8]
lea esi, [ebp - 0x29c]
xor eax, ebp
test dl, dl
mov dword [ebp - 0x10], eax
mov eax, str.DeleteFile.Recursive
cmovne ecx, eax
mov eax, edx
xor al, 1
mov dword [ebp - 0x2d0], ecx
movzx eax, al
lea eax, [eax + eax*2 + 0x14]
mov dword [ebp - 0x2c8], eax
push 0x16f
push str...._.._base_files_file_util_win.cc
push 0x4e7b76
push esi
call fcn.00435760
add esp, 0x10
lea ecx, [ebp - 0x2c0]
push 0
push esi
call fcn.00449d80
push 0x12c
push str...._.._base_files_file_util_win.cc
push str.DoDeleteFile
push esi
call fcn.00435760
add esp, 0x10
lea ecx, [ebp - 0x2a8]
push 0
push esi
call fcn.00449d80
movzx ecx, byte [ebx + 0xb]
mov eax, dword [ebx + 4]
mov edi, 0
mov dword [ebp - 0x2c4], 0
test cl, cl
mov edx, ecx
cmovs edx, eax
test edx, edx
je 0x432a6a
test cl, cl
jns 0x4328fd
mov edi, 0xa1
cmp eax, 0x103
ja 0x432a6a
mov ecx, ebx
push esi
call fcn.00431140
movzx ecx, byte [ebp - 0x291]
mov eax, dword [ebp - 0x29c]
test cl, cl
mov edx, ecx
jns 0x432920
mov edx, dword [ebp - 0x298]
mov esi, eax
test edx, edx
je 0x4329df
lea edi, [esi + edx*2]
add edx, edx
mov ebx, esi
mov dword [ebp - 0x2cc], eax
nop word cs:[eax + eax]
nop
movzx eax, word [ebx]
cmp ax, 0x3f
je 0x432959
cmp ax, 0x2a
je 0x432959
add ebx, 2
add edx, 0xfffffffe
jne 0x432940
mov ebx, edi
cmp ebx, edi
sete al
sub ebx, esi
cmp ebx, 0xfffffffe
sete bl
or bl, al
mov eax, dword [ebp - 0x2cc]
test cl, cl
js 0x4329e5
test bl, bl
je 0x4329f2
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x432983
mov eax, dword [ecx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x432a54
mov ebx, eax
test bl, 1
je 0x4329bd
mov ecx, dword [ebp + 8]
mov eax, ebx
and eax, 0xfffffffe
cmp byte [ecx + 0xb], 0
jns 0x4329ad
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x432a54
test bl, 0x10
jne 0x432cad
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0xb], 0
mov eax, ebx
jns 0x4329d3
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x432d18
mov bl, 1
test cl, cl
jns 0x432972
push eax
call fcn.004aeac6
add esp, 4
test bl, bl
jne 0x432976
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x29c]
mov ecx, esi
push edi
call fcn.00431140
lea ebx, [ebp - 0x2b4]
mov ecx, esi
push ebx
call fcn.00431a10
movzx eax, byte [ebp + 0xc]
mov ecx, ebx
mov edx, edi
push eax
call fcn.004338f0
add esp, 4
cmp byte [ebp - 0x2a9], 0
mov edi, eax
jns 0x432a3b
push dword [ebp - 0x2b4]
call fcn.004aeac6
add esp, 4
cmp byte [ebp - 0x291], 0
jns 0x432a67
push dword [ebp - 0x29c]
call fcn.004aeac6
add esp, 4
jmp 0x432a67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor edi, edi
or ecx, 1
cmp ecx, 3
cmovne edi, eax
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2a8]
call fcn.00449e80
mov esi, dword [ebp - 0x2d0]
mov eax, dword [ebp - 0x2c8]
test edi, edi
mov dword [ebp - 0x2b4], esi
mov dword [ebp - 0x2b0], eax
je 0x432b47
cmp byte [ebx + 0xb], 0
mov eax, ebx
jns 0x432a9f
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x432aed
test al, 0x10
mov dword [ebp - 0x2c4], 7
je 0x432b47
mov eax, ebx
lea ebx, [ebp - 0x29c]
mov ecx, ebx
push 3
push 0
push eax
call fcn.0045b540
lea eax, [ebp - 0x2a8]
mov ecx, ebx
push eax
call fcn.0045b7e0
cmp byte [ebp - 0x29d], 0
js 0x432b14
sete bl
jmp 0x432b2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 2]
mov dword [ebp - 0x2c4], 4
cmp ecx, 4
jae 0x432b47
mov eax, dword [eax*4 + 0x4e7d0c]
mov dword [ebp - 0x2c4], eax
jmp 0x432b47
cmp dword [ebp - 0x2a4], 0
sete bl
push dword [ebp - 0x2a8]
call fcn.004aeac6
add esp, 4
lea ecx, [ebp - 0x29c]
call fcn.0045b6f0
movzx eax, bl
mov ecx, 6
sub ecx, eax
mov dword [ebp - 0x2c4], ecx
push 0x20
call fcn.004aea96
add esp, 4
lea ebx, [ebp - 0x29c]
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x294], 0x80000020
mov dword [eax + 0x17], 0x2e657461
mov dword [ebp - 0x298], 0x1b
mov dword [eax + 0x14], 0x6174536e
mov dword [eax + 0x10], 0x6f697461
mov dword [eax + 0xc], 0x7265704f
mov dword [eax + 8], 0x74736f50
mov dword [eax + 4], 0x2e73776f
mov dword [eax], 0x646e6957
mov byte [eax + 0x1b], 0
lea eax, [ebp - 0x2b4]
push ebx
push eax
call fcn.00443ef0
add esp, 8
push 8
push dword [ebp - 0x2c4]
push ebx
call fcn.0043a8b0
add esp, 0xc
cmp byte [ebp - 0x291], 0
js 0x432c73
test edi, edi
je 0x432c89
mov eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x2a8], esi
mov dword [ebp - 0x2a4], eax
push 0x20
call fcn.004aea96
add esp, 4
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x294], 0x80000020
mov dword [ebp - 0x298], 0x18
mov dword [eax + 0x14], 0x2e726f72
mov dword [eax + 0x10], 0x72456d65
mov dword [eax + 0xc], 0x74737973
mov dword [eax + 8], 0x656c6946
mov dword [eax + 4], 0x2e73776f
mov dword [eax], 0x646e6957
mov byte [eax + 0x18], 0
push ebx
lea eax, [ebp - 0x2a8]
push eax
call fcn.00443ef0
add esp, 8
push edi
push ebx
call fcn.0043a8e0
add esp, 8
cmp byte [ebp - 0x291], 0
jns 0x432c6f
push dword [ebp - 0x29c]
call fcn.004aeac6
add esp, 4
xor ebx, ebx
jmp 0x432c8b
push dword [ebp - 0x29c]
call fcn.004aeac6
add esp, 4
test edi, edi
jne 0x432bdb
mov bl, 1
lea ecx, [ebp - 0x2c0]
call fcn.00449e80
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004aeb01
mov eax, ebx
add esp, 0x2c4
pop esi
pop edi
pop ebx
pop ebp
ret
cmp byte [ebp + 0xc], 0
mov ebx, dword [ebp + 8]
je 0x432d07
mov dword [ebp - 0x294], 0x1000000
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x29c], 0x2a
lea edx, [ebp - 0x29c]
mov ecx, ebx
push 1
call fcn.004338f0
add esp, 4
cmp byte [ebp - 0x291], 0
mov edi, eax
jns 0x432cff
push dword [ebp - 0x29c]
call fcn.004aeac6
add esp, 4
test edi, edi
jne 0x432a6a
cmp byte [ebx + 0xb], 0
mov eax, ebx
jns 0x432d11
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov edi, 0
jne 0x432a6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor edi, edi
or ecx, 1
cmp ecx, 3
cmovne edi, eax
jmp 0x432a6a