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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52c9db
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x5852e0]
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.004207e0
mov ecx, eax
call fcn.004207b0
mov eax, dword [ebp - 0x58]
or esi, 0xffffffff
mov dword [ebp - 4], 0
test eax, eax
jne 0x40f936
xor ebx, ebx
jmp 0x40fbc3
push 1
push dword [eax + 0x18]
lea eax, [ebp - 0x50]
push eax
call fcn.004cefb0
mov eax, dword [ebp - 0x58]
mov byte [ebp - 4], 1
mov eax, dword [eax + 0x18]
sub eax, 0x10
push eax
call fcn.00403400
mov ebx, eax
add esp, 0x10
lea esi, [ebx + 0x10]
mov dword [ebp - 0x5c], esi
mov byte [ebp - 4], 2
call fcn.00403610
mov ecx, eax
test ecx, ecx
je 0x40fc06
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.00403500
mov edi, dword [ebp - 0x4c]
add esp, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fa80
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0044ac30
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40fa80
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.0040c440
push 3
push 0x53f3bc
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.0040c440
mov byte [ebp - 4], 5
call fcn.0044ac30
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0xfc]
push 0x20b
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040dcb0
mov esi, eax
push str.InstallHelper::AddStartMenu_delete_link_file:
push esi
mov byte [ebp - 4], 6
call fcn.00409410
test edi, edi
mov ecx, 0x53f018
cmovne ecx, edi
push ecx
push esi
call fcn.00407070
mov ecx, dword [ebp - 0x48]
add esp, 0x10
mov eax, dword [ecx]
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xfc]
call fcn.00409540
lea ecx, [ebp - 0x28]
call fcn.00408b20
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00408b20
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 0x28]
sub eax, 0x10
push eax
call fcn.00403400
mov dword [ebp - 0x48], eax
add esp, 4
add eax, 0x10
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 7
call fcn.00403610
mov ecx, eax
test ecx, ecx
je 0x40fc10
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.004032c0
test al, al
jne 0x40fadd
push 0x11
push str.__fromstart_menu
lea ecx, [ebp - 0x44]
call fcn.00403ba0
mov eax, dword [ebp - 0x58]
mov byte [ebp - 4], 9
mov eax, dword [eax + 0x30]
sub eax, 0x10
push eax
call fcn.00403400
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.00410a30
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 0x40fb32
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 0x40fb50
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 0x40fb6b
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 0x40fb86
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 0x40fba0
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 0x40fbbe
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 0x40fbe8
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x40fbe8
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x40fbe8
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.00448d48
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004032a0
push 0x80004005
call fcn.004032a0
int3