Function at 0x492040
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f0
mov eax, dword [0x504f68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x234], ebx
call fcn.0049f040
cmp dword [esi + 0x14], 0x104
jb 0x492080
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3721
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], bl
jne 0x492122
lea ecx, [ebp - 0x25c]
call fcn.004a1130
lea eax, [ebp - 0x25c]
push eax
push esi
call fcn.00491440
add esp, 8
test al, al
je 0x4920e7
cmp byte [ebp - 0x254], bl
je 0x4920e7
cmp dword [esi + 0x18], 8
jb 0x4920bb
mov esi, dword [esi + 4]
jmp 0x4920be
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
lea ecx, [ebp - 0x25c]
setne bl
call fcn.004a1160
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3721
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x18], 8
jb 0x4920f2
mov eax, dword [esi + 4]
jmp 0x4920f5
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x25c]
test eax, eax
je 0x49211d
call fcn.004a1160
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3721
mov esp, ebp
pop ebp
ret
call fcn.004a1160
xor ecx, ecx
push 0x208
push ecx
lea edx, [ebp - 0x20e]
push edx
mov word [ebp - 0x210], cx
call fcn.004b4970
add esp, 0xc
cmp byte [0x50d58c], bl
je 0x49218e
call fcn.0048ffc0
cmp eax, 1
jg 0x49217b
mov ebx, 1
push ebx
push 0x6a
push str.._file_util_win.cc
lea ecx, [ebp - 0x2f0]
call fcn.00490c40
add eax, 4
push str.copying
push eax
call fcn.0046d940
add esp, 8
test bl, 1
je 0x49218e
lea ecx, [ebp - 0x2f0]
and ebx, 0xfffffffe
call fcn.00490680
cmp dword [esi + 0x18], 8
jb 0x492199
mov ecx, dword [esi + 4]
jmp 0x49219c
lea ecx, [esi + 4]
lea edx, [ebp - 0x210]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x4921a2
xor eax, eax
cmp byte [ebp + 0xc], 0
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x210]
mov ecx, 0x414
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 3
mov dword [ebp - 0x228], eax
mov word [ebp - 0x220], cx
jne 0x49221e
mov edx, 0x1494
mov word [ebp - 0x220], dx
cmp byte [0x50d58c], 0
je 0x49226c
call fcn.0048ffc0
cmp eax, 1
jg 0x492259
push 1
push 0x74
push str.._file_util_win.cc
lea ecx, [ebp - 0x2f0]
or ebx, 2
call fcn.00490c40
add eax, 4
push str.Performing_shell_operation
push eax
call fcn.0046d940
add esp, 8
test bl, 2
je 0x49226c
lea ecx, [ebp - 0x2f0]
and ebx, 0xfffffffd
call fcn.00490680
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp byte [0x50d58c], 0
mov esi, eax
je 0x4922ce
call fcn.0048ffc0
cmp eax, 1
jg 0x4922be
push 1
push 0x77
push str.._file_util_win.cc
lea ecx, [ebp - 0x2f0]
or ebx, 4
call fcn.00490c40
push esi
add eax, 4
push str.Done:
push eax
call fcn.0046d940
add esp, 8
mov ecx, eax
call fcn.00468d50
test bl, 4
je 0x4922ce
lea ecx, [ebp - 0x2f0]
call fcn.00490680
cmp dword [ebp - 0x21e], 0
jne 0x49206e
test esi, esi
je 0x4922fe
cmp esi, 2
je 0x4922fe
cmp esi, 0x402
je 0x4922fe
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3721
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004b3721
mov esp, ebp
pop ebp
ret