Function at 0x4137a0
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 0x4ed4b1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0xe0
mov eax, dword [0x54d104]
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 edi, ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x94], edi
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
xor eax, eax
mov dword [ebp - 4], 1
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov dword [ebp - 0x38], 0
mov word [edi], ax
push eax
lea eax, [ebp - 0x38]
mov esi, 1
push eax
push esi
push str.D:P_A_CIOI_FA___SY__A_CIOI_FA___BA_
mov dword [ebp - 0x4c], esi
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
mov eax, dword [ebp - 0x38]
lea edx, [esi + 0x23]
push ecx
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0x44], 0xc
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0
call fcn.0048dcd0
add esp, 4
push 5
push str.Temp
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040a5c0
mov dword [ebp - 0x24], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
or esi, 8
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
lea ecx, [ebp - 0xf0]
call fcn.0040aa40
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4138e6
test al, 0x10
je 0x4138e6
mov al, 1
jmp 0x4138e8
xor al, al
test al, al
je 0x413984
call fcn.00492c80
cmp dword [ebp - 0x20], 8
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x78]
xor eax, eax
mov dword [ebp - 0x68], 0
xorps xmm0, xmm0
mov dword [ebp - 0x64], 7
movups xmmword [ebp - 0x78], xmm0
mov word [ebp - 0x78], ax
or esi, 0x10
lea eax, [ebp - 0x60]
mov dword [ebp - 0x4c], esi
push eax
lea eax, [ebp - 0x50]
mov edx, str._s_asw._016llx
push eax
call fcn.00415f50
lea eax, [ebp - 0x78]
add esp, 8
cmp edi, eax
je 0x413979
mov ecx, edi
call fcn.0040aa40
movups xmm0, xmmword [ebp - 0x78]
xor eax, eax
mov word [ebp - 0x78], ax
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x68]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 7
and esi, 0xffffffef
lea ecx, [ebp - 0x78]
jmp 0x413a29
call fcn.00492c80
cmp dword [ebp - 0x20], 8
mov ecx, eax
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
mov byte [ebp - 4], 6
xorps xmm0, xmm0
push edx
movups xmmword [ebp - 0x90], xmm0
xor edi, edi
mov dword [ebp - 0x80], 0
mov word [ebp - 0x90], di
or esi, 0x20
push ecx
mov dword [ebp - 0x7c], 7
lea edi, [ebp - 0x90]
movzx eax, word [eax]
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x4c], esi
push str._c:_asw._016llx
push eax
mov dword [ebp - 0x50], edi
call fcn.0040d3f0
mov edi, dword [ebp - 0x54]
lea eax, [ebp - 0x90]
add esp, 0x14
cmp edi, eax
je 0x413a20
mov ecx, edi
call fcn.0040aa40
movups xmm0, xmmword [ebp - 0x90]
xor eax, eax
mov word [ebp - 0x90], ax
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x80]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 7
and esi, 0xffffffdf
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x4c], esi
mov byte [ebp - 4], 4
call fcn.0040aa40
xor ecx, ecx
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x38], ecx
mov edx, edi
cmove eax, ecx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x5c], eax
jb 0x413a4d
mov edx, dword [edi]
mov dword [ebp - 0xb4], ecx
xorps xmm0, xmm0
mov dword [ebp - 0xb0], ecx
mov ecx, edx
movups xmmword [ebp - 0xc4], xmm0
lea eax, [ecx + 2]
mov dword [ebp - 0x54], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413a70
sub ecx, dword [ebp - 0x54]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xc4]
call fcn.0040a960
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xc4]
mov edx, dword [ebp - 0x5c]
or esi, 2
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
call fcn.0048b3e0
test al, al
jne 0x413b22
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x413ab6
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 0x9c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x98], 0
movups xmmword [ebp - 0xac], xmm0
lea eax, [ecx + 2]
mov dword [ebp - 0x5c], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413ae0
sub ecx, dword [ebp - 0x5c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xac]
call fcn.0040a960
mov dword [ebp - 4], 8
lea ecx, [ebp - 0xac]
or esi, 4
xor edx, edx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
call fcn.0048b3e0
mov byte [ebp - 0x45], 1
test al, al
je 0x413b26
mov byte [ebp - 0x45], 0
mov eax, dword [ebp - 0x50]
test al, 4
je 0x413b44
and eax, 0xfffffffb
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
call fcn.0040aa40
mov eax, dword [ebp - 0x50]
mov dword [ebp - 4], 4
test al, 2
je 0x413b60
and eax, 0xfffffffd
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x4c], eax
call fcn.0040aa40
cmp byte [ebp - 0x45], 0
jne 0x413bb6
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x413b74
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x34]
call fcn.0040aa40
mov eax, edi
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.004af3ab
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.Unable_to_create_temporary_directory_for_Instup_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xd8]
call fcn.00495810
push 0x549cdc
lea eax, [ebp - 0xd8]
push eax
call fcn.004b1dab
int3