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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506510
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
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 - 0x60]
push eax
call fcn.00418950
mov ecx, eax
call fcn.00418920
mov eax, dword [ebp - 0x60]
or esi, 0xffffffff
mov dword [ebp - 4], 0
test eax, eax
jne 0x40e606
mov dword [ebp - 0x44], eax
jmp 0x40e955
push 1
push dword [eax + 0x10]
lea eax, [ebp - 0x58]
push eax
call fcn.004bb690
mov eax, dword [ebp - 0x60]
mov byte [ebp - 4], 1
mov eax, dword [eax + 0x10]
sub eax, 0x10
push eax
call fcn.0040f630
add esp, 0x10
mov dword [ebp - 0x54], eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x64], esi
mov byte [ebp - 4], 2
call fcn.0040b050
mov ecx, eax
test ecx, ecx
je 0x40e998
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x4c], eax
push esi
push dword [ebp - 0x58]
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 3
push str._s_s.lnk
push eax
call fcn.00409580
mov edi, dword [ebp - 0x4c]
add esp, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e80a
push edi
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 0x40e80a
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x40]
push 0x50
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.0040bc80
movups xmm0, xmmword [str.D:workWeiDuanGameMicroGameBox_srcmicrogameboxinst_helper.cc]
mov dword [ebp - 0x30], 0x40
mov dword [ebp - 0x2c], 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 - 0x40], eax
mov ax, word [0x515dac]
mov dword [ebp - 0x28], 0
mov word [ebp - 0x28], ax
mov al, byte [str._install]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 3
mov byte [ebp - 0x26], al
mov byte [ebp - 0x25], 0
mov byte [ebp - 4], 5
call fcn.00437e80
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x100]
push 0x1c4
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040d2d0
mov esi, eax
push str.InstallHelper::AddStartMenu_delete_link_file:
push esi
mov byte [ebp - 4], 6
call fcn.00408ea0
test edi, edi
mov ecx, 0x515a88
cmovne ecx, edi
push ecx
push esi
call fcn.00406fa0
mov ecx, dword [ebp - 0x44]
add esp, 0x10
mov eax, dword [ecx]
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x100]
call fcn.00408fe0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 4
cmp edx, 0x10
jb 0x40e7c0
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e7b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e9a2
push edx
push ecx
call fcn.004b592c
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x40e80a
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e800
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e9a2
push edx
push ecx
call fcn.004b592c
add esp, 8
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 0x20]
sub eax, 0x10
push eax
call fcn.0040f630
mov dword [ebp - 0x50], eax
add esp, 4
add eax, 0x10
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 7
call fcn.0040b050
mov ecx, eax
test ecx, ecx
je 0x40e9a7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x48], eax
push str.__fromstart_menu
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 8
call fcn.0040f500
test al, al
jne 0x40e869
push 0x11
push str.__fromstart_menu
lea ecx, [ebp - 0x48]
call fcn.0040b860
mov eax, dword [ebp - 0x60]
mov byte [ebp - 4], 9
mov eax, dword [eax + 0x28]
sub eax, 0x10
push eax
call fcn.0040f630
lea esi, [eax + 0x10]
mov dword [ebp - 0x44], esi
mov eax, dword [ebp - 0x50]
push 0
push esi
push edi
push dword [ebp - 0x48]
add eax, 0x10
mov byte [ebp - 4], 0xa
push eax
mov eax, dword [ebp - 0x54]
add eax, 0x10
push eax
call fcn.0040f970
lea edx, [esi - 0x10]
mov dword [ebp - 0x44], 1
or esi, 0xffffffff
mov byte [ebp - 4], 9
add esp, 0x1c
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e8c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x48]
mov eax, esi
mov byte [ebp - 4], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e8e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x50]
mov eax, esi
mov byte [ebp - 4], 3
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e901
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40e91c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x54]
mov eax, esi
mov byte [ebp - 4], 1
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e937
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x58]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e955
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x5c]
test edi, edi
je 0x40e97a
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x40e97a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x40e97a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov eax, dword [ebp - 0x44]
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
push 0x80004005
call fcn.00404b30
call fcn.004d899e
push 0x80004005
call fcn.00404b30
int3