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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5645f3
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x5c524c]
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 - 0x5c]
push eax
call fcn.00425550
mov ecx, eax
call fcn.00425520
mov eax, dword [ebp - 0x5c]
or esi, 0xffffffff
mov dword [ebp - 4], 0
test eax, eax
jne 0x40c606
xor ebx, ebx
jmp 0x40c866
push 1
push dword [eax + 0x18]
lea eax, [ebp - 0x54]
push eax
call fcn.0050e170
mov eax, dword [ebp - 0x5c]
mov byte [ebp - 4], 1
mov eax, dword [eax + 0x18]
sub eax, 0x10
push eax
call fcn.0040e8f0
mov ebx, eax
add esp, 0x10
lea esi, [ebx + 0x10]
mov dword [ebp - 0x60], esi
mov byte [ebp - 4], 2
call fcn.00415c50
mov ecx, eax
test ecx, ecx
je 0x40c8a9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4c], eax
push esi
push dword [ebp - 0x54]
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 3
push str._s_s.lnk
push eax
call fcn.00414530
mov edi, dword [ebp - 0x4c]
add esp, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c750
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00481b60
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40c750
push 0x5a
push str.d:jenkins.jenkinsworkspacemg_boxgame_boxmicrogamebox_srcmicrogameboxinst_helper.cc
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.0041ca10
push 3
push 0x579ac4
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.0041ca10
mov byte [ebp - 4], 5
call fcn.00481b60
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x100]
push 0x235
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00406ec0
mov esi, eax
push str.MicroInstaller::AddStartMenu_delete_link_file:
push esi
mov byte [ebp - 4], 6
call fcn.004081f0
test edi, edi
mov ecx, 0x579b78
cmovne ecx, edi
push ecx
push esi
call fcn.00405440
mov ecx, dword [ebp - 0x44]
add esp, 0x10
mov eax, dword [ecx]
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x100]
call fcn.0040ad10
lea ecx, [ebp - 0x28]
call fcn.004078d0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.004078d0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x28]
sub eax, 0x10
push eax
call fcn.0040e8f0
mov dword [ebp - 0x44], eax
add esp, 4
add eax, 0x10
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x45]
mov byte [ebp - 4], 7
call fcn.00409f90
push eax
lea ecx, [ebp - 0x50]
call fcn.00406a80
mov eax, dword [ebp - 0x5c]
mov byte [ebp - 4], 8
mov eax, dword [eax + 0x30]
sub eax, 0x10
push eax
call fcn.0040e8f0
lea esi, [eax + 0x10]
mov dword [ebp - 0x68], esi
mov eax, dword [ebp - 0x44]
push 0
push esi
push edi
push dword [ebp - 0x50]
add eax, 0x10
mov byte [ebp - 4], 9
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.0040ecd0
lea edx, [esi - 0x10]
mov byte [ebp - 4], 8
or esi, 0xffffffff
add esp, 0x1c
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c7d5
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], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c7f3
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], 3
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c80e
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 0x40c829
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 0x40c843
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x54]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c861
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, 1
mov edi, dword [ebp - 0x58]
test edi, edi
je 0x40c88b
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x40c88b
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x40c88b
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.0047268d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040e3e0
int3