Function at 0x4650a0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file
Persist via lnk shortcut
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a3fd
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x5c324c]
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
mov dword [ebp - 4], 2
call fcn.00480fd0
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x465222
push 0x60
push str.d:jenkins.jenkinsworkspaceweiduangamemicrogamemicrogamebox_srcmicrogameboxutilsutils.cc
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 0xa4], al
call fcn.0041cb60
push 3
push 0x577b98
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
call fcn.0041cb60
mov byte [ebp - 4], 4
call fcn.00480fd0
mov edi, eax
lea ecx, [ebp - 0x174]
push 0x466
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00406db0
mov esi, eax
push str.RemoveInstalledDir
push esi
mov byte [ebp - 4], 5
call fcn.00405440
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x174]
call fcn.0040ac30
mov edx, dword [ebp - 0x78]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x4651cf
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4651c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465a4e
push edx
push ecx
call fcn.00472cbf
add esp, 8
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x465222
mov ecx, dword [ebp - 0xa4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x465218
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465a53
push edx
push ecx
call fcn.00472cbf
add esp, 8
mov eax, dword [ebp + 0x10]
or ebx, 0xffffffff
cmp dword [eax - 0xc], 8
jl 0x465a44
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x465a44
call fcn.00480fd0
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4654e3
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x8c]
push 0x60
push str.d:jenkins.jenkinsworkspaceweiduangamemicrogamemicrogamebox_srcmicrogameboxutilsutils.cc
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
call fcn.0041cb60
push 3
push 0x577b98
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 6
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0xf
mov byte [ebp - 0xbc], 0
call fcn.0041cb60
mov byte [ebp - 4], 7
call fcn.00480fd0
push 1
push 2
lea ecx, [ebp - 0x174]
mov dword [ebp - 0xcc], eax
call fcn.00406a10
push ebx
push 0x577b7c
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 8
call fcn.0041de20
push ebx
push 0x577b80
lea ecx, [ebp - 0x8c]
mov edi, eax
call fcn.0041de20
push 0x64
mov esi, eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.0051ce00
add esp, 0xc
cmp esi, ebx
je 0x4653b6
lea eax, [esi - 1]
cmp edi, eax
jae 0x4653b6
mov eax, dword [ebp - 0x7c]
lea edx, [edi + 1]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 0xa4], 0
cmp eax, edx
jb 0x465a58
sub esi, edi
sub eax, edx
lea ecx, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x78], 0x10
lea eax, [ebp - 0x8c]
cmovae eax, dword [ebp - 0x8c]
push ecx
add eax, edx
lea ecx, [ebp - 0xa4]
push eax
call fcn.0041cb60
cmp dword [ebp - 0x90], 0x10
lea eax, [ebp - 0xa4]
cmovae eax, dword [ebp - 0xa4]
push eax
push 0x46b
lea eax, [ebp - 0x74]
push str.__4d___s_
push eax
call fcn.004064b0
add esp, 0x10
lea ecx, [ebp - 0xa4]
call fcn.00407770
jmp 0x4653cc
push 0x46b
lea eax, [ebp - 0x74]
push str.__4d_
push eax
call fcn.004064b0
add esp, 0xc
cmp dword [ebp - 0xa8], 0x10
lea eax, [ebp - 0xbc]
cmovae eax, dword [ebp - 0xbc]
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.00408110
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.00408110
lea eax, [ebp - 0x174]
mov byte [ebp - 4], 9
push str._RemoveInstalledDir__delete:
push eax
call fcn.00405440
mov ecx, dword [ebp - 0xd0]
mov eax, 0x577b6c
test ecx, ecx
cmovne eax, ecx
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.00405440
mov ecx, dword [ebp - 0xcc]
lea edx, [ebp - 0x174]
add esp, 0x20
mov eax, dword [ecx]
push edx
call dword [eax + 0x1c]
lea ecx, [ebp - 0x174]
call fcn.0040ac30
mov edx, dword [ebp - 0xa8]
mov byte [ebp - 4], 6
cmp edx, 0x10
jb 0x46548d
mov ecx, dword [ebp - 0xbc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x465483
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465a5d
push edx
push ecx
call fcn.00472cbf
add esp, 8
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0xf
mov byte [ebp - 0xbc], 0
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x4654e3
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4654d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x465a62
push edx
push ecx
call fcn.00472cbf
add esp, 8
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x465502
test al, 1
je 0x465502
and eax, 0xfffffffe
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call fcn.00415b90
mov ecx, eax
test ecx, ecx
je 0x465a67
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc8], eax
push dword [ebp + 8]
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 0xa
push dword [ebp + 0x10]
push str._s_s.json
push eax
call fcn.004144a0
mov esi, dword [ebp - 0xc8]
add esp, 0x10
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x46557d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46557d
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x465572
push esi
call edi
test eax, eax
jne 0x46557d
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
call fcn.00415b90
mov ecx, eax
test ecx, ecx
je 0x465a71
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc4], eax
push dword [ebp + 8]
lea eax, [ebp - 0xc4]
mov byte [ebp - 4], 0xb
push dword [ebp + 0x10]
push str._s_s.exe
push eax
call fcn.004144a0
mov esi, dword [ebp - 0xc4]
add esp, 0x10
push esi
call edi
test eax, eax
jne 0x4655f2
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4655f2
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4655e7
push esi
call edi
test eax, eax
jne 0x4655f2
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
call fcn.00415b90
mov ecx, eax
test ecx, ecx
je 0x465a7b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xcc], eax
push dword [ebp + 8]
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 0xc
push dword [ebp + 0x10]
push str._s_s.ico
push eax
call fcn.004144a0
mov edi, dword [ebp - 0xcc]
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call esi
test eax, eax
jne 0x46566d
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46566d
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x465662
push edi
call esi
test eax, eax
jne 0x46566d
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
call fcn.00415b90
mov ecx, eax
test ecx, ecx
je 0x465a85
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xd0], eax
push dword [ebp + 8]
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 0xd
push dword [ebp + 0x10]
push str._s_s.ui
push eax
call fcn.004144a0
mov esi, dword [ebp - 0xd0]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4656ea
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4656ea
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4656df
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4656ea
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
je 0x4657a8
call fcn.00415b90
mov ecx, eax
test ecx, ecx
je 0x465a8f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc0], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0xe
push dword [ebp + 0x10]
push str._s_s.lnk
push eax
call fcn.004144a0
add esp, 0x10
push dword [ebp - 0xc0]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x465787
push dword [ebp - 0xc0]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x465787
push 0x80
push dword [ebp - 0xc0]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x465777
push dword [ebp - 0xc0]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x465787
push 4
push 0
push dword [ebp - 0xc0]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp - 0xc0]
mov eax, ebx
mov byte [ebp - 4], 0xd
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4657a8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4659cc
call fcn.00480fd0
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4658d9
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0xd1]
mov dword [ebp - 0xd8], eax
call fcn.00460780
push 0x60
push str.d:jenkins.jenkinsworkspaceweiduangamemicrogamemicrogamebox_srcmicrogameboxutilsutils.cc
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
call fcn.0041cb60
push 3
push 0x577c8c
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 0xa4], 0
call fcn.0041cb60
mov byte [ebp - 4], 0x10
call fcn.00480fd0
mov dword [ebp - 0xdc], eax
lea ecx, [ebp - 0x174]
push 0x48e
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00406db0
mov ebx, eax
push dword [ebp - 0xc0]
mov byte [ebp - 4], 0x11
push ebx
call fcn.00408110
mov eax, dword [ebp - 0xd8]
mov ecx, 0x577b6c
test eax, eax
cmovne ecx, eax
push ecx
push ebx
call fcn.00405440
mov ecx, dword [ebp - 0xdc]
add esp, 0x10
mov eax, dword [ecx]
push ebx
call dword [eax + 0x1c]
lea ecx, [ebp - 0x174]
call fcn.0040ac30
lea ecx, [ebp - 0xa4]
call fcn.00407770
lea ecx, [ebp - 0x8c]
call fcn.00407770
or ebx, 0xffffffff
mov byte [ebp - 4], 0xc
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4658f4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x46590f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc4]
mov eax, ebx
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x465930
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc8]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x465951
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
mov edx, dword [ebp + 8]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x465971
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46598f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4659ae
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.00472b5d
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 0xc
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4659e7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x465a02
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc4]
mov eax, ebx
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x465a23
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc8]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x465a44
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x465953
call fcn.005213e9
call fcn.005213e9
call fcn.0041c610
call fcn.005213e9
call fcn.005213e9
push 0x80004005
call fcn.0040e300
push 0x80004005
call fcn.0040e300
push 0x80004005
call fcn.0040e300
push 0x80004005
call fcn.0040e300
push 0x80004005
call fcn.0040e300
int3