Function at 0x40f970
Capabilities:
Check if file exists
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50673c
mov eax, dword fs:[0]
push eax
sub esp, 0xa4c
mov eax, dword [0x556754]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xa54], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0xa58], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fd82
mov dword [ebp - 0xa4c], 0
lea eax, [ebp - 0xa4c]
mov dword [ebp - 4], 0
push eax
push 0x516b60
push 0x17
push 0
push 0x518dcc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x40fd67
mov eax, dword [ebp - 0xa4c]
test eax, eax
je 0x40fd6d
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
test eax, eax
jne 0x40fd67
test edi, edi
je 0x40fa2e
mov eax, dword [ebp - 0xa4c]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
jne 0x40fd67
mov eax, dword [ebp - 0xa4c]
push 5
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
jne 0x40fd67
push 0x800
push eax
lea eax, [ebp - 0xa18]
push eax
call fcn.004d5900
push 0x400
lea eax, [ebp - 0xa18]
push esi
push eax
call fcn.004df935
add esp, 0x18
lea eax, [ebp - 0xa18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [ebp + 0x1c]
test esi, esi
js 0x40fac1
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004d5900
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [ebp - 0xa58]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov eax, dword [ebp - 0xa4c]
lea edx, [ebp - 0x218]
push esi
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0xa4c]
lea edx, [ebp - 0xa18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
jne 0x40fd67
xor ecx, ecx
mov dword [ebp - 0xa50], ecx
mov eax, dword [ebp - 0xa4c]
mov byte [ebp - 4], 1
test eax, eax
je 0x40fd4f
mov ecx, dword [eax]
lea edx, [ebp - 0xa50]
push edx
push 0x51660c
push eax
call dword [ecx]
test eax, eax
jns 0x40fb18
xor ecx, ecx
mov dword [ebp - 0xa50], ecx
jmp 0x40fd49
mov ecx, dword [ebp - 0xa50]
test ecx, ecx
je 0x40fd49
mov eax, dword [ecx]
push 1
push dword [ebp - 0xa54]
push ecx
call dword [eax + 0x18]
test eax, eax
jne 0x40fd43
call fcn.00437e80
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
test al, al
je 0x40fd30
mov dword [ebp - 0xa30], 0
lea ecx, [ebp - 0xa30]
push 0x50
mov dword [ebp - 0xa20], 0
mov dword [ebp - 0xa1c], 0xf
mov byte [ebp - 0xa30], 0
call fcn.0040bc80
movups xmm0, xmmword [str.D:workWeiDuanGameMicroGameBox_srcmicrogameboxinst_helper.cc]
mov dword [ebp - 0xa20], 0x40
mov dword [ebp - 0xa1c], 0x4f
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x515dd0]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [0x515de0]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [0x515df0]
movups xmmword [eax + 0x30], xmm0
mov byte [eax + 0x40], 0
mov dword [ebp - 0xa30], eax
mov ax, word [0x515dac]
mov dword [ebp - 0xa48], 0
mov word [ebp - 0xa48], ax
mov al, byte [str._install]
mov dword [ebp - 0xa34], 0xf
mov dword [ebp - 0xa38], 3
mov byte [ebp - 0xa46], al
mov byte [ebp - 0xa45], 0
mov byte [ebp - 4], 3
call fcn.00437e80
mov edi, eax
lea ecx, [ebp - 0xa8]
push 0x247
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0xa48]
push eax
call fcn.0040d2d0
mov esi, eax
push str.CreateShortcut__create___
push esi
mov byte [ebp - 4], 4
call fcn.00406fa0
mov eax, dword [ebp - 0xa54]
mov ecx, 0x515a88
test eax, eax
cmovne ecx, eax
push ecx
push esi
call fcn.00406fa0
push str._success
push esi
call fcn.00408ea0
mov eax, dword [edi]
add esp, 0x18
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xa8]
call fcn.00408fe0
mov edx, dword [ebp - 0xa34]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x40fcbc
mov ecx, dword [ebp - 0xa48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fcb2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fd9d
push edx
push ecx
call fcn.004b592c
add esp, 8
mov edx, dword [ebp - 0xa1c]
mov dword [ebp - 0xa38], 0
mov dword [ebp - 0xa34], 0xf
mov byte [ebp - 0xa48], 0
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x40fd15
mov ecx, dword [ebp - 0xa30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fd0b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fd9d
push edx
push ecx
call fcn.004b592c
add esp, 8
mov dword [ebp - 0xa20], 0
mov dword [ebp - 0xa1c], 0xf
mov byte [ebp - 0xa30], 0
mov eax, dword [ebp - 0xa4c]
mov esi, 1
mov ecx, dword [ebp - 0xa50]
jmp 0x40fd51
mov ecx, dword [ebp - 0xa50]
mov eax, dword [ebp - 0xa4c]
xor esi, esi
mov byte [ebp - 4], 0
test ecx, ecx
je 0x40fd6f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0xa4c]
jmp 0x40fd6f
mov eax, dword [ebp - 0xa4c]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x40fd80
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b5d96
mov esp, ebp
pop ebp
ret
call fcn.004d899e
int3