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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5513cb
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x5b228c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041de10
mov ecx, eax
call fcn.0041dde0
mov eax, dword [ebp - 0x58]
or esi, 0xffffffff
mov dword [ebp - 4], 0
test eax, eax
jne 0x4075b6
xor ebx, ebx
jmp 0x407843
push 1
push dword [eax + 0x18]
lea eax, [ebp - 0x50]
push eax
call fcn.004fae70
mov eax, dword [ebp - 0x58]
mov byte [ebp - 4], 1
mov eax, dword [eax + 0x18]
sub eax, 0x10
push eax
call fcn.004098c0
mov ebx, eax
add esp, 0x10
lea esi, [ebx + 0x10]
mov dword [ebp - 0x5c], esi
mov byte [ebp - 4], 2
call fcn.004106d0
mov ecx, eax
test ecx, ecx
je 0x407886
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4c], eax
push esi
push dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 3
push str._s_s.lnk
push eax
call fcn.0040f6a0
mov edi, dword [ebp - 0x4c]
add esp, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407700
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0046f390
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x407700
push 0x60
push str.d:jenkins.jenkinsworkspaceweiduangamemicrogamemicrogamebox_srcmicrogameboxinst_helper.cc
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.004174a0
push 3
push 0x566acc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004174a0
mov byte [ebp - 4], 5
call fcn.0046f390
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0xfc]
push 0x21c
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00404570
mov esi, eax
push str.InstallHelper::AddStartMenu_delete_link_file:
push esi
mov byte [ebp - 4], 6
call fcn.00405960
test edi, edi
mov ecx, 0x566aa0
cmovne ecx, edi
push ecx
push esi
call fcn.00403250
mov ecx, dword [ebp - 0x48]
add esp, 0x10
mov eax, dword [ecx]
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xfc]
call fcn.00405d60
lea ecx, [ebp - 0x28]
call fcn.00404f30
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00404f30
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0x28]
sub eax, 0x10
push eax
call fcn.004098c0
mov dword [ebp - 0x48], eax
add esp, 4
add eax, 0x10
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 7
call fcn.004106d0
mov ecx, eax
test ecx, ecx
je 0x407890
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x44], eax
push str.__fromstart_menu
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 8
call fcn.004093d0
test al, al
jne 0x40775d
push 0x11
push str.__fromstart_menu
lea ecx, [ebp - 0x44]
call fcn.004157e0
mov eax, dword [ebp - 0x58]
mov byte [ebp - 4], 9
mov eax, dword [eax + 0x30]
sub eax, 0x10
push eax
call fcn.004098c0
lea esi, [eax + 0x10]
mov dword [ebp - 0x64], esi
mov eax, dword [ebp - 0x48]
push 0
push esi
push edi
push dword [ebp - 0x44]
add eax, 0x10
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.00409c90
lea edx, [esi - 0x10]
mov byte [ebp - 4], 9
or esi, 0xffffffff
add esp, 0x1c
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4077b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x44]
mov eax, esi
mov byte [ebp - 4], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4077d0
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], 3
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4077eb
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 0x407806
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, ebx
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407820
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], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40783e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, 1
mov edi, dword [ebp - 0x54]
test edi, edi
je 0x407868
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x407868
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x407868
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00460f8d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004093b0
push 0x80004005
call fcn.004093b0
int3