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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4742e3
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 [0x49badc], 0
jne 0x412bd9
push 0x28
call fcn.00450175
add esp, 4
mov ecx, eax
call fcn.00425160
push 0
mov esi, eax
push esi
push 0x49badc
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x412bd9
test esi, esi
je 0x412bd9
push 0x28
push esi
call fcn.004501a5
add esp, 8
mov eax, dword [0x49badc]
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 0x413626
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00452a30
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 0x412e18
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 0x412c70
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 0x412cef
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412ce5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413642
push edx
push ecx
call fcn.004501a5
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 0x487418
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.00427150
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x412da6
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412d9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413647
push edx
push ecx
call fcn.004501a5
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 0x412df7
cmp dword [ebp - 0x454], 8
lea ecx, [ebp - 0x468]
cmovae ecx, dword [ebp - 0x468]
call fcn.00412ad0
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.00452a30
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x1a
push eax
push 0
call esi
test eax, eax
je 0x413626
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 0x412ed0
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.00427150
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 0x412f78
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412f6e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41364c
push edx
push ecx
call fcn.004501a5
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 0x412fd9
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412fcf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413651
push edx
push ecx
call fcn.004501a5
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 0x413070
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.00427150
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 0x413118
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41310e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413656
push edx
push ecx
call fcn.004501a5
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 0x413179
mov ecx, dword [ebp - 0x498]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41316f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41365b
push edx
push ecx
call fcn.004501a5
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 0x485128
mov byte [ecx], al
call fcn.004069a0
mov byte [ebp - 4], 0x2e
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0x2d
call fcn.00442050
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.004286e0
mov byte [ebp - 4], 0x33
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x4132b7
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4132ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413660
push edx
push ecx
call fcn.004501a5
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.00428910
mov byte [ebp - 4], 0x37
cmp dword [ebp - 0x458], 0
je 0x4133b7
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.00428250
test al, al
je 0x413353
lea edx, [ebp - 0x438]
lea ecx, [ebp - 0x480]
call fcn.0042e370
test al, al
je 0x413353
cmp dword [ebp - 0x454], 8
lea ecx, [ebp - 0x468]
cmovae ecx, dword [ebp - 0x468]
call fcn.00412ad0
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 0x37
call fcn.00401850
lea eax, [ebp - 0x4b0]
push eax
lea ecx, [ebp - 0xa28]
call fcn.00428910
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 0x38
cmp ecx, eax
je 0x41339b
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x41338c
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 0x413300
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.004286e0
mov byte [ebp - 4], 0x3d
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x41346d
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413463
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413665
push edx
push ecx
call fcn.004501a5
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.00428910
mov byte [ebp - 4], 0x41
cmp dword [ebp - 0x458], 0
je 0x413568
lea eax, [ebp - 0x468]
push eax
lea ecx, [ebp - 0x438]
call fcn.00401920
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 0x43
call fcn.00428250
test al, al
je 0x413504
lea edx, [ebp - 0x438]
lea ecx, [ebp - 0x480]
call fcn.0042e370
test al, al
je 0x413504
cmp dword [ebp - 0x454], 8
lea ecx, [ebp - 0x468]
cmovae ecx, dword [ebp - 0x468]
call fcn.00412ad0
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 0x41
call fcn.00401850
lea eax, [ebp - 0x4b0]
push eax
lea ecx, [ebp - 0x784]
call fcn.00428910
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 0x42
cmp ecx, eax
je 0x41354c
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x41353d
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 0x4134b1
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 0x3c
call fcn.00401850
lea ecx, [ebp - 0x784]
mov byte [ebp - 4], 0x32
call fcn.00428800
lea ecx, [ebp - 0xa28]
mov byte [ebp - 4], 0x2f
call fcn.00428800
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 0x4135e8
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4135de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41366a
push edx
push ecx
call fcn.004501a5
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.00450164
mov esp, ebp
pop ebp
ret 4
call fcn.0045559f
call fcn.0045559f
call fcn.0045559f
call fcn.0045559f
call fcn.0045559f
call fcn.0045559f
call fcn.0045559f
call fcn.0045559f
call fcn.0045559f
int3