Function at 0x412140
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4737d3
mov eax, dword fs:[0]
push eax
sub esp, 0xa20
mov eax, dword [0x498068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x49bae4], 0
jne 0x4121a9
push 0x28
call fcn.0044f797
add esp, 4
mov ecx, eax
call fcn.00424770
push 0
mov esi, eax
push esi
push 0x49bae4
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x4121a9
test esi, esi
je 0x4121a9
push 0x28
push esi
call fcn.0044f7c7
add esp, 8
mov eax, dword [0x49bae4]
movq xmm0, qword [eax + 4]
mov eax, dword [eax + 0xc]
movq qword [ebp - 0x444], xmm0
cmp dword [ebp - 0x444], 6
mov dword [ebp - 0x43c], eax
jl 0x412bf6
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00452050
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x420]
add esp, 0xc
push 1
push 0x17
push eax
push 0
call esi
test eax, eax
je 0x4123e8
xor eax, eax
mov dword [ebp - 0x440], 0
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x440], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412240
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x450]
call fcn.00401a50
lea eax, [ebp - 0x450]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x480]
call fcn.00401920
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x43c]
cmp edx, 8
jb 0x4122bf
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4122b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412c12
push edx
push ecx
call fcn.0044f7c7
add esp, 8
xor eax, eax
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x438]
push 0x14
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], eax
push 0x4873d8
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
call fcn.00401a50
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x468]
push eax
lea ecx, [ebp - 0x480]
call fcn.00426760
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x412376
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41236c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412c17
push edx
push ecx
call fcn.0044f7c7
add esp, 8
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 9
call fcn.00401810
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4123c7
cmp dword [ebp - 0x454], 8
lea ecx, [ebp - 0x468]
cmovae ecx, dword [ebp - 0x468]
call fcn.004120a0
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 2
call fcn.00401850
lea ecx, [ebp - 0x480]
mov dword [ebp - 4], 0xffffffff
call fcn.00401850
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00452050
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x1a
push eax
push 0
call esi
test eax, eax
je 0x412bf6
push 0x3c
xor eax, eax
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0
lea ecx, [ebp - 0x450]
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
call fcn.00401a50
mov dword [ebp - 4], 0xe
lea ecx, [ebp - 0x218]
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4124a0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.00401a50
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x480]
call fcn.00401920
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x4e0]
push eax
lea ecx, [ebp - 0x480]
call fcn.00426760
lea ecx, [ebp - 0x480]
mov byte [ebp - 4], 0x12
call fcn.00401850
mov byte [ebp - 4], 0x14
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x412548
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41253e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412c1c
push edx
push ecx
call fcn.0044f7c7
add esp, 8
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
mov byte [ebp - 4], 0x19
mov edx, dword [ebp - 0x43c]
cmp edx, 8
jb 0x4125a9
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41259f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412c21
push edx
push ecx
call fcn.0044f7c7
add esp, 8
xor eax, eax
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x498]
push 0x3e
mov dword [ebp - 0x488], eax
mov dword [ebp - 0x484], eax
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedStartMenu
mov dword [ebp - 0x488], eax
mov dword [ebp - 0x484], 7
mov word [ebp - 0x498], ax
call fcn.00401a50
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x218]
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412640
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.00401a50
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 0x1e
push eax
lea ecx, [ebp - 0x480]
call fcn.00401920
lea eax, [ebp - 0x498]
mov byte [ebp - 4], 0x1f
push eax
lea eax, [ebp - 0x4c8]
push eax
lea ecx, [ebp - 0x480]
call fcn.00426760
lea ecx, [ebp - 0x480]
mov byte [ebp - 4], 0x21
call fcn.00401850
mov byte [ebp - 4], 0x23
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x4126e8
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4126de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412c26
push edx
push ecx
call fcn.0044f7c7
add esp, 8
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
mov byte [ebp - 4], 0x28
mov edx, dword [ebp - 0x484]
cmp edx, 8
jb 0x412749
mov ecx, dword [ebp - 0x498]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41273f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412c2b
push edx
push ecx
call fcn.0044f7c7
add esp, 8
xor eax, eax
mov dword [ebp - 0x488], 0
mov dword [ebp - 0x484], 7
mov word [ebp - 0x498], ax
mov byte [ebp - 4], 0x2c
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
sub esp, 0x18
mov byte [ebp - 4], 0x2d
mov ecx, esp
mov dword [ebp - 0xa2c], esp
push 0x13
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 0xf
push 0x485080
mov byte [ecx], al
call fcn.00405f80
mov byte [ebp - 4], 0x2e
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0x2d
call fcn.00441670
add esp, 0x18
lea eax, [ebp - 0x450]
lea ecx, [ebp - 0x480]
push eax
call fcn.00401920
mov byte [ebp - 4], 0x2f
lea ecx, [ebp - 0x438]
push 5
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
push str..lnk
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
call fcn.00401a50
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 0x30
push eax
sub esp, 8
lea eax, [ebp - 0x4e0]
lea ecx, [ebp - 0xa28]
push eax
call fcn.00427d00
mov byte [ebp - 4], 0x33
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x412887
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41287d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412c30
push edx
push ecx
call fcn.0044f7c7
add esp, 8
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
lea eax, [ebp - 0x468]
mov byte [ebp - 4], 0x32
push eax
lea ecx, [ebp - 0xa28]
call fcn.00427f30
mov byte [ebp - 4], 0x37
cmp dword [ebp - 0x458], 0
je 0x412987
nop dword [eax + eax]
lea eax, [ebp - 0x468]
push eax
lea ecx, [ebp - 0x438]
call fcn.00401920
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 0x39
call fcn.00427870
test al, al
je 0x412923
lea edx, [ebp - 0x438]
lea ecx, [ebp - 0x480]
call fcn.0042d990
test al, al
je 0x412923
cmp dword [ebp - 0x454], 8
lea ecx, [ebp - 0x468]
cmovae ecx, dword [ebp - 0x468]
call fcn.004120a0
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 0x37
call fcn.00401850
lea eax, [ebp - 0x4b0]
push eax
lea ecx, [ebp - 0xa28]
call fcn.00427f30
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 0x38
cmp ecx, eax
je 0x41296b
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x41295c
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x468]
call fcn.00401a50
lea ecx, [ebp - 0x4b0]
mov byte [ebp - 4], 0x37
call fcn.00401850
cmp dword [ebp - 0x458], 0
jne 0x4128d0
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 0x32
call fcn.00401850
push 5
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
lea ecx, [ebp - 0x438]
push str..lnk
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
call fcn.00401a50
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 0x3a
push eax
sub esp, 8
lea eax, [ebp - 0x4c8]
lea ecx, [ebp - 0x784]
push eax
call fcn.00427d00
mov byte [ebp - 4], 0x3d
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x412a3d
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412a33
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412c35
push edx
push ecx
call fcn.0044f7c7
add esp, 8
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
lea eax, [ebp - 0x468]
mov byte [ebp - 4], 0x3c
push eax
lea ecx, [ebp - 0x784]
call fcn.00427f30
mov byte [ebp - 4], 0x41
cmp dword [ebp - 0x458], 0
je 0x412b38
lea eax, [ebp - 0x468]
push eax
lea ecx, [ebp - 0x438]
call fcn.00401920
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 0x43
call fcn.00427870
test al, al
je 0x412ad4
lea edx, [ebp - 0x438]
lea ecx, [ebp - 0x480]
call fcn.0042d990
test al, al
je 0x412ad4
cmp dword [ebp - 0x454], 8
lea ecx, [ebp - 0x468]
cmovae ecx, dword [ebp - 0x468]
call fcn.004120a0
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 0x41
call fcn.00401850
lea eax, [ebp - 0x4b0]
push eax
lea ecx, [ebp - 0x784]
call fcn.00427f30
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 0x42
cmp ecx, eax
je 0x412b1c
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x412b0d
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x468]
call fcn.00401a50
lea ecx, [ebp - 0x4b0]
mov byte [ebp - 4], 0x41
call fcn.00401850
cmp dword [ebp - 0x458], 0
jne 0x412a81
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 0x3c
call fcn.00401850
lea ecx, [ebp - 0x784]
mov byte [ebp - 4], 0x32
call fcn.00427e20
lea ecx, [ebp - 0xa28]
mov byte [ebp - 4], 0x2f
call fcn.00427e20
lea ecx, [ebp - 0x480]
mov byte [ebp - 4], 0x2d
call fcn.00401850
mov byte [ebp - 4], 0x44
mov edx, dword [ebp - 0x43c]
cmp edx, 8
jb 0x412bb8
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412bae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412c3a
push edx
push ecx
call fcn.0044f7c7
add esp, 8
xor eax, eax
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 4], 0x18
call fcn.00401850
lea ecx, [ebp - 0x4e0]
mov dword [ebp - 4], 0xffffffff
call fcn.00401850
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044f786
mov esp, ebp
pop ebp
ret 4
call fcn.00454bbf
call fcn.00454bbf
call fcn.00454bbf
call fcn.00454bbf
call fcn.00454bbf
call fcn.00454bbf
call fcn.00454bbf
call fcn.00454bbf
call fcn.00454bbf
int3