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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2e4
mov eax, dword [0x4f5470]
xor eax, esp
mov dword [esp + 0x2e0], eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x24], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp ebx, 2
je 0x4215f3
test byte [esi + 0x98], 1
jne 0x4215f3
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e0]
xor ecx, esp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x4215fd
mov eax, dword [edi]
jmp 0x4215ff
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
setne byte [esp + 0x1f]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
sub ebx, 0
je 0x42166f
dec ebx
je 0x42164b
dec ebx
jne 0x4216f7
cmp dword [edi + 0x14], 8
jb 0x421647
mov ecx, dword [edi]
jmp 0x421671
mov ecx, edi
jmp 0x421671
cmp dword [edi + 0x14], 8
jb 0x421655
mov ecx, dword [edi]
jmp 0x421657
mov ecx, edi
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x28]
call fcn.00421380
add esp, 4
cmp dword [esp + 0x20], 0
je 0x421682
xor ecx, ecx
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x14]
call fcn.00421380
add esp, 4
cmp dword [esp + 0x18], 0
je 0x4216f7
test byte [esi + 0x98], 1
je 0x4216ad
cmp dword [esi + 0x14], 8
jb 0x42169c
mov edx, dword [esi]
jmp 0x42169e
mov edx, esi
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
js 0x4216f7
test byte [esi + 0x98], 2
je 0x4216d0
cmp dword [esi + 0x2c], 8
lea edx, [esi + 0x18]
jb 0x4216c1
mov edx, dword [edx]
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
js 0x4216f7
test byte [esi + 0x98], 4
je 0x421748
cmp dword [esi + 0x44], 8
lea edx, [esi + 0x30]
jb 0x4216e4
mov edx, dword [edx]
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
jns 0x42179c
xor bl, bl
mov eax, dword [esp + 0x18]
test eax, eax
je 0x421707
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x421715
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x421723
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x421731
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov ecx, dword [esp + 0x2ec]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x20], 0
je 0x42179c
xor eax, eax
push 0x206
push eax
mov word [esp + 0xe8], ax
lea eax, [esp + 0xea]
push eax
call fcn.004a84b0
mov eax, dword [esp + 0x30]
lea edx, [esp + 0xec]
add esp, 0xc
mov ecx, dword [eax]
push 0x104
push edx
push eax
call dword [ecx + 0x28]
test eax, eax
js 0x42179c
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xe0]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test byte [esi + 0x98], 8
je 0x4217c3
cmp dword [esi + 0x5c], 8
lea edx, [esi + 0x48]
jb 0x4217b0
mov edx, dword [edx]
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
js 0x4216f7
test byte [esi + 0x98], 0x10
je 0x4217ed
cmp dword [esi + 0x74], 8
lea edx, [esi + 0x60]
jb 0x4217d7
mov edx, dword [edx]
mov eax, dword [esp + 0x10]
push dword [esi + 0x78]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
test eax, eax
js 0x4216f7
mov ebx, dword [esi + 0x98]
mov eax, ebx
shr eax, 5
shr ebx, 6
and eax, 0xffffff01
and bl, 1
mov dword [esp + 0x28], eax
test al, al
jne 0x421813
test bl, bl
je 0x4218a4
call fcn.004164c0
cmp eax, 4
jl 0x4218a4
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0
push 0x4f0378
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
js 0x42199f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4216f7
cmp byte [esp + 0x28], 0
je 0x421878
cmp dword [esi + 0x90], 8
lea edx, [esi + 0x7c]
jb 0x421865
mov edx, dword [edx]
mov ecx, eax
call fcn.0041dd80
test al, al
je 0x42199f
mov eax, dword [esp + 0x14]
test bl, bl
je 0x42189a
movzx ecx, byte [esi + 0x94]
push ecx
mov ecx, eax
call fcn.0041dd10
add esp, 4
test al, al
je 0x42199f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4218a4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4218ba
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4218d0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0
push 0x4f0368
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
js 0x4219cf
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4219dd
mov dword [esp + 0x28], 0
lea edx, [esp + 0x28]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x421946
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
and ecx, 0xffffbfff
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x421946
mov eax, dword [esp + 0x14]
push 0xa0000007
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
jns 0x4219cf
call fcn.00422520
cmp eax, 1
jl 0x4219b6
push 0xffffffffffffffff
push 0x105
mov ebx, 4
lea ecx, [esp + 0x38]
push str.d:webapps_b_build_slave_repo_build_src_basewin_shortcut.cc
mov dword [esp + 0x38], ebx
call fcn.0040a070
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error_code
lea eax, [esi + 8]
push str.Remove_icon_SLDF_HAS_EXP_ICON_SZ_property_failed_
push eax
call fcn.00408da0
add esp, 8
push eax
call fcn.00408da0
add esp, 8
mov ecx, eax
call fcn.0040abc0
jmp 0x4219ba
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4216f7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4216f7
mov ebx, dword [esp + 0x2c]
test bl, 4
je 0x4219cf
and ebx, 0xfffffffb
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], ebx
call fcn.0040a0c0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4219dd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
test dword [esp + 0x2c], 0x20000
je 0x4219f0
lea ecx, [esp + 0x30]
call fcn.0040a0c0
cmp dword [edi + 0x14], 8
jb 0x4219fa
mov edx, dword [edi]
jmp 0x4219fc
mov edx, edi
mov eax, dword [esp + 0x18]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x421a21
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x421a37
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x10], 0
test esi, esi
setns bl
test bl, bl
je 0x4216f9
cmp byte [esp + 0x1f], 0
je 0x421a61
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp 0x4216f9
cmp dword [edi + 0x14], 8
jb 0x421a69
mov edi, dword [edi]
push 0
push edi
push 5
push 2
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp 0x4216f9