Function at 0x4022a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f7fc
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x430098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea edx, [ebp - 0x58]
mov ecx, eax
call fcn.00407c01
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x402305
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x88]
push eax
call fcn.00407ab6
push 0xf
xor eax, eax
mov byte [ebp - 4], 1
push str.Application.ico
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 7
mov word [ebp - 0x13c], ax
call fcn.004037d0
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0x70]
call fcn.004079e3
mov edx, dword [ebp - 0x128]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x4023a4
mov ecx, dword [ebp - 0x13c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40239a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4026ec
push edx
push ecx
call fcn.0040ae87
add esp, 8
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor eax, eax
cmp dword [ebp - 0x5c], 8
mov word [ebp - 0x13c], ax
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 7
call edi
test eax, eax
jne 0x4023f0
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x70]
push eax
call fcn.004037d0
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call edi
test eax, eax
je 0x4025fa
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
push 1
push 0x4223fc
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 5
call fcn.00403640
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
lea ecx, [ebp - 0xa0]
push eax
call fcn.00403640
push 2
push 0x422400
lea ecx, [ebp - 0xa0]
call fcn.00403640
lea eax, [ebp - 0x12]
push 0x6b
push eax
call fcn.00401c60
mov ecx, eax
xor edx, edx
xor eax, eax
mov dword [ebp - 0x12c], edx
mov word [ebp - 0x13c], ax
add esp, 8
lea eax, [ebp - 0x12]
mov edi, 7
mov dword [ebp - 0x128], edi
cmp ecx, eax
je 0x4024b5
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x13c]
call fcn.004037d0
mov edi, dword [ebp - 0x128]
mov edx, dword [ebp - 0x12c]
cmp edi, 8
mov byte [ebp - 4], 6
lea eax, [ebp - 0x13c]
cmovae eax, dword [ebp - 0x13c]
lea ecx, [ebp - 0xa0]
push edx
push eax
call fcn.00403640
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 5
call fcn.00401440
lea eax, [ebp - 0xa0]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x70]
push eax
push ebx
lea eax, [ebp - 0x58]
push eax
push esi
lea ecx, [ebp - 0x124]
call fcn.00401280
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 7
call fcn.004014f0
mov dword [ebp - 0x40], 0
cmp dword [esi + 0x14], 8
mov eax, esi
mov byte [ebp - 4], 8
jb 0x40252b
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
push ecx
push 0x4268e4
push 2
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetPropertyStoreFromParsingName]
test eax, eax
js 0x402592
lea ecx, [ebp - 0x2c]
call fcn.00404b62
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x134]
mov eax, 0x1f
mov byte [ebp - 4], 9
mov word [ebp - 0x134], ax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x40]
push edx
push 0x4268f4
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.00401440
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
cmp dword [esi + 0x14], 8
jb 0x4025a5
mov esi, dword [esi]
push 0x69
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHSetLocalizedName]
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
push 0
cmovae eax, dword [ebp - 0x88]
push eax
push 0x1005
push 0x1000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x4025e4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x124]
call fcn.00402070
lea ecx, [ebp - 0xa0]
call fcn.00401440
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x402634
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40262a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4026f1
push edx
push ecx
call fcn.0040ae87
add esp, 8
mov edx, dword [ebp - 0x74]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp edx, 8
jb 0x402681
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402677
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4026f1
push edx
push ecx
call fcn.0040ae87
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
cmp edx, 8
jb 0x4026ce
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4026c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4026f1
push edx
push ecx
call fcn.0040ae87
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ae95
mov esp, ebp
pop ebp
ret 8
call fcn.0040eaba
call fcn.0040eaba
int3