Function at 0x43cce0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be616
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4f6040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], 0
call fcn.00423a40
mov dword [ebp - 4], 1
xorps xmm0, xmm0
push 0xc
push str.signtool.exe
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x58], 0
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x54], 0
call fcn.0040bd30
mov byte [ebp - 4], 2
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004121f0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x54]
cmp ecx, 7
jbe 0x43cd9b
mov edx, dword [ebp - 0x68]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x43cd91
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43cf55
push ecx
push edx
call fcn.00486428
add esp, 8
xor eax, eax
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], ax
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x54], 7
push eax
call fcn.004242c0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 7
cmova eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.0040bf40
cmp esi, 0xffffffff
je 0x43cdf9
push edi
lea ecx, [ebp - 0x2c]
call fcn.004242c0
mov dword [ebp - 0x48], 1
jmp 0x43cf27
mov dword [ebp - 0x14], 0
call fcn.0040b040
mov dword [ebp - 0x50], eax
test eax, eax
je 0x43cf5a
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4c83a0]
mov ecx, dword [ebp - 0x50]
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x14]
push str.TWEAK_MSIX_SIGNTOOL_PATH
call fcn.0040c790
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x43cece
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43cece
lea ecx, [ebp - 0x14]
call fcn.00425300
push 0xc
push str.signtool.exe
lea ecx, [ebp - 0x14]
call fcn.0040c830
mov esi, dword [ebp - 0x14]
xorps xmm0, xmm0
mov ecx, esi
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43ce82
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.0040bd30
mov dword [ebp - 0x48], 1
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x43cecc
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4c83a0]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x4c]
jmp 0x43cf27
xorps xmm0, xmm0
mov dword [ebp - 0x48], 1
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x43cf27
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4c83a0]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0040bf40
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048641a
mov esp, ebp
pop ebp
ret 4
call fcn.0048b78f
push 0x80004005
call fcn.0040b700
int3