Function at 0x5036a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x578
mov eax, ecx
mov dword [ebp - 0x48], 7
push ebx
mov dword [ebp - 8], eax
xor ecx, ecx
push esi
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], cx
push edi
sub eax, 2
je 0x50213b
dec eax
jne 0x502199
push eax
lea eax, [ebp - 0x8c]
push 0x11
push eax
call fcn.004b7e30
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x5c]
cmp eax, esi
je 0x50212d
cmp dword [ebp - 0x48], 8
jb 0x502110
push dword [ebp - 0x5c]
call fcn.00412887
add esp, 4
xor eax, eax
mov dword [ebp - 0x48], 7
push esi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
call fcn.004408e4
cmp dword [ebp - 0x78], 8
jb 0x502193
push dword [ebp - 0x8c]
jmp 0x50218b
push 0
lea eax, [ebp - 0x44]
push 0xd
push eax
call fcn.004b7e30
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x5c]
cmp eax, esi
je 0x502182
cmp dword [ebp - 0x48], 8
jb 0x502165
push dword [ebp - 0x5c]
call fcn.00412887
add esp, 4
xor eax, eax
mov dword [ebp - 0x48], 7
push esi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
call fcn.004408e4
cmp dword [ebp - 0x30], 8
jb 0x502193
push dword [ebp - 0x44]
call fcn.00412887
add esp, 4
cmp dword [ebp - 0x4c], 0
jne 0x5021a0
xor esi, esi
jmp 0x5028d1
mov esi, dword [ebp - 8]
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa8], ebx
cmp dword [esi + 0x68], ebx
je 0x5026b8
xor eax, eax
mov dword [ebp - 0x90], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0xa4], ax
lea ecx, [ebp - 0xa4]
lea eax, [esi + 0x58]
mov dword [ebp - 0x94], ebx
push eax
call fcn.0040757d
mov esi, dword [ebp - 0x90]
lea eax, [ebp - 0xa4]
mov edx, dword [ebp - 0xa4]
lea ecx, [ebp - 0xa4]
cmp esi, 8
cmovae eax, edx
cmovae ecx, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x94]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0xa4]
cmovae ecx, edx
cmp ecx, eax
je 0x50223d
push fcn.0052aacd
push dword [ebp - 0xc]
push eax
push ecx
lea eax, [ebp - 0x28]
push eax
call fcn.004ba020
add esp, 0x14
mov eax, 0x5c
mov dword [ebp - 0x11c], ebx
mov word [ebp - 0x120], ax
lea ecx, [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x118], ebx
push 0xffffffffffffffff
push eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], ebx
call fcn.0040757d
push 6
push 0x56efcc
lea ecx, [ebp - 0x44]
call fcn.004090e2
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x578]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.004af370
test eax, eax
je 0x502653
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x578]
call fcn.00502980
call fcn.0040adc1
test eax, eax
je 0x50296f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
cmp dword [ebp - 0x118], 0
lea esi, [eax + 0x10]
mov dword [ebp - 4], esi
je 0x502302
lea ecx, [ebp - 0x54c]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5022e0
sub ecx, edx
lea eax, [ebp - 0x54c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 4]
call fcn.0041cd7d
mov esi, dword [ebp - 4]
mov edi, dword [esi - 0xc]
test edi, edi
js 0x502965
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or ecx, eax
jge 0x50232a
push edi
lea ecx, [ebp - 4]
call fcn.0040b58d
mov esi, dword [ebp - 4]
lea eax, [edi + 1]
push eax
push esi
call fcn.0052ad14
add esp, 8
cmp edi, dword [esi - 8]
jg 0x502965
mov edx, dword [ebp - 8]
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
cmp word [esi], ax
jne 0x502355
xor ecx, ecx
jmp 0x50236f
mov ecx, esi
lea edi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x502360
sub ecx, edi
sar ecx, 1
push ecx
push esi
push dword [edx + 0x50]
lea ecx, [edx + 0x40]
push 0
call fcn.00410207
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], 7
test eax, eax
jne 0x5023e3
mov dword [ebp - 0x14], eax
mov word [ebp - 0x24], ax
cmp word [edi], ax
jne 0x50239c
xor ecx, ecx
jmp 0x5023b0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5023a1
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x24]
call fcn.00408659
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xb0]
call fcn.0044009b
cmp dword [ebp - 0x10], 8
jb 0x5025da
push dword [ebp - 0x24]
call fcn.00412887
add esp, 4
jmp 0x5025da
xor eax, eax
mov dword [ebp - 0x100], 7
mov dword [ebp - 0x104], 0
mov word [ebp - 0x114], ax
mov dword [ebp - 0xe8], 7
mov dword [ebp - 0xec], eax
mov word [ebp - 0xfc], ax
mov dword [ebp - 0xd0], 7
mov dword [ebp - 0xd4], eax
mov word [ebp - 0xe4], ax
mov dword [ebp - 0xb8], 7
mov dword [ebp - 0xbc], eax
mov word [ebp - 0xcc], ax
mov dword [ebp - 0x14], eax
mov word [ebp - 0x24], ax
cmp word [edi], ax
jne 0x502455
xor ecx, ecx
jmp 0x50246f
mov ecx, edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x502460
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x24]
call fcn.00408659
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00502c20
add esp, 8
mov ebx, eax
cmp dword [ebp - 0x10], 8
jb 0x50249f
push dword [ebp - 0x24]
call fcn.00412887
add esp, 4
test ebx, ebx
je 0x5025cf
xor eax, eax
mov dword [ebp - 0x10], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x24], ax
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], 0
push eax
call fcn.0040757d
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
cmp ebx, 8
cmovae eax, edx
cmovae ecx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x24]
cmovae ecx, edx
mov dword [ebp - 0xb4], ecx
cmp ecx, eax
mov ecx, dword [ebp - 4]
je 0x502519
push fcn.0052aacd
push ecx
push eax
push dword [ebp - 0xb4]
lea eax, [ebp - 0x28]
push eax
call fcn.004ba020
add esp, 0x14
jmp 0x50251c
mov dword [ebp - 0x28], ecx
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x24]
push eax
call fcn.0040757d
lea eax, [ebp - 0x8c]
push eax
call fcn.004af9a0
add esp, 0x1c
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x50255a
mov eax, dword [eax]
push ecx
push eax
push dword [ebp - 0x94]
lea ecx, [ebp - 0xa4]
push 0
call fcn.00410207
test eax, eax
sete bl
cmp dword [ebp - 0x78], 8
jb 0x502588
push dword [ebp - 0x8c]
call fcn.00412887
add esp, 4
test bl, bl
je 0x5025be
push edi
lea ecx, [ebp - 0x8c]
call fcn.00408718
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0xb0]
call fcn.0044009b
cmp dword [ebp - 0x78], 8
jb 0x5025be
push dword [ebp - 0x8c]
call fcn.00412887
add esp, 4
cmp dword [ebp - 0x10], 8
jb 0x5025cf
push dword [ebp - 0x24]
call fcn.00412887
add esp, 4
lea ecx, [ebp - 0x114]
call fcn.00501940
mov eax, dword [ebp - 0x11c]
test eax, eax
jne 0x5025e8
xor ebx, ebx
jmp 0x50260b
cmp dword [ebp - 0x118], 0
jne 0x5025f5
xor ebx, ebx
jmp 0x50260b
lea ecx, [ebp - 0x578]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
mov dword [ebp - 0x118], ebx
add esi, 0xfffffff0
or edx, 0xffffffff
lea ecx, [esi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x502625
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x50263f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x5022a2
mov edi, dword [ebp - 0xac]
mov ebx, dword [ebp - 0xb0]
cmp dword [ebp - 0x30], 8
jb 0x502664
push dword [ebp - 0x44]
call fcn.00412887
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x34], 0
test eax, eax
je 0x50269e
cmp eax, 0xffffffff
je 0x50269e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x11c], 0
cmp dword [ebp - 0x90], 8
jb 0x5026b5
push dword [ebp - 0xa4]
call fcn.00412887
add esp, 4
mov esi, dword [ebp - 8]
mov ecx, edi
mov eax, 0x2aaaaaab
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x5026d6
xor esi, esi
jmp 0x5028b6
xor eax, eax
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x64], 0
sub eax, 0
je 0x5026fc
dec eax
jne 0x502709
push str.unpin
jmp 0x502701
push str.unpin_start
lea ecx, [ebp - 0x74]
call fcn.00410011
mov esi, ebx
cmp ebx, edi
je 0x50288c
cmp dword [0x5b33b0], 0
je 0x50278c
cmp dword [0x5b33b4], 8
mov eax, 0x5b33a0
cmovae eax, dword [0x5b33a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x50278c
push 2
push 0x58e108
lea ecx, [ebp - 0x74]
call fcn.004090e2
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x74]
call fcn.00409227
push 1
push 0x58cd3c
lea ecx, [ebp - 0x74]
call fcn.004090e2
cmp dword [ebp - 0x64], 0
je 0x502881
lea eax, [ebp - 0x74]
push eax
push 0x1388
push 0x5b33a0
call fcn.004faff0
add esp, 0xc
mov esi, eax
jmp 0x502891
call fcn.004ae030
cmp eax, 0xb
jle 0x5027d0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
sub eax, 2
je 0x5027bc
dec eax
jne 0x502881
mov eax, 0x150b
push esi
push eax
call fcn.004fc720
add esp, 8
jmp 0x502881
mov eax, 0xc8c2
push esi
push eax
call fcn.004fc720
add esp, 8
jmp 0x502881
call fcn.004ae030
cmp eax, 5
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
jge 0x502822
cmp eax, 2
je 0x5028eb
cmp eax, 3
jne 0x502881
lea ecx, [ebp - 0xec]
call fcn.004af4f0
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00407b5f
lea ecx, [ebp - 0xec]
call fcn.004b17e0
lea ecx, [ebp - 0xec]
mov esi, eax
call fcn.004af530
jmp 0x502891
sub eax, 2
je 0x502831
dec eax
jne 0x50283e
push str.TaskbarUnPin
jmp 0x502836
push str.StartUnPin
lea ecx, [ebp - 0x74]
call fcn.00410011
cmp dword [ebp - 0x64], 0
je 0x502881
push 0x581738
lea ecx, [ebp - 0x8c]
call fcn.00408718
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x1388
push esi
call fcn.004fcad0
add esp, 0x10
cmp dword [ebp - 0x78], 8
jb 0x502881
push dword [ebp - 0x8c]
call fcn.00412887
add esp, 4
add esi, 0x18
cmp esi, edi
jne 0x502713
mov esi, 1
cmp dword [ebp - 0x60], 8
jb 0x5028a2
push dword [ebp - 0x74]
call fcn.00412887
add esp, 4
xor eax, eax
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
test ebx, ebx
je 0x5028d1
push dword [ebp - 0x28]
lea eax, [ebp - 0x29]
push eax
push edi
push ebx
call fcn.00440766
push ebx
call fcn.00412887
add esp, 0x14
cmp dword [ebp - 0x48], 8
jb 0x5028e2
push dword [ebp - 0x5c]
call fcn.00412887
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x581738
lea ecx, [ebp - 0x8c]
call fcn.00408718
push str.unpin
lea ecx, [ebp - 0x44]
call fcn.00408718
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x1388
push esi
call fcn.004fcad0
add esp, 0x10
mov esi, eax
cmp dword [ebp - 0x30], 8
jb 0x502934
push dword [ebp - 0x44]
call fcn.00412887
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
cmp dword [ebp - 0x78], 8
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x502891
push dword [ebp - 0x8c]
call fcn.00412887
add esp, 4
jmp 0x502891
push 0x80070057
call fcn.0040b65a
push 0x80004005
call fcn.0040b65a
int3
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x5036b0
cmp eax, 1
jne 0x5020b0
jmp fcn.00501bf0