Function at 0x435100
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539369
mov eax, dword fs:[0]
push eax
sub esp, 0x1dc
mov eax, dword [0x597644]
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 eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1e4], eax
test eax, eax
je 0x4359b8
lea ecx, [ebp - 0x1cc]
call fcn.00455170
mov dword [ebp - 4], 0
mov dword [ebp - 0x1e0], 0
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x1d8], 0
mov edi, dword [ebx]
mov esi, dword [ebx + 4]
mov byte [ebp - 4], 1
cmp edi, esi
jae 0x4352eb
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4351d3
test al, 0x10
je 0x4351d3
mov esi, dword [ebp - 0x1dc]
cmp dword [ebp - 0x1d8], esi
je 0x4351c1
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00412310
add eax, 0x10
add esp, 4
mov dword [esi], eax
add dword [ebp - 0x1dc], 4
jmp 0x4352d9
push edi
push esi
lea ecx, [ebp - 0x1e0]
call fcn.0042fbb0
jmp 0x4352d9
call fcn.00412520
mov ecx, eax
test ecx, ecx
je 0x4359da
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1d0], eax
lea eax, [ebp - 0x1d0]
mov byte [ebp - 4], 2
push eax
push edi
call fcn.00455470
add esp, 8
test eax, eax
je 0x4352a1
push dword [ebp - 0x1d0]
push dword [edi]
push str.cut__s_to__s_success
call fcn.0043c0b0
add esp, 0xc
push 4
push 0
push dword [ebp - 0x1d0]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [ebp - 0x1d0]
test eax, eax
je 0x43524a
push str.write__s_to_pending_success
call fcn.0043c0b0
add esp, 8
jmp 0x4352b7
lea ecx, [ebp - 0xc4]
call fcn.00430230
push dword [eax]
lea eax, [ebp - 0x1cc]
mov byte [ebp - 4], 3
push str.del__q___s___r_n
push eax
call fcn.004552a0
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0xc0]
add esp, 0xc
mov byte [ebp - 4], 2
cmp eax, ecx
je 0x43528c
push eax
call fcn.00508734
add esp, 4
push dword [ebp - 0x1d0]
push str.write_to_runonce_bat:__s
call fcn.0043c0b0
add esp, 8
jmp 0x4352b7
push dword [edi]
push str.cut__s_to_temp_failed__delete_by_pending
call fcn.0043c0b0
push dword [edi]
call fcn.00455ea0
add esp, 0xc
mov edx, dword [ebp - 0x1d0]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4352d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebx + 4]
add edi, 4
cmp edi, esi
jb 0x435183
mov edi, dword [ebx]
cmp edi, esi
je 0x435313
nop dword [eax]
mov edx, dword [edi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43530a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 4
cmp edi, esi
jne 0x4352f0
mov edi, dword [ebx]
mov esi, dword [ebp - 0x1e0]
mov dword [ebx + 4], edi
cmp esi, dword [ebp - 0x1dc]
jae 0x43554b
push dword [esi]
call fcn.00455b50
add esp, 4
test eax, eax
jne 0x43553c
call fcn.00412520
mov ecx, eax
test ecx, ecx
je 0x4359da
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1d0], eax
lea eax, [ebp - 0x1d0]
mov byte [ebp - 4], 4
push eax
push esi
call fcn.00455470
add esp, 8
test eax, eax
je 0x435504
push dword [ebp - 0x1d0]
push dword [esi]
push str.cut__s_to__s_success
call fcn.0043c0b0
add esp, 0xc
push 4
push 0
push dword [ebp - 0x1d0]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4353b4
push dword [ebp - 0x1d0]
push str.write__s_to_pending_success
call fcn.0043c0b0
add esp, 8
jmp 0x43551a
mov ebx, dword [ebp - 0x1d0]
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x1e8], ebx
mov dword [ebp - 0xc4], eax
test ebx, ebx
jne 0x4353dd
xor eax, eax
mov dword [ebp - 0xc4], eax
jmp 0x4354b9
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4353e2
sub ecx, edx
sar ecx, 1
push 0x80
lea eax, [ecx + 1]
lea edi, [eax*4]
mov dword [ebp - 0x1d4], eax
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0xc4]
push edi
push eax
call fcn.00421190
add esp, 0x10
push 0
push 0
push edi
push dword [ebp - 0xc4]
mov edi, dword [ebp - 0x1d4]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x4354ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4354ab
mov ebx, dword [ebp - 0x1e8]
push 0
push 0
push 0
push 0
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea eax, [ebp - 0xc0]
push 0x80
push eax
lea eax, [ebp - 0xc4]
push edi
push eax
call fcn.00421190
add esp, 0x10
push 0
push 0
push edi
push dword [ebp - 0xc4]
push dword [ebp - 0x1d4]
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
test ebx, ebx
jne 0x4359e4
mov eax, dword [ebp - 0xc4]
push eax
lea eax, [ebp - 0x1cc]
mov byte [ebp - 4], 5
push str.rd__s__q___s___r_n
push eax
call fcn.004552a0
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0xc0]
add esp, 0xc
mov byte [ebp - 4], 4
cmp eax, ecx
je 0x4354ef
push eax
call fcn.00508734
add esp, 4
push dword [ebp - 0x1d0]
push str.write_to_runonce_bat:__s
call fcn.0043c0b0
add esp, 8
jmp 0x43551a
push dword [esi]
push str.cut__s_to_temp_failed_delete_by_pending
call fcn.0043c0b0
push dword [esi]
call fcn.00455ea0
add esp, 0xc
mov edx, dword [ebp - 0x1d0]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43553c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, dword [ebp - 0x1dc]
jb 0x435328
mov ebx, dword [ebp - 0x1e4]
push ebx
call fcn.00455b50
add esp, 4
test eax, eax
jne 0x43569f
call fcn.00412520
mov ecx, eax
test ecx, ecx
je 0x4359da
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1d0], eax
push ebx
lea ecx, [ebp - 0x1d4]
mov byte [ebp - 4], 6
call fcn.00415430
lea eax, [ebp - 0x1d0]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x1d4]
push eax
call fcn.00455470
mov edx, dword [ebp - 0x1d4]
add esp, 8
mov esi, eax
mov byte [ebp - 4], 6
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4355cd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x435669
push dword [ebp - 0x1d0]
push ebx
push str.cut__s_to__s_success
call fcn.0043c0b0
add esp, 0xc
push 4
push 0
push dword [ebp - 0x1d0]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [ebp - 0x1d0]
test eax, eax
je 0x435612
push str.write__s_to_pending_success
call fcn.0043c0b0
add esp, 8
jmp 0x43567d
lea ecx, [ebp - 0xc4]
call fcn.00430230
push dword [eax]
lea eax, [ebp - 0x1cc]
mov byte [ebp - 4], 8
push str.rd__q___s___r_n
push eax
call fcn.004552a0
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0xc0]
add esp, 0xc
mov byte [ebp - 4], 6
cmp eax, ecx
je 0x435654
push eax
call fcn.00508734
add esp, 4
push dword [ebp - 0x1d0]
push str.write_to_runonce_bat:__s
call fcn.0043c0b0
add esp, 8
jmp 0x43567d
push ebx
push str.cut__s_to_temp_failed_delete_by_pending
call fcn.0043c0b0
push ebx
call fcn.00455ea0
add esp, 0xc
mov edx, dword [ebp - 0x1d0]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43569f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00412520
mov ecx, eax
test ecx, ecx
je 0x435a03
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1d4], eax
movzx eax, word [ebx]
push eax
lea eax, [ebp - 0x1d4]
mov byte [ebp - 4], 9
push str._c:.temp
push eax
call fcn.0041dac0
mov esi, dword [ebp - 0x1d4]
add esp, 0xc
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push esi
test eax, eax
je 0x4356f5
push str.write__s_to_pending_success
jmp 0x43573d
lea ecx, [ebp - 0xc4]
call fcn.00430230
push dword [eax]
lea eax, [ebp - 0x1cc]
mov byte [ebp - 4], 0xa
push str.rd__q___s___r_n
push eax
call fcn.004552a0
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0xc0]
add esp, 0xc
mov byte [ebp - 4], 9
cmp eax, ecx
je 0x435737
push eax
call fcn.00508734
add esp, 4
push esi
push str.write_to_runonce_bat:__s
call fcn.0043c0b0
add esp, 8
lea ecx, [ebp - 0x1cc]
call fcn.004551a0
test al, al
je 0x4358f7
lea ecx, [ebp - 0x1cc]
call fcn.004551d0
push eax
lea eax, [ebp - 0x1cc]
push str.del__q___s___r_n
push eax
call fcn.004552a0
add esp, 0xc
lea ecx, [ebp - 0x1cc]
call fcn.004551d0
mov dword [ebp - 0x1e4], eax
test eax, eax
je 0x4357d5
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x435792
sub ecx, edx
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x4357d5
lea eax, [ebx + ebx]
call fcn.004984d0
mov edi, esp
test edi, edi
je 0x4357d5
push ebx
push edi
push 0xffffffffffffffff
push dword [ebp - 0x1e4]
xor eax, eax
push eax
push 3
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
cmove edi, ecx
jmp 0x4357d7
xor edi, edi
push edi
push str.write_to_runonce_bat:__s
call fcn.0043c0b0
add esp, 8
lea ecx, [ebp - 0x1cc]
call fcn.004551b0
mov ebx, eax
lea eax, [ebp - 0x28]
push 0xd
push eax
call fcn.00432bf0
add esp, 8
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xb
jb 0x43580c
mov eax, dword [eax]
push 0xfde9
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004a3750
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xd
cmp edx, 8
jb 0x43585c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x435852
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435a0d
push edx
push ecx
call fcn.00497eef
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test ebx, ebx
je 0x4358bf
lea ecx, [ebp - 0x1cc]
call fcn.004551d0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435882
sub eax, edx
lea edi, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x1cc]
push eax
cmovae edi, dword [ebp - 0x40]
call fcn.004551d0
push eax
push 1
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
push str.write_runonce_bat_to_registry
call fcn.0043c0b0
add esp, 4
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 9
cmp edx, 0x10
jb 0x4358f7
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4358ed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435a12
push edx
push ecx
call fcn.00497eef
add esp, 8
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x435913
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1e0]
mov byte [ebp - 4], 0
test esi, esi
je 0x4359a8
mov edi, dword [ebp - 0x1dc]
cmp esi, edi
je 0x435957
nop
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43594a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x435930
mov esi, dword [ebp - 0x1e0]
mov ecx, dword [ebp - 0x1d8]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x435980
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x435a17
push ecx
push esi
call fcn.00497eef
add esp, 8
mov dword [ebp - 0x1e0], 0
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x1d8], 0
lea ecx, [ebp - 0x1cc]
call fcn.00455180
mov eax, 1
lea esp, [ebp - 0x1f8]
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.004982ff
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040ada0
push 0x80
lea eax, [ebp - 0xc0]
push eax
push dword [ebp - 0xc4]
call fcn.00421290
add esp, 0xc
call fcn.00421b60
push 0x80004005
call fcn.0040ada0
call fcn.004e9178
call fcn.004e9178
call fcn.004e9178
int3