Function at 0x4379f7
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x48dc38]
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.00436eb2
mov dword [esp + 0x30], eax
test eax, eax
je 0x437eff
and dword [esp + 0x10], ebx
lea edx, [esp + 0x10]
mov ecx, eax
call fcn.0043659c
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
je 0x437ec8
test edi, 1
je 0x437a5e
xor eax, eax
jmp 0x437a61
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 0x437e68
and dword [esp + 0x14], ebx
mov dword [esp + 0x18], 1
test edi, 0x20
je 0x437b08
lea ecx, [esp + 0x14]
mov edx, esi
push ecx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.0043a611
test eax, eax
jne 0x437ad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x40d298
push 0x3000000
push 0x490254
call fcn.0043652a
xor eax, eax
add esp, 0x14
inc eax
jmp 0x437add
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x437b08
mov edi, dword [esp + 0x14]
mov ebx, 0x2a9
push edi
push esi
push 0x40d6d8
push 0x3000000
push 0x490254
call fcn.0043652a
add esp, 0x14
jmp 0x437e48
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 0x437e23
push 0x28
lea eax, [esp + 0x4c]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
je 0x437e23
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 0x437e12
xor edi, edi
cmp dword [esp + 0x10], ebx
je 0x437d1d
call fcn.0043797e
test eax, eax
je 0x437d1d
cmp dword [esp + 0x98], 1
jbe 0x437c80
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 0x437d01
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.0043647c
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 [0x49024c]
mov ecx, esi
call dword [0x4918b8]
call esi
mov esi, eax
mov dword [esp + 0x38], esi
cmp esi, 0xffffffff
je 0x437c7c
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 0x437c5b
push dword [esp + 0x34]
lea eax, [esp + 0x14]
push eax
push esi
mov esi, dword [0x490250]
mov ecx, esi
call dword [0x4918b8]
call esi
mov esi, dword [esp + 0x38]
test eax, eax
jne 0x437c15
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x24]
test ecx, ecx
jne 0x437c75
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 0x437d4a
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 0x437d48
cmp eax, 0xc0000003
je 0x437ce2
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ebx, eax
test ebx, ebx
je 0x437d4a
push ebx
push esi
push 0x40d410
push 0x3000000
push 0x490254
call fcn.0043652a
add esp, 0x14
jmp 0x437d4a
push 0x40d320
push 0x3000000
push 0x490254
call fcn.0043652a
add esp, 0xc
jmp 0x437c80
cmp dword [esp + 0x98], 1
jbe 0x437c80
push esi
push 0x40d390
push 0x3000000
push 0x490254
call fcn.0043652a
add esp, 0x10
jmp 0x437c80
xor ebx, ebx
test edi, edi
je 0x437e44
test dword [esp + 0x28], 4
jne 0x437d74
push edi
push 0x40d470
push 0x4000000
push 0x490254
call fcn.0043652a
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 0x437de1
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 0x437dd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x40d4f8
push 0x3000000
push 0x490254
call fcn.0043652a
add esp, 0x14
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x437e00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x40d578
push 0x3000000
push 0x490254
call fcn.0043652a
add esp, 0x14
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x437e44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
push 0x40d5d8
jmp 0x437e32
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
push 0x40d660
push 0x3000000
push 0x490254
call fcn.0043652a
add esp, 0x14
mov edi, dword [esp + 0x14]
test edi, edi
je 0x437e5c
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 0x437eb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x437e99
test edi, 0x20
jne 0x437e99
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x437eb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
push 0x40d748
jmp 0x437ea0
push ebx
push esi
push 0x40d578
push 0x3000000
push 0x490254
call fcn.0043652a
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 0x437eed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x30]
mov ebx, eax
push ebx
push esi
push 0x40d7a8
push 0x3000000
push 0x490254
call fcn.0043652a
add esp, 0x14
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x437f20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push esi
push 0x40d830
push 0x3000000
push 0x490254
call fcn.0043652a
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.0047c8b0
mov esp, ebp
pop ebp
ret