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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov ecx, dword [ebx + 0x254]
push edi
inc ecx
lea eax, [ebx + 0x258]
push ecx
push eax
lea eax, [ebp - 0x244]
mov dword [ebp - 4], esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [ebx + 0x254]
push 0x7cf45c88
lea eax, [ebp + eax*2 - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x7d01850e
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x244]
add eax, 0x3be
push 0x50
push ecx
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
push esi
lea eax, [edi + 0xe4]
push 0x50
push eax
push 0xffffffffffffffff
push dword [ebp - 0xc]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push 0x292
push edi
push 1
push ebx
mov word [edi + 0x134], si
call sym.SHELL32.dll_PifMgr_SetProperties
push 2
push 0x68a
push dword [ebp + 0x10]
push 0xc
push ebx
call sym.SHELL32.dll_PifMgr_SetProperties
call fcn.7d0182e2
test eax, eax
je 0x7d018913
mov eax, dword [ebp + 0x14]
cmp eax, esi
jne 0x7d018544
push esi
push 2
push esi
lea eax, [ebp - 0x244]
push 0x104
push eax
push 0x2672
push esi
call fcn.7d017cb2
push eax
call dword [0x7d04c274]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x7d018571
mov esi, 0x2674
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x7d01855d
dec esi
push 0x8030
push esi
push ebx
call fcn.7d017be8
add esp, 0xc
jmp 0x7d01890e
lea eax, [ebp - 0x1c]
push eax
push esi
push 0x7cf45c7c
push dword [ebp + 0xc]
call dword [0x7d04c27c]
test eax, eax
jne 0x7d0185a0
push 0x8030
push 0x2675
push ebx
call fcn.7d017be8
add esp, 0xc
jmp 0x7d018900
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x244]
push 0x104
push eax
lea eax, [ebp - 0x1c]
push esi
push eax
call dword [0x7d04c28c]
test eax, eax
je 0x7d01863c
mov eax, dword [ebx + 0x250]
lea eax, [ebx + eax*2 + 0x258]
push eax
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x7d01863c
mov eax, dword [ebx + 0x250]
inc eax
push eax
lea eax, [ebx + 0x258]
push eax
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx + 0x250]
push 0x50
lea eax, [ebp + eax*2 - 0x244]
push eax
lea eax, [ebp - 0x1c]
push 6
push eax
call dword [0x7d04c28c]
mov eax, dword [ebx + 0x250]
cmp word [ebp + eax*2 - 0x244], si
je 0x7d018657
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x7d018657
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [0x7d04c284]
test eax, eax
je 0x7d018900
jmp 0x7d0185a0
test byte [edi + 3], 4
je 0x7d0186c7
mov eax, dword [ebx + 0x250]
add ebx, 0x250
mov dword [ebp + 0x1c], ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + eax*2 - 0x244]
push eax
lea eax, [ebx + 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x7d018900
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
cmp word [ebp + eax*2 - 0x244], si
jne 0x7d0188f9
add edi, 0x22
push edi
call fcn.7d017b80
push dword [ebp + 0x18]
mov word [ebx + eax*2 + 4], si
add ebx, 4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x7d018900
jmp 0x7d0188f9
mov ecx, dword [ebx + 0x250]
mov eax, dword [ebp + 0x10]
add eax, 0x184
push 0x50
lea ecx, [ebp + ecx*2 - 0x244]
mov dword [ebp - 4], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
push esi
lea eax, [edi + 0x13e]
push 0x50
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 8]
add eax, 0x364
push ecx
push 0x1e
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x1c]
push 1
push eax
call dword [0x7d04c28c]
push esi
push esi
lea eax, [edi + 4]
push 0x1e
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp + 0x10]
push 0x80
push dword [ebp + 0x18]
add eax, 4
mov dword [ebp - 4], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
push esi
lea eax, [edi + 0x22]
push 0x80
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
push eax
lea eax, [ebp - 0x1c]
push 4
push eax
call dword [0x7d04c294]
cmp dword [ebp + 8], esi
jne 0x7d018790
mov eax, dword [ebp + 0x10]
cmp word [eax + 0x4ae], si
jne 0x7d018790
push eax
push edi
push ebx
call fcn.7d01838c
lea eax, [ebp - 8]
mov word [ebp - 0x244], si
push eax
lea eax, [ebp - 0x244]
push 0x104
push eax
lea eax, [ebp - 0x1c]
push 2
push eax
call dword [0x7d04c28c]
cmp word [ebp - 0x244], si
jne 0x7d0187ce
lea eax, [ebp - 0x244]
push 0x7cf45c64
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
push eax
lea eax, [ebp - 0x1c]
push 3
push eax
call dword [0x7d04c294]
cmp dword [ebp + 8], esi
je 0x7d018822
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x244]
add eax, 0x3be
push ecx
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
push esi
lea eax, [edi + 0xe4]
push 0x50
push eax
push 0xffffffffffffffff
push dword [ebp - 0xc]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ax, word [ebp + 8]
mov word [edi + 0x134], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x3c]
push 0x10
push eax
lea eax, [ebp - 0x1c]
push 5
push eax
call dword [0x7d04c28c]
lea eax, [ebp - 8]
mov word [ebp - 0x244], si
push eax
lea eax, [ebp - 0x244]
push 0x104
push eax
lea eax, [ebp - 0x1c]
push 7
push eax
call dword [0x7d04c28c]
and word [edi + 2], 0xfbff
cmp dword [ebp + 0x1c], esi
mov ax, word [edi + 2]
jne 0x7d01887b
cmp word [ebp - 0x244], 0x31
jne 0x7d01887b
or ah, 4
mov word [edi + 2], ax
test byte [ebp + 0x20], 4
je 0x7d018885
or byte [edi + 2], 8
push 2
push 0x292
push edi
push 1
push ebx
call sym.SHELL32.dll_PifMgr_SetProperties
push 2
push 0x68a
push dword [ebp + 0x10]
push 0xc
push ebx
call sym.SHELL32.dll_PifMgr_SetProperties
push ebx
lea eax, [ebp - 0x1c]
push 0x7cf45c54
push eax
call fcn.7d01891d
cmp word [ebp - 0x3c], si
je 0x7d0188ca
lea eax, [ebp - 0x3c]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.7d01891d
or byte [ebx + 0x11], 0x40
push esi
push 0x292
push edi
push 1
push ebx
call sym.SHELL32.dll_PifMgr_GetProperties
test byte [ebx + 0x11], 0x80
jne 0x7d0188f2
test byte [edi + 2], 8
je 0x7d0188f2
push 1
push ebx
push esi
call fcn.7d010c85
push esi
push ebx
call fcn.7d0105e2
mov dword [ebp - 4], 1
cmp dword [ebp + 0x14], esi
jne 0x7d01890e
push dword [ebp + 0xc]
call dword [0x7d04c29c]
call fcn.7d018370
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x1c