Function at 0x40d720
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5063fc
mov eax, dword fs:[0]
push eax
sub esp, 0x174
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
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xc8], 0
push eax
call fcn.00418950
mov ecx, eax
call fcn.00418920
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 4], 0
test eax, eax
jne 0x40d7b7
mov edi, dword [ebp - 0xd4]
test edi, edi
je 0x40e23b
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x40e23b
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x40e23b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x40e23b
push 0
push dword [eax + 0x10]
lea eax, [ebp - 0xc0]
push eax
call fcn.004bb3f0
add esp, 0xc
push 4
push str..lnk
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 1
call fcn.0040f260
push dword [ebp - 0xc0]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40db44
push dword [ebp - 0xc0]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00437e80
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
test al, al
je 0x40db44
mov eax, dword [ebp - 0xc0]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0
push 0x50
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
call fcn.0040bc80
movups xmm0, xmmword [str.D:workWeiDuanGameMicroGameBox_srcmicrogameboxinst_helper.cc]
mov dword [ebp - 0x7c], 0x40
mov dword [ebp - 0x78], 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 - 0x8c], eax
mov ax, word [0x515dac]
mov dword [ebp - 0xa4], 0
mov word [ebp - 0xa4], ax
mov al, byte [str._install]
mov dword [ebp - 0x90], 0xf
mov dword [ebp - 0x94], 3
mov byte [ebp - 0xa2], al
mov byte [ebp - 0xa1], 0
mov byte [ebp - 4], 3
call fcn.00437e80
push 1
lea ecx, [ebp - 0x180]
mov dword [ebp - 0xc4], eax
call fcn.00407770
push 0xffffffffffffffff
push 0x515a98
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 4
call fcn.0040c9a0
push 0xffffffffffffffff
push 0x515a9c
lea ecx, [ebp - 0x8c]
mov esi, eax
call fcn.0040c9a0
push 0x64
mov edi, eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004d5900
add esp, 0xc
cmp edi, 0xffffffff
je 0x40da17
lea eax, [edi - 1]
cmp esi, eax
jae 0x40da17
mov eax, dword [ebp - 0x7c]
lea edx, [esi + 1]
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0xf
cmp eax, edx
jb 0x40e25c
sub edi, esi
sub eax, edx
lea ecx, [edi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x78], 0x10
lea eax, [ebp - 0x8c]
cmovae eax, dword [ebp - 0x8c]
push ecx
add eax, edx
lea ecx, [ebp - 0xbc]
push eax
call fcn.0040c050
cmp dword [ebp - 0xa8], 0x10
lea eax, [ebp - 0xbc]
cmovae eax, dword [ebp - 0xbc]
push eax
push 0x1df
lea eax, [ebp - 0x74]
push str.__4d___s_
push eax
call fcn.004074e0
mov edx, dword [ebp - 0xa8]
add esp, 0x10
cmp edx, 0x10
jb 0x40d9fa
mov ecx, dword [ebp - 0xbc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d9f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e261
push edx
push ecx
call fcn.004b592c
add esp, 8
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0xf
mov byte [ebp - 0xbc], 0
jmp 0x40da2d
push 0x1df
lea eax, [ebp - 0x74]
push str.__4d_
push eax
call fcn.004074e0
add esp, 0xc
cmp dword [ebp - 0x90], 0x10
lea eax, [ebp - 0xa4]
cmovae eax, dword [ebp - 0xa4]
push eax
lea eax, [ebp - 0x180]
push eax
call fcn.00408ea0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x180]
push eax
call fcn.00408ea0
lea eax, [ebp - 0x180]
mov byte [ebp - 4], 5
push str.InstallHelper::AddDeskIcon_delete_desk_lnk:
push eax
call fcn.00408ea0
mov ecx, dword [ebp - 0xcc]
mov eax, 0x515a88
test ecx, ecx
cmovne eax, ecx
push eax
lea eax, [ebp - 0x180]
push eax
call fcn.00406fa0
mov ecx, dword [ebp - 0xc4]
lea edx, [ebp - 0x180]
add esp, 0x20
mov eax, dword [ecx]
push edx
call dword [eax + 0x1c]
lea ecx, [ebp - 0x180]
call fcn.00408fe0
mov edx, dword [ebp - 0x90]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x40daee
mov ecx, dword [ebp - 0xa4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dae4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e266
push edx
push ecx
call fcn.004b592c
add esp, 8
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 0xa4], 0
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x40db44
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40db3a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e266
push edx
push ecx
call fcn.004b592c
add esp, 8
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 0x4c]
sub eax, 0x10
push eax
call fcn.0040f630
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0xe0], esi
cmp dword [esi - 0xc], 0
mov byte [ebp - 4], 6
jne 0x40dbe4
lea edx, [esi - 0x10]
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40db8a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc0]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40dbab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0xd4]
test edi, edi
je 0x40e23b
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x40e23b
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x40e23b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x40e23b
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 0x20]
sub eax, 0x10
push eax
call fcn.0040f630
add esp, 4
lea edi, [eax + 0x10]
mov dword [ebp - 0xe4], edi
push edi
mov byte [ebp - 4], 7
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40dca8
lea edx, [edi - 0x10]
mov byte [ebp - 4], 6
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40dc33
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov byte [ebp - 4], 1
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40dc4e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc0]
mov eax, edi
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40dc6f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0xd4]
test esi, esi
je 0x40e23b
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40e23b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x40e23b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x40e23b
call fcn.0040b050
mov ecx, eax
test ecx, ecx
je 0x40e26b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xc4], eax
push str.__fromdesk_icon
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 8
call fcn.0040f500
test al, al
jne 0x40dcf1
push 0x10
push str.__fromdesk_icon
lea ecx, [ebp - 0xc4]
call fcn.0040b860
mov eax, dword [ebp - 0xd8]
mov byte [ebp - 4], 9
mov eax, dword [eax + 0x28]
sub eax, 0x10
push eax
call fcn.0040f630
mov dword [ebp - 0xcc], eax
add esp, 4
add eax, 0x10
mov dword [ebp - 0xe8], eax
push eax
mov byte [ebp - 4], 0xa
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40dd72
mov edx, dword [ebp - 0xcc]
or eax, 0xffffffff
mov byte [ebp - 4], 9
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40dd47
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc4]
or eax, 0xffffffff
mov byte [ebp - 4], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40dc15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40dc15
mov eax, dword [ebp - 0xcc]
push 0
add eax, 0x10
push eax
push dword [ebp - 0xc0]
push dword [ebp - 0xc4]
push edi
push esi
call fcn.0040f970
add esp, 0x18
test eax, eax
jne 0x40e0d0
call fcn.00437e80
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
test al, al
je 0x40e0d0
mov dword [ebp - 0x8c], 0
lea ecx, [ebp - 0x8c]
push 0x50
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
call fcn.0040bc80
movups xmm0, xmmword [str.D:workWeiDuanGameMicroGameBox_srcmicrogameboxinst_helper.cc]
mov dword [ebp - 0x7c], 0x40
mov dword [ebp - 0x78], 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 - 0x8c], eax
mov ax, word [0x515c5c]
mov dword [ebp - 0xa4], 0
mov word [ebp - 0xa4], ax
mov al, byte [0x515c5e]
mov dword [ebp - 0x90], 0xf
mov dword [ebp - 0x94], 3
mov byte [ebp - 0xa2], al
mov byte [ebp - 0xa1], 0
mov byte [ebp - 4], 0xc
call fcn.00437e80
push 1
lea ecx, [ebp - 0x180]
mov dword [ebp - 0xd0], eax
call fcn.00407770
push 0xffffffffffffffff
push 0x515a98
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xd
call fcn.0040c9a0
push 0xffffffffffffffff
push 0x515a9c
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0xdc], eax
call fcn.0040c9a0
push 0x64
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004d5900
mov eax, dword [ebp - 0xc8]
add esp, 0xc
cmp eax, 0xffffffff
je 0x40dfc0
mov ecx, dword [ebp - 0xdc]
dec eax
cmp ecx, eax
jae 0x40dfc0
mov eax, dword [ebp - 0x7c]
lea edx, [ecx + 1]
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0xf
cmp eax, edx
jb 0x40e275
sub dword [ebp - 0xc8], ecx
sub eax, edx
mov ecx, dword [ebp - 0xc8]
dec ecx
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x78], 0x10
lea eax, [ebp - 0x8c]
cmovae eax, dword [ebp - 0x8c]
push ecx
add eax, edx
lea ecx, [ebp - 0xbc]
push eax
call fcn.0040c050
cmp dword [ebp - 0xa8], 0x10
lea eax, [ebp - 0xbc]
cmovae eax, dword [ebp - 0xbc]
push eax
push 0x1f4
lea eax, [ebp - 0x74]
push str.__4d___s_
push eax
call fcn.004074e0
mov edx, dword [ebp - 0xa8]
add esp, 0x10
cmp edx, 0x10
jb 0x40dfa3
mov ecx, dword [ebp - 0xbc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40df99
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e27a
push edx
push ecx
call fcn.004b592c
add esp, 8
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0xf
mov byte [ebp - 0xbc], 0
jmp 0x40dfd6
push 0x1f4
lea eax, [ebp - 0x74]
push str.__4d_
push eax
call fcn.004074e0
add esp, 0xc
cmp dword [ebp - 0x90], 0x10
lea eax, [ebp - 0xa4]
cmovae eax, dword [ebp - 0xa4]
push eax
lea eax, [ebp - 0x180]
push eax
call fcn.00408ea0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x180]
push eax
call fcn.00408ea0
lea eax, [ebp - 0x180]
mov byte [ebp - 4], 0xe
push str.InstallHelper::AddDeskIcon_FAILED
push eax
call fcn.00408ea0
mov ecx, dword [ebp - 0xd0]
lea edx, [ebp - 0x180]
add esp, 0x18
mov eax, dword [ecx]
push edx
call dword [eax + 0x1c]
lea ecx, [ebp - 0x180]
call fcn.00408fe0
mov edx, dword [ebp - 0x90]
mov byte [ebp - 4], 0xb
cmp edx, 0x10
jb 0x40e07a
mov ecx, dword [ebp - 0xa4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e070
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e27f
push edx
push ecx
call fcn.004b592c
add esp, 8
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 0xa4], 0
mov byte [ebp - 4], 0xa
cmp edx, 0x10
jb 0x40e0d0
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e0c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e27f
push edx
push ecx
call fcn.004b592c
add esp, 8
push 0
push 0x2a
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0x1000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [0x55bc34]
test ecx, ecx
jne 0x40e159
push 0x55602c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x55bc34], 0
jne 0x40e148
push 4
call fcn.004b58fc
add esp, 4
mov dword [ebp - 0xd0], eax
mov byte [ebp - 4], 0xf
test eax, eax
je 0x40e136
mov ecx, eax
call fcn.00439200
mov ecx, eax
jmp 0x40e138
xor ecx, ecx
mov byte [ebp - 4], 0xa
xchg dword [ebp - 0xd0], eax
mov dword [0x55bc34], ecx
push 0x55602c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x55bc34]
push str.http:__s.ludashi.com_wan_typetypeactionactionpidpidmidmidmid2mid2
push 0
push 1
push 0
push str.add_desk_icon
call fcn.004392a0
mov edx, dword [ebp - 0xcc]
or eax, 0xffffffff
mov dword [ebp - 0xc8], 1
mov byte [ebp - 4], 9
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e197
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc4]
or eax, 0xffffffff
mov byte [ebp - 4], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e1b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 6
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e1d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40e1f2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc0]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e213
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0xd4]
test esi, esi
je 0x40e23b
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40e23b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x40e23b
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [ebp - 0xc8]
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.0040bc70
call fcn.004d899e
call fcn.004d899e
push 0x80004005
call fcn.00404b30
call fcn.0040bc70
call fcn.004d899e
call fcn.004d899e
int3