Function at 0x410680
Capabilities:
Create process on windows
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535878
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x5a6a30]
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 + 8]
mov dword [ebp - 0x64], eax
call fcn.0042aa6c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4106ce
push 0x80004005
call fcn.004010e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], 0
call fcn.0042aa6c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4106fe
push 0x80004005
call fcn.004010e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 1
call fcn.0042aa6c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41072b
push 0x80004005
call fcn.004010e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x5c], esi
push str.DoDiasUninstall_______________________IN._n
push 4
mov byte [ebp - 4], 2
call fcn.00403750
add esp, 8
call fcn.0042cb3b
mov ebx, dword [eax + 0xc]
call fcn.0042cb3b
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x44]
call fcn.0042cb3b
push 0x1b58
mov dword [eax + 0xc], edi
call fcn.0042a962
test eax, eax
je 0x410784
push 0x1b58
push eax
lea ecx, [ebp - 0x60]
call fcn.00401a80
push 0x1b59
call fcn.0042a962
test eax, eax
je 0x4107a0
push 0x1b59
push eax
lea ecx, [ebp - 0x68]
call fcn.00401a80
call fcn.0042cb3b
mov ecx, dword [ebp - 0x60]
mov dword [eax + 0xc], ebx
mov eax, 1
sub eax, dword [ecx - 4]
mov ecx, dword [ecx - 8]
or ecx, eax
jge 0x4107c4
push 0
lea ecx, [ebp - 0x60]
call fcn.004015a0
mov ecx, dword [ebp - 0x60]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040ee20
add esp, 8
test eax, eax
jne 0x410aaf
push str.DoDiasUninstall_______________________________start._n
push 4
call fcn.00403750
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
add esp, 8
or eax, ecx
jge 0x410810
push 0x104
lea ecx, [ebp - 0x5c]
call fcn.004015a0
mov esi, dword [ebp - 0x5c]
test esi, esi
je 0x410c3d
push 0x208
push 0
push esi
call fcn.0051eb70
add esp, 0xc
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0051f1db
add esp, 8
test eax, eax
js 0x410aa5
cmp eax, dword [esi - 8]
jg 0x410aa5
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
test edi, edi
je 0x410c3d
push 1
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040f160
push 0x5457b4
push eax
call fcn.0040f020
mov bl, al
mov eax, dword [ebp - 0x64]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4108a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4108b3
push 0x5457b4
lea ecx, [ebp - 0x5c]
call fcn.00405650
mov edi, dword [ebp - 0x68]
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [ebp - 0x5c]
call fcn.004049b0
push 0x5499b0
lea ecx, [ebp - 0x5c]
call fcn.00405650
push 0x44
lea ecx, [ebp - 0xd0]
push 0
push ecx
call fcn.0051eb70
mov esi, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
xor edx, edx
mov dword [ebp - 0xd0], 0x44
mov dword [ebp - 0xa4], 1
mov word [ebp - 0xa0], dx
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
add esp, 0xc
or eax, ecx
jge 0x41093e
push 0x104
lea ecx, [ebp - 0x5c]
call fcn.004015a0
mov esi, dword [ebp - 0x5c]
test esi, esi
jne 0x41096d
mov byte [ebp - 4], 1
lea eax, [esi - 0x10]
mov ecx, 0xfffffffc
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410965
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0xfffffffffffffff0
call edx
lea eax, [edi - 0x10]
jmp 0x410c72
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x410989
push 0
lea ecx, [ebp - 0x5c]
call fcn.004015a0
mov esi, dword [ebp - 0x5c]
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0xd0]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4109dc
push str.DoDiasUninstall______________________________CreateProcess_Error._n
push 4
call fcn.00403750
add esp, 8
lea ecx, [ebp - 0x5c]
call fcn.00401510
lea ecx, [ebp - 0x68]
call fcn.00401510
lea ecx, [ebp - 0x60]
call fcn.00401510
jmp 0x410cb1
push str.DoDiasUninstall______________________________SUCCESS._n
push 4
call fcn.00403750
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0051f1db
add esp, 0x10
test eax, eax
js 0x410aa5
cmp eax, dword [esi - 8]
jg 0x410aa5
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov edx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x8c]
push edx
call edi
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call edi
push 0x5450a0
push 0x5499b0
lea ecx, [ebp - 0x5c]
call fcn.004045a0
mov esi, dword [ebp - 0x5c]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x20
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebx
test eax, eax
jne 0x410a6c
push str.Cant_delete_DiasUninstall_the_execute_fiile._n
push 4
call fcn.00403750
add esp, 8
push str..INI
push str..EXE
lea ecx, [ebp - 0x5c]
call fcn.004045a0
mov esi, dword [ebp - 0x5c]
push 0x20
push esi
call edi
push esi
call ebx
test eax, eax
jne 0x410c3d
push str.Cant_delete_DiasUninstall_the_INI_fiile._n
push 4
call fcn.00403750
add esp, 8
jmp 0x410c3d
push 0x80070057
call fcn.004010e0
mov edi, dword [ebp - 0x64]
test edi, edi
je 0x410c3d
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410ac0
sub eax, edx
sar eax, 1
je 0x410c3d
lea ecx, [ebp - 0x58]
call fcn.00423870
mov edx, dword [ebp - 0x60]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
xor ebx, ebx
or ecx, eax
mov byte [ebp - 4], 3
jge 0x410b01
push ebx
lea ecx, [ebp - 0x60]
call fcn.004015a0
mov edx, dword [ebp - 0x60]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x58]
call fcn.00423340
test eax, eax
je 0x410c31
push edi
lea ecx, [ebp - 0x58]
call fcn.004234b0
xor edi, edi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], edi
xor eax, eax
push eax
xor ecx, ecx
push ecx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 4
call fcn.004088a0
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x58]
call fcn.00423ce0
lea ecx, [ebp - 0x58]
call fcn.00423320
mov ecx, dword [ebp - 0x78]
sub ecx, dword [ebp - 0x7c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x410c18
push 0x5c
lea ecx, [ebp - 0x60]
call fcn.00403e50
mov edi, eax
push edi
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x60]
call fcn.004048c0
inc edi
push edi
lea edx, [ebp - 0x6c]
push edx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 5
call fcn.0040f310
mov edx, dword [ebp - 0x64]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
mov byte [ebp - 4], 6
or ecx, eax
jge 0x410bc2
push 0
lea ecx, [ebp - 0x64]
call fcn.004015a0
mov edx, dword [ebp - 0x64]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x58]
call fcn.00423340
test eax, eax
je 0x410c06
mov edx, dword [ebp - 0x6c]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x410bf3
push 0
lea ecx, [ebp - 0x6c]
call fcn.004015a0
mov edx, dword [ebp - 0x6c]
push edx
lea ecx, [ebp - 0x58]
call fcn.00423470
lea ecx, [ebp - 0x58]
mov ebx, eax
call fcn.00423320
lea ecx, [ebp - 0x6c]
call fcn.00401510
lea ecx, [ebp - 0x64]
call fcn.00401510
xor edi, edi
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 3
call fcn.00402430
cmp ebx, edi
je 0x410c31
push edi
call fcn.00410680
add esp, 4
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.004238a0
push str.DoDiasUninstall_______________________OUT._n
push 4
call fcn.00403750
lea eax, [esi - 0x10]
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410c6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x68]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410c8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x60]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410cb1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.0051e701
mov esp, ebp
pop ebp
ret