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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9771
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0xa0
mov eax, dword [0x505034]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x84], esi
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 1
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 0x38], 0
mov word [esi], ax
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x4c], 1
push eax
push 1
push str.D:P_A_CIOI_FA___SY__A_CIOI_FA___BA_
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
mov eax, dword [ebp - 0x38]
mov edx, 0x24
push ecx
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x44], 0xc
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0
call fcn.00467c00
add esp, 4
push 5
push str.Temp
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00414dc0
mov dword [ebp - 0x24], 0
xor ecx, ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x4c], 9
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x34], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x24], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x88]
cmp edx, 8
jb 0x41d608
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d5fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d911
push edx
push ecx
call fcn.00479e95
add esp, 8
xor eax, eax
mov dword [ebp - 0x8c], 0
cmp dword [ebp - 0x20], 8
mov word [ebp - 0x9c], ax
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
mov dword [ebp - 0x88], 7
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41d6a4
test al, 0x10
je 0x41d6a4
call fcn.0046a960
cmp dword [ebp - 0x20], 8
mov ecx, eax
push edx
push ecx
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x68]
push str._s_asw._016llx
push eax
call fcn.0041fa00
add esp, 0x14
mov ecx, esi
push eax
call fcn.00417c60
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x41d70f
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d705
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d916
jmp 0x41d705
call fcn.0046a960
cmp dword [ebp - 0x20], 8
mov ecx, eax
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push edx
push ecx
movzx eax, word [eax]
push eax
lea eax, [ebp - 0x68]
push str._c:_asw._016llx
push eax
call fcn.0041fa00
add esp, 0x14
mov ecx, esi
push eax
call fcn.00417c60
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x41d70f
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d705
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d91b
push edx
push ecx
call fcn.00479e95
add esp, 8
xor eax, eax
lea edi, [ebp - 0x44]
cmp dword [ebp - 0x38], eax
mov edx, esi
cmove edi, eax
cmp dword [esi + 0x14], 8
jb 0x41d724
mov edx, dword [esi]
mov dword [ebp - 0x58], eax
mov ecx, edx
xor eax, eax
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x50], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d740
sub ecx, dword [ebp - 0x50]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x68]
call fcn.00415170
mov eax, 0xb
mov byte [ebp - 4], 5
mov edx, edi
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x68]
call fcn.00465ef0
test al, al
jne 0x41d7d1
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x41d77e
mov edx, dword [esi]
mov ecx, edx
mov dword [ebp - 0x70], 0
xor eax, eax
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d797
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x80]
call fcn.00415170
mov eax, 0xf
mov dword [ebp - 4], 6
xor edx, edx
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x80]
call fcn.00465ef0
mov byte [ebp - 0x45], 1
test al, al
je 0x41d7d5
mov byte [ebp - 0x45], 0
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x4c]
test al, 4
je 0x41d83a
mov edx, dword [ebp - 0x6c]
and eax, 0xfffffffb
mov dword [ebp - 0x4c], eax
cmp edx, 8
jb 0x41d826
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d819
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d920
push edx
push ecx
call fcn.00479e95
mov eax, dword [ebp - 0x4c]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], cx
mov dword [ebp - 4], 4
test al, 2
je 0x41d885
mov edx, dword [ebp - 0x54]
and eax, 0xfffffffd
mov dword [ebp - 0x4c], eax
cmp edx, 8
jb 0x41d885
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d87b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d920
push edx
push ecx
call fcn.00479e95
add esp, 8
cmp byte [ebp - 0x45], 0
jne 0x41d925
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x41d89d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x41d8d7
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d8cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d94d
push edx
push ecx
call fcn.00479e95
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00479e61
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0049b19a
call fcn.0049b19a
call fcn.0049b19a
call fcn.0049b19a
push str.Unable_to_create_temporary_directory_for_Instup_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xb0]
call fcn.0046c650
push 0x50271c
lea eax, [ebp - 0xb0]
push eax
call fcn.00491d27
call fcn.0049b19a
int3