Function at 0x435a10
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 0x530c01
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
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
mov dword [ebp - 4], 2
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 0x435b6e
push 0x60
push str.d:jenkins.jenkinsworkspaceweiduangamemicrogamemicrogamebox_srcmicrogameboxutilsutils.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], 3
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040c440
mov byte [ebp - 4], 4
call fcn.0044ac30
mov edi, eax
lea ecx, [ebp - 0xf0]
push 0x44c
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040dcb0
mov esi, eax
push str.RemoveInstalledDir
push esi
mov byte [ebp - 4], 5
call fcn.00407070
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xf0]
call fcn.00409540
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x435b24
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x435b1a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4361ad
push edx
push ecx
call fcn.00448aa0
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x435b6e
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x435b64
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4361b2
push edx
push ecx
call fcn.00448aa0
add esp, 8
mov eax, dword [ebp + 0x10]
or ebx, 0xffffffff
cmp dword [eax - 0xc], 8
jl 0x4361a3
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4361a3
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 0x435ccd
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0x40]
push 0x60
push str.d:jenkins.jenkinsworkspaceweiduangamemicrogamemicrogamebox_srcmicrogameboxutilsutils.cc
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], 6
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040c440
mov byte [ebp - 4], 7
call fcn.0044ac30
mov edi, eax
lea ecx, [ebp - 0xf0]
push 0x451
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040dcb0
mov esi, eax
push str._RemoveInstalledDir__delete:
push esi
mov byte [ebp - 4], 8
call fcn.00407070
test ebx, ebx
mov ecx, 0x53f018
cmovne ecx, ebx
push ecx
push esi
call fcn.00407070
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xf0]
call fcn.00409540
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 6
cmp edx, 0x10
jb 0x435c80
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x435c76
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4361b7
push edx
push ecx
call fcn.00448aa0
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x435cca
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x435cc0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4361bc
push edx
push ecx
call fcn.00448aa0
add esp, 8
or ebx, 0xffffffff
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x435cec
test al, 1
je 0x435cec
and eax, 0xfffffffe
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call fcn.00403610
mov ecx, eax
test ecx, ecx
je 0x4361c1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4c], eax
push dword [ebp + 8]
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 9
push dword [ebp + 0x10]
push str._s_s.json
push eax
call fcn.00403500
mov esi, dword [ebp - 0x4c]
add esp, 0x10
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
jne 0x435d5e
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x435d5e
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x435d53
push esi
call edi
test eax, eax
jne 0x435d5e
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
call fcn.00403610
mov ecx, eax
test ecx, ecx
je 0x4361cb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x48], eax
push dword [ebp + 8]
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xa
push dword [ebp + 0x10]
push str._s_s.exe
push eax
call fcn.00403500
mov esi, dword [ebp - 0x48]
add esp, 0x10
push esi
call edi
test eax, eax
jne 0x435dca
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x435dca
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x435dbf
push esi
call edi
test eax, eax
jne 0x435dca
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
call fcn.00403610
mov ecx, eax
test ecx, ecx
je 0x4361d5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x44], eax
push dword [ebp + 8]
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0xb
push dword [ebp + 0x10]
push str._s_s.ico
push eax
call fcn.00403500
mov edi, dword [ebp - 0x44]
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call esi
test eax, eax
jne 0x435e3c
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x435e3c
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x435e31
push edi
call esi
test eax, eax
jne 0x435e3c
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
call fcn.00403610
mov ecx, eax
test ecx, ecx
je 0x4361df
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x54], eax
push dword [ebp + 8]
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0xc
push dword [ebp + 0x10]
push str._s_s.ui
push eax
call fcn.00403500
mov esi, dword [ebp - 0x54]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x435eb0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x435eb0
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x435ea5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x435eb0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
je 0x435f4f
call fcn.00403610
mov ecx, eax
test ecx, ecx
je 0x4361e9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x50], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0xd
push dword [ebp + 0x10]
push str._s_s.lnk
push eax
call fcn.00403500
mov edi, dword [ebp - 0x50]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x435f31
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x435f31
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x435f26
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x435f31
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 4], 0xc
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x435f4c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x44]
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 0x436131
call fcn.0044ac30
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x436044
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x28]
push 0x60
push str.d:jenkins.jenkinsworkspaceweiduangamemicrogamemicrogamebox_srcmicrogameboxutilsutils.cc
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040c440
push 3
push 0x53f28c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.0040c440
mov byte [ebp - 4], 0xf
call fcn.0044ac30
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0xf0]
push 0x474
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040dcb0
mov ebx, eax
push str.RemoveInstalledDir__failed_delete:
push ebx
mov byte [ebp - 4], 0x10
call fcn.00409410
mov eax, dword [ebp - 0x50]
mov ecx, 0x53f018
test eax, eax
cmovne ecx, eax
push ecx
push ebx
call fcn.00407070
mov ecx, dword [ebp - 0x58]
add esp, 0x10
mov eax, dword [ecx]
push ebx
call dword [eax + 0x1c]
lea ecx, [ebp - 0xf0]
call fcn.00409540
lea ecx, [ebp - 0x40]
call fcn.00408b20
lea ecx, [ebp - 0x28]
call fcn.00408b20
or ebx, 0xffffffff
mov byte [ebp - 4], 0xb
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x43605f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x43607a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x48]
mov eax, ebx
mov byte [ebp - 4], 9
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x436098
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x4c]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4360b6
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 0x4360d6
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 0x4360f4
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 0x436113
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.00448d48
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 0xb
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x43614c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x436167
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x48]
mov eax, ebx
mov byte [ebp - 4], 9
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x436185
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x4c]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4361a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x4360b8
call fcn.004ff559
call fcn.004ff559
call fcn.004ff559
call fcn.004ff559
push 0x80004005
call fcn.004032a0
push 0x80004005
call fcn.004032a0
push 0x80004005
call fcn.004032a0
push 0x80004005
call fcn.004032a0
push 0x80004005
call fcn.004032a0
int3