Function at 0x514430
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 0x5129db
dec eax
jne 0x512a39
push eax
lea eax, [ebp - 0x8c]
push 0x11
push eax
call fcn.004bc8f0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x5c]
cmp eax, esi
je 0x5129cd
cmp dword [ebp - 0x48], 8
jb 0x5129b0
push dword [ebp - 0x5c]
call fcn.00412895
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.00440913
cmp dword [ebp - 0x78], 8
jb 0x512a33
push dword [ebp - 0x8c]
jmp 0x512a2b
push 0
lea eax, [ebp - 0x44]
push 0xd
push eax
call fcn.004bc8f0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x5c]
cmp eax, esi
je 0x512a22
cmp dword [ebp - 0x48], 8
jb 0x512a05
push dword [ebp - 0x5c]
call fcn.00412895
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.00440913
cmp dword [ebp - 0x30], 8
jb 0x512a33
push dword [ebp - 0x44]
call fcn.00412895
add esp, 4
cmp dword [ebp - 0x4c], 0
jne 0x512a40
xor esi, esi
jmp 0x513171
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 0x512f58
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.0040759d
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 0x512add
push fcn.00536afa
push dword [ebp - 0xc]
push eax
push ecx
lea eax, [ebp - 0x28]
push eax
call fcn.004beba0
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.0040759d
push 6
push 0x581558
lea ecx, [ebp - 0x44]
call fcn.00409102
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x578]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.004b3fe0
test eax, eax
je 0x512ef3
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x578]
call fcn.005039a0
call fcn.0040adc8
test eax, eax
je 0x51320f
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 0x512ba2
lea ecx, [ebp - 0x54c]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x512b80
sub ecx, edx
lea eax, [ebp - 0x54c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 4]
call fcn.0041cd8b
mov esi, dword [ebp - 4]
mov edi, dword [esi - 0xc]
test edi, edi
js 0x513205
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or ecx, eax
jge 0x512bca
push edi
lea ecx, [ebp - 4]
call fcn.0040b594
mov esi, dword [ebp - 4]
lea eax, [edi + 1]
push eax
push esi
call fcn.0053b7db
add esp, 8
cmp edi, dword [esi - 8]
jg 0x513205
mov edx, dword [ebp - 8]
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
cmp word [esi], ax
jne 0x512bf5
xor ecx, ecx
jmp 0x512c0f
mov ecx, esi
lea edi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x512c00
sub ecx, edi
sar ecx, 1
push ecx
push esi
push dword [edx + 0x50]
lea ecx, [edx + 0x40]
push 0
call fcn.00410215
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], 7
test eax, eax
jne 0x512c83
mov dword [ebp - 0x14], eax
mov word [ebp - 0x24], ax
cmp word [edi], ax
jne 0x512c3c
xor ecx, ecx
jmp 0x512c50
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x512c41
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x24]
call fcn.00408679
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xb0]
call fcn.004400c5
cmp dword [ebp - 0x10], 8
jb 0x512e7a
push dword [ebp - 0x24]
call fcn.00412895
add esp, 4
jmp 0x512e7a
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 0x512cf5
xor ecx, ecx
jmp 0x512d0f
mov ecx, edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x512d00
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x24]
call fcn.00408679
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.005133a0
add esp, 8
mov ebx, eax
cmp dword [ebp - 0x10], 8
jb 0x512d3f
push dword [ebp - 0x24]
call fcn.00412895
add esp, 4
test ebx, ebx
je 0x512e6f
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.0040759d
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 0x512db9
push fcn.00536afa
push ecx
push eax
push dword [ebp - 0xb4]
lea eax, [ebp - 0x28]
push eax
call fcn.004beba0
add esp, 0x14
jmp 0x512dbc
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.0040759d
lea eax, [ebp - 0x8c]
push eax
call fcn.004b4600
add esp, 0x1c
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x512dfa
mov eax, dword [eax]
push ecx
push eax
push dword [ebp - 0x94]
lea ecx, [ebp - 0xa4]
push 0
call fcn.00410215
test eax, eax
sete bl
cmp dword [ebp - 0x78], 8
jb 0x512e28
push dword [ebp - 0x8c]
call fcn.00412895
add esp, 4
test bl, bl
je 0x512e5e
push edi
lea ecx, [ebp - 0x8c]
call fcn.00408738
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0xb0]
call fcn.004400c5
cmp dword [ebp - 0x78], 8
jb 0x512e5e
push dword [ebp - 0x8c]
call fcn.00412895
add esp, 4
cmp dword [ebp - 0x10], 8
jb 0x512e6f
push dword [ebp - 0x24]
call fcn.00412895
add esp, 4
lea ecx, [ebp - 0x114]
call fcn.00512120
mov eax, dword [ebp - 0x11c]
test eax, eax
jne 0x512e88
xor ebx, ebx
jmp 0x512eab
cmp dword [ebp - 0x118], 0
jne 0x512e95
xor ebx, ebx
jmp 0x512eab
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 0x512ec5
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 0x512edf
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x512b42
mov edi, dword [ebp - 0xac]
mov ebx, dword [ebp - 0xb0]
cmp dword [ebp - 0x30], 8
jb 0x512f04
push dword [ebp - 0x44]
call fcn.00412895
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 0x512f3e
cmp eax, 0xffffffff
je 0x512f3e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x11c], 0
cmp dword [ebp - 0x90], 8
jb 0x512f55
push dword [ebp - 0xa4]
call fcn.00412895
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 0x512f76
xor esi, esi
jmp 0x513156
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 0x512f9c
dec eax
jne 0x512fa9
push str.unpin
jmp 0x512fa1
push str.unpin_start
lea ecx, [ebp - 0x74]
call fcn.0041001f
mov esi, ebx
cmp ebx, edi
je 0x51312c
cmp dword [0x5c83d0], 0
je 0x51302c
cmp dword [0x5c83d4], 8
mov eax, 0x5c83c0
cmovae eax, dword [0x5c83c0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x51302c
push 2
push 0x5a2318
lea ecx, [ebp - 0x74]
call fcn.00409102
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x74]
call fcn.00409252
push 1
push 0x5a0f3c
lea ecx, [ebp - 0x74]
call fcn.00409102
cmp dword [ebp - 0x64], 0
je 0x513121
lea eax, [ebp - 0x74]
push eax
push 0x1388
push 0x5c83c0
call fcn.004c1810
add esp, 0xc
mov esi, eax
jmp 0x513131
call fcn.004b2cd0
cmp eax, 0xb
jle 0x513070
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
sub eax, 2
je 0x51305c
dec eax
jne 0x513121
mov eax, 0x150b
push esi
push eax
call fcn.004c0c70
add esp, 8
jmp 0x513121
mov eax, 0xc8c2
push esi
push eax
call fcn.004c0c70
add esp, 8
jmp 0x513121
call fcn.004b2cd0
cmp eax, 5
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
jge 0x5130c2
cmp eax, 2
je 0x51318b
cmp eax, 3
jne 0x513121
lea ecx, [ebp - 0xec]
call fcn.004b4160
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00407b7f
lea ecx, [ebp - 0xec]
call fcn.004b6550
lea ecx, [ebp - 0xec]
mov esi, eax
call fcn.004b41a0
jmp 0x513131
sub eax, 2
je 0x5130d1
dec eax
jne 0x5130de
push str.TaskbarUnPin
jmp 0x5130d6
push str.StartUnPin
lea ecx, [ebp - 0x74]
call fcn.0041001f
cmp dword [ebp - 0x64], 0
je 0x513121
push 0x594314
lea ecx, [ebp - 0x8c]
call fcn.00408738
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x1388
push esi
call fcn.004c1130
add esp, 0x10
cmp dword [ebp - 0x78], 8
jb 0x513121
push dword [ebp - 0x8c]
call fcn.00412895
add esp, 4
add esi, 0x18
cmp esi, edi
jne 0x512fb3
mov esi, 1
cmp dword [ebp - 0x60], 8
jb 0x513142
push dword [ebp - 0x74]
call fcn.00412895
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 0x513171
push dword [ebp - 0x28]
lea eax, [ebp - 0x29]
push eax
push edi
push ebx
call fcn.00440790
push ebx
call fcn.00412895
add esp, 0x14
cmp dword [ebp - 0x48], 8
jb 0x513182
push dword [ebp - 0x5c]
call fcn.00412895
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x594314
lea ecx, [ebp - 0x8c]
call fcn.00408738
push str.unpin
lea ecx, [ebp - 0x44]
call fcn.00408738
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x1388
push esi
call fcn.004c1130
add esp, 0x10
mov esi, eax
cmp dword [ebp - 0x30], 8
jb 0x5131d4
push dword [ebp - 0x44]
call fcn.00412895
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 0x513131
push dword [ebp - 0x8c]
call fcn.00412895
add esp, 4
jmp 0x513131
push 0x80070057
call fcn.0040b661
push 0x80004005
call fcn.0040b661
int3
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x514440
cmp eax, 1
jne 0x512950
jmp fcn.00512490