Function at 0x40e7f0
Capabilities:
Check if file exists
Delete file
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55d5d6
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x5be26c]
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 - 0x7c]
push eax
call fcn.004278c0
mov ecx, eax
call fcn.00427890
mov eax, dword [ebp - 0x7c]
or ebx, 0xffffffff
mov dword [ebp - 4], 0
test eax, eax
jne 0x40e846
xor edi, edi
jmp 0x40eb88
push 1
push dword [eax + 0x18]
lea eax, [ebp - 0x74]
push eax
call fcn.00506020
mov eax, dword [ebp - 0x7c]
mov byte [ebp - 4], 1
mov eax, dword [eax + 0x18]
sub eax, 0x10
push eax
call fcn.004112d0
add esp, 0x10
lea esi, [eax + 0x10]
mov dword [ebp - 0x70], esi
mov byte [ebp - 4], 2
call fcn.00418ed0
mov ecx, eax
test ecx, ecx
je 0x40ebcb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x68], eax
push esi
push dword [ebp - 0x74]
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 3
push str._s_s.lnk
push eax
call fcn.00417390
mov esi, dword [ebp - 0x68]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e98c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0047a580
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40e98c
push 0x60
push str.d:jenkins.jenkinsworkspaceweiduangamemicrogamemicrogamebox_srcmicrogameboxinst_helper.cc
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], al
call fcn.004211a0
push 3
push 0x572954
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
call fcn.004211a0
mov byte [ebp - 4], 5
call fcn.0047a580
mov ebx, eax
lea ecx, [ebp - 0x11c]
push 0x229
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0040b1c0
mov edi, eax
push str.InstallHelper::AddStartMenu_delete_link_file:
push edi
mov byte [ebp - 4], 6
call fcn.0040c570
test esi, esi
mov ecx, 0x572928
cmovne ecx, esi
push ecx
push edi
call fcn.00409810
mov eax, dword [ebx]
add esp, 0x10
mov ecx, ebx
push edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x11c]
call fcn.0040cbc0
lea ecx, [ebp - 0x4c]
call fcn.0040bb80
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.0040bb80
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x28]
sub eax, 0x10
push eax
call fcn.004112d0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x80], eax
mov eax, 0xdb20
mov byte [ebp - 4], 7
mov word [ebp - 0x34], ax
mov edx, 0xdb65
mov eax, 0xdb26
mov ecx, 0xdb6f
mov word [ebp - 0x32], ax
xor edi, edi
mov eax, 0xdb67
mov ebx, 0xf
mov word [ebp - 0x30], ax
mov eax, 0xdb74
mov word [ebp - 0x2e], ax
mov eax, 0xdb31
mov word [ebp - 0x2c], dx
mov word [ebp - 0x2a], cx
mov word [ebp - 0x28], ax
mov eax, 0xdb75
mov word [ebp - 0x26], ax
mov eax, 0xdb68
mov word [ebp - 0x24], ax
mov eax, 0xdb7a
mov word [ebp - 0x22], ax
mov eax, 0xdb60
mov word [ebp - 0x20], ax
mov eax, 0xdb4d
mov word [ebp - 0x1e], cx
mov word [ebp - 0x1c], ax
mov eax, 0xdb7d
mov word [ebp - 0x1a], ax
mov eax, 0xdb77
mov word [ebp - 0x18], ax
mov eax, 0xdb70
mov word [ebp - 0x16], ax
mov eax, 0xdb19
mov word [ebp - 0x14], dx
mov word [ebp - 0x12], ax
mov ax, word [ebp - 0x34]
nop dword [eax + eax]
mov ax, word [ebp + edi*2 - 0x34]
mov ecx, edi
and ecx, ebx
movzx esi, ax
cmp ecx, ebx
mov eax, 0x92f6db08
mov edx, 0x945680ac
cmovae ecx, ebx
shl ecx, 2
call fcn.0046c590
and ax, 0xf
lea ecx, [edi - 0x24f8]
xor ax, cx
xor ax, si
mov word [ebp + edi*2 - 0x34], ax
inc edi
cmp edi, 0x12
jb 0x40ea50
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0040ad40
mov eax, dword [ebp - 0x7c]
mov byte [ebp - 4], 8
mov eax, dword [eax + 0x30]
sub eax, 0x10
push eax
call fcn.004112d0
lea esi, [eax + 0x10]
mov dword [ebp - 0x84], esi
mov edi, dword [ebp - 0x80]
push 0
push esi
push dword [ebp - 0x68]
mov byte [ebp - 4], 9
push dword [ebp - 0x6c]
push edi
push dword [ebp - 0x70]
call fcn.00411840
or ebx, 0xffffffff
mov byte [ebp - 4], 8
add esp, 0x1c
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40eaf0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x6c]
mov eax, ebx
mov byte [ebp - 4], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40eb0e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40eb29
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x68]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40eb47
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x70]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40eb65
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x74]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40eb83
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, 1
mov esi, dword [ebp - 0x78]
test esi, esi
je 0x40ebad
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x40ebad
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x40ebad
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, edi
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.0046c16d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00410dc0
int3