Function at 0x43879a
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x48ec38]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov edi, edx
xor ebx, ebx
mov dword [esp + 0x28], edi
mov esi, ecx
mov dword [esp + 0x24], ebx
call fcn.00437b92
mov dword [esp + 0x30], eax
test eax, eax
je 0x438ca2
and dword [esp + 0x10], ebx
lea edx, [esp + 0x10]
mov ecx, eax
call fcn.0043727c
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
je 0x438c6b
test edi, 1
je 0x438801
xor eax, eax
jmp 0x438804
push 7
pop eax
push 0
push 0x2200000
push 3
push 0
push eax
push 0x10180
push esi
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x438c0b
and dword [esp + 0x14], ebx
mov dword [esp + 0x18], 1
test edi, 0x20
je 0x4388ab
lea ecx, [esp + 0x14]
mov edx, esi
push ecx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.0043b3c1
test eax, eax
jne 0x43887c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x40d3c8
push 0x3000000
push 0x491254
call fcn.0043720a
xor eax, eax
add esp, 0x14
inc eax
jmp 0x438880
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4388ab
mov edi, dword [esp + 0x14]
mov ebx, 0x2a9
push edi
push esi
push 0x40d808
push 0x3000000
push 0x491254
call fcn.0043720a
add esp, 0x14
jmp 0x438beb
push 0x34
lea eax, [esp + 0x74]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea edi, [esp + 0x48]
xor eax, eax
push 0xa
pop ecx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x70]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x438bc6
push 0x28
lea eax, [esp + 0x4c]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
je 0x438bc6
push 0x28
lea eax, [esp + 0x4c]
mov dword [esp + 0x6c], 0x2000
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
test eax, eax
je 0x438bb5
xor edi, edi
cmp dword [esp + 0x10], ebx
je 0x438ac0
call fcn.00438721
test eax, eax
je 0x438ac0
cmp dword [esp + 0x98], 1
jbe 0x438a23
push 0x10000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x438aa4
mov eax, dword [esp + 0x10]
mov edx, 0x8000
sub eax, esi
mov ecx, edi
sar eax, 1
push eax
push esi
mov dword [esp + 0x20], eax
call fcn.0043715c
mov eax, dword [esp + 0x18]
mov ecx, 0x8000
sub ecx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], ecx
lea edx, [edi + eax*2]
push edx
lea eax, [esp + 0x14]
mov dword [esp + 0x38], edx
push eax
push 0
push esi
mov esi, dword [0x49124c]
mov ecx, esi
call dword [0x4928c8]
call esi
mov esi, eax
mov dword [esp + 0x38], esi
cmp esi, 0xffffffff
je 0x438a1f
mov ebx, dword [esp + 0x20]
push ebx
push edi
call sub.msvcrt.dll__wcsicmp
mov edx, dword [esp + 0x20]
pop ecx
pop ecx
xor ecx, ecx
mov dword [esp + 0x10], edx
test eax, eax
setne cl
mov dword [esp + 0x3c], ecx
test eax, eax
jne 0x4389fe
push dword [esp + 0x34]
lea eax, [esp + 0x14]
push eax
push esi
mov esi, dword [0x491250]
mov ecx, esi
call dword [0x4928c8]
call esi
mov esi, dword [esp + 0x38]
test eax, eax
jne 0x4389b8
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x24]
test ecx, ecx
jne 0x438a18
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x20]
push 0xd
push 1
lea eax, [esp + 0x17]
mov byte [esp + 0x17], 1
push eax
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jns 0x438aed
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push 0x40
mov ebx, eax
mov dword [esp + 0x28], 1
push 4
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
jns 0x438aeb
cmp eax, 0xc0000003
je 0x438a85
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ebx, eax
test ebx, ebx
je 0x438aed
push ebx
push esi
push 0x40d540
push 0x3000000
push 0x491254
call fcn.0043720a
add esp, 0x14
jmp 0x438aed
push 0x40d450
push 0x3000000
push 0x491254
call fcn.0043720a
add esp, 0xc
jmp 0x438a23
cmp dword [esp + 0x98], 1
jbe 0x438a23
push esi
push 0x40d4c0
push 0x3000000
push 0x491254
call fcn.0043720a
add esp, 0x10
jmp 0x438a23
xor ebx, ebx
test edi, edi
je 0x438be7
test dword [esp + 0x28], 4
jne 0x438b17
push edi
push 0x40d5a0
push 0x4000000
push 0x491254
call fcn.0043720a
add esp, 0x10
push 0
push 0x2200000
push 3
push 0
push dword [esp + 0x3c]
push 0x100
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [esp + 0x28], ecx
cmp ecx, 0xffffffff
je 0x438b84
mov eax, dword [esp + 0x70]
push 0x28
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x4c]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
test eax, eax
jne 0x438b78
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x40d628
push 0x3000000
push 0x491254
call fcn.0043720a
add esp, 0x14
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x438ba3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x40d6a8
push 0x3000000
push 0x491254
call fcn.0043720a
add esp, 0x14
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x438be7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
push 0x40d708
jmp 0x438bd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
push 0x40d790
push 0x3000000
push 0x491254
call fcn.0043720a
add esp, 0x14
mov edi, dword [esp + 0x14]
test edi, edi
je 0x438bff
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x438c55
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x438c3c
test edi, 0x20
jne 0x438c3c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x438c55
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
push 0x40d878
jmp 0x438c43
push ebx
push esi
push 0x40d6a8
push 0x3000000
push 0x491254
call fcn.0043720a
add esp, 0x14
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [esp + 0x30]
jmp 0x438c90
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x30]
mov ebx, eax
push ebx
push esi
push 0x40d8d8
push 0x3000000
push 0x491254
call fcn.0043720a
add esp, 0x14
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x438cc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
push 0x40d960
push 0x3000000
push 0x491254
call fcn.0043720a
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0xa4]
xor eax, eax
pop edi
test ebx, ebx
pop esi
sete al
pop ebx
xor ecx, esp
call fcn.0047d650
mov esp, ebp
pop ebp
ret