Function at 0x42eba0
Capabilities:
Delete file
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5babdb
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x6441a4]
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 edx, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0
lea ecx, [ebp - 0x458]
call fcn.004318e0
mov eax, dword [ebp - 0x458]
test eax, eax
je 0x42ebfc
push eax
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x44c]
test eax, eax
je 0x42ec0f
push eax
call fcn.004d2e13
add esp, 4
cmp dword [ebp - 0x42c], 3
jg 0x42ec1f
xor al, al
jmp 0x42f0a2
lea ecx, [ebp - 0x46c]
call fcn.0042e780
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x440], xmm0
mov dword [ebp - 0x430], 0
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.004d00d0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push 0
push eax
call fcn.004d00d0
add esp, 0xc
mov dword [ebp - 0x428], 0
lea eax, [ebp - 0x428]
push eax
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x428]
mov edi, dword [ebp - 0x46c]
mov ebx, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x42edd9
lea ecx, [ebp - 0x218]
push ecx
push eax
call ebx
test eax, eax
je 0x42edd9
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x440]
call fcn.00406d80
mov esi, dword [ebp - 0x440]
push 0x62c504
push esi
call fcn.004cfb55
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x42ed92
sub ecx, esi
sar ecx, 1
test ecx, ecx
jle 0x42ed92
mov edx, dword [ebp - 0x43c]
xor eax, eax
test edx, edx
jg 0x42ed07
lea eax, [edx - 1]
xor ebx, ebx
test eax, eax
cmovns ebx, eax
lea eax, [ebx + ecx]
cmp eax, edx
jle 0x42ed19
mov ecx, edx
sub ecx, ebx
push ecx
lea eax, [esi + ebx*2]
mov dword [ebp - 0x448], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x458]
push eax
movups xmmword [ebp - 0x458], xmm0
call fcn.00406c40
mov esi, dword [ebp - 0x458]
test esi, esi
je 0x42ed4f
cmp word [esi], 0
mov eax, esi
jne 0x42ed54
mov eax, 0x628fa4
push dword [ebp - 0x454]
lea ecx, [ebp - 0x440]
push eax
call fcn.00406c40
test esi, esi
je 0x42ed73
push esi
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x44c]
test eax, eax
je 0x42ed86
push eax
call fcn.004d2e13
add esp, 4
mov ebx, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov esi, dword [ebp - 0x440]
cmp dword [ebp - 0x43c], 0
jle 0x42edd9
test esi, esi
je 0x42eda7
cmp word [esi], 0
mov ecx, esi
jne 0x42edac
mov ecx, 0x628fa4
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42edb0
sub ecx, edx
sar ecx, 1
cmp dword [ebp - 0x468], ecx
jl 0x42edd9
push esi
push edi
call fcn.004cfb55
add esp, 8
test eax, eax
jne 0x42efb0
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004d00d0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x440]
call fcn.00406d80
cmp dword [ebp - 0x43c], 0
mov esi, dword [ebp - 0x440]
jle 0x42ee5f
test esi, esi
je 0x42ee2e
cmp word [esi], 0
mov ecx, esi
jne 0x42ee33
mov ecx, 0x628fa4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ee36
sub ecx, edx
sar ecx, 1
cmp dword [ebp - 0x468], ecx
jl 0x42ee5f
push esi
push edi
call fcn.004cfb55
add esp, 8
test eax, eax
jne 0x42efb0
push 0x104
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004d00d0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push 0
push eax
call fcn.004d00d0
add esp, 0xc
mov dword [ebp - 0x428], 0
lea eax, [ebp - 0x428]
push eax
push 0x2a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x42ef1c
lea ecx, [ebp - 0x218]
push ecx
push eax
call ebx
test eax, eax
je 0x42ef1c
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x440]
call fcn.00406d80
cmp dword [ebp - 0x43c], 0
mov esi, dword [ebp - 0x440]
jle 0x42ef1c
test esi, esi
je 0x42eeeb
cmp word [esi], 0
mov ecx, esi
jne 0x42eef0
mov ecx, 0x628fa4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42eef3
sub ecx, edx
sar ecx, 1
cmp dword [ebp - 0x468], ecx
jl 0x42ef1c
push esi
push edi
call fcn.004cfb55
add esp, 8
test eax, eax
jne 0x42efb0
push str.update_test.txt
lea ecx, [ebp - 0x46c]
call fcn.00406cf0
mov edi, dword [ebp - 0x46c]
test edi, edi
je 0x42ef3e
cmp word [edi], 0
mov eax, edi
jne 0x42ef43
mov eax, 0x628fa4
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
cmp ebx, 0xffffffff
je 0x42efb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x42efb0
lea ecx, [ebp - 0x444]
mov dword [ebp - 0x444], 0x333231
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42ef87
sub ecx, edx
lea edx, [ebp - 0x444]
push ecx
lea ecx, [ebp - 0x42c]
call fcn.0042fd50
add esp, 4
push ebx
test eax, eax
jg 0x42efb7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x42f060
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x46c]
push eax
lea ecx, [ebp - 0x458]
call fcn.00406930
push 0x62c54c
lea ecx, [ebp - 0x458]
call fcn.00406cf0
lea edx, [ebp - 0x458]
lea ecx, [ebp - 0x46c]
call fcn.0042fed0
mov ebx, dword [ebp - 0x458]
test al, al
jne 0x42f01b
test edi, edi
je 0x42f006
cmp word [edi], 0
mov eax, edi
jne 0x42f00b
mov eax, 0x628fa4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0x421], 1
jmp 0x42f03a
test ebx, ebx
je 0x42f027
cmp word [ebx], 0
mov eax, ebx
jne 0x42f02c
mov eax, 0x628fa4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0x421], 0
test ebx, ebx
je 0x42f047
push ebx
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x44c]
test eax, eax
je 0x42f05a
push eax
call fcn.004d2e13
add esp, 4
mov bl, byte [ebp - 0x421]
test esi, esi
je 0x42f06d
push esi
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x42f080
push eax
call fcn.004d2e13
add esp, 4
test edi, edi
je 0x42f08d
push edi
call fcn.004d2e13
add esp, 4
mov eax, dword [ebp - 0x460]
test eax, eax
je 0x42f0a0
push eax
call fcn.004d2e13
add esp, 4
mov al, bl
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.004cdf2e
mov esp, ebp
pop ebp
ret