Function at 0x42c270
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], 0
push 0
push 0x4683b8
lea eax, [ebp - 4]
push eax
call sub.WINTRUST.dll_CryptCATAdminAcquireContext
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
jne 0x42c2b5
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x44]
call fcn.00404e10
xor eax, eax
jmp 0x42c4b3
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], 0xffffffff
je 0x42c493
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 8
mov dword [ebp - 0x18], 0x64
mov eax, dword [ebp - 0x18]
push eax
call fcn.004056cd
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x42c392
push 0
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.WINTRUST.dll_CryptCATAdminCalcHashFromFileHandle
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
jne 0x42c392
cmp dword [ebp - 0x10], 0x7a
jne 0x42c392
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
call fcn.004056d8
add esp, 4
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004056cd
add esp, 4
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 8
cmp dword [ebp - 0x14], 0
je 0x42c392
push 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.WINTRUST.dll_CryptCATAdminCalcHashFromFileHandle
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x42c471
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
push 0
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.WINTRUST.dll_CryptCATAdminEnumCatalogFromHash
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push 0x20c
call fcn.0040569e
add esp, 4
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
je 0x42c471
mov edx, dword [ebp - 0x20]
mov dword [edx], 0x20c
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.WINTRUST.dll_CryptCATCatalogInfoFromContext
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x42c45f
mov edx, dword [ebp - 0x20]
add edx, 4
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
and eax, 0xfffffffc
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
or ecx, 0x80
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x20]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0x20]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.004056d8
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x42c489
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
push edx
call fcn.004056d8
add esp, 4
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov ecx, dword [ebp - 4]
push ecx
call sub.WINTRUST.dll_CryptCATAdminReleaseContext
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x44]
call fcn.00404e10
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4