Function at 0x402dc0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4180bd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x424014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x60], eax
push str.Uninstall_started...
push eax
call fcn.00402550
add esp, 8
mov edi, 0x424880
mov esi, dword [edi]
mov ecx, esi
call fcn.00402b70
push eax
push esi
push str.UninstallForExecutable___s___returned__08X
push dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
call fcn.00402550
mov esi, dword [ebp - 0x64]
add esp, 0x10
test esi, esi
setne al
test esi, esi
jne 0x402e4b
add edi, 4
cmp edi, 0x424894
jne 0x402e16
test al, al
je 0x402ec3
mov edx, esi
lea ecx, [ebp - 0x7c]
call fcn.00405cd0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x402e68
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x60]
push str.Uninstalling_failed__see_log_for_more_info._Error:__s
push 0x10
push str.Error
push dword [eax]
call fcn.00401500
mov edx, dword [ebp - 0x68]
add esp, 0x14
cmp edx, 8
jb 0x402ebc
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402eb2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403239
push edx
push ecx
call fcn.004068ce
add esp, 8
mov eax, esi
jmp 0x40321b
lea ecx, [ebp - 0x5c]
call fcn.004022f0
mov dword [ebp - 4], 1
lea edi, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
mov esi, dword [ebp - 0x4c]
cmovae edi, dword [ebp - 0x5c]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x402f04
mov esi, dword [ebp - 0x60]
xor edi, edi
push edi
push str.utl::nuke_file_returned:__08X
push esi
call fcn.00402550
add esp, 0xc
jmp 0x4030ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x402eeb
push esi
xor eax, eax
mov dword [ebp - 0x1c], 0
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00405170
push 0x2e
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00405f50
mov esi, 8
call fcn.004063bb
movzx eax, al
lea ecx, [ebp - 0x2c]
or eax, 0x400
push eax
call fcn.00405f50
sub esi, 1
jne 0x402f40
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push esi
cmovae eax, dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push eax
push edi
call esi
test eax, eax
jne 0x403050
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 1
mov edi, eax
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x402fbf
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402fb5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403243
push edx
push ecx
call fcn.004068ce
add esp, 8
mov esi, dword [ebp - 0x60]
push edi
push str.utl::nuke_file_returned:__08X
push esi
call fcn.00402550
add esp, 0xc
mov dword [ebp - 0x60], edi
test edi, edi
je 0x4030a9
mov edx, edi
lea ecx, [ebp - 0x7c]
call fcn.00405cd0
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x402ff2
mov eax, dword [eax]
push eax
push str.Uninstalling_succeeded__but_the_file_couldnt_be_removed._This_may_cause_problems_on_reinstall._Error:__s
push 0x30
push str.Warning
push dword [esi]
call fcn.00401500
mov byte [ebp - 4], 1
add esp, 0x14
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x60], edi
cmp edx, 8
jb 0x4030a9
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403044
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40323e
push edx
push ecx
call fcn.004068ce
add esp, 8
jmp 0x4030ac
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 4
cmovae eax, dword [ebp - 0x2c]
push 0
push eax
call esi
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x402eeb
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40309a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403243
push edx
push ecx
call fcn.004068ce
add esp, 8
jmp 0x402eeb
mov edi, dword [ebp - 0x60]
mov ecx, str.RegistryMachineSOFTWAREMicrosoftWindowsCurrentVersionThemes_
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4030d0
sub ecx, edx
sar ecx, 1
push ecx
push str.RegistryMachineSOFTWAREMicrosoftWindowsCurrentVersionThemes_
lea ecx, [ebp - 0x2c]
call fcn.00405170
mov ecx, str.DefaultColors_backup
mov byte [ebp - 4], 4
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403100
sub ecx, edx
sar ecx, 1
push ecx
push str.DefaultColors_backup
lea ecx, [ebp - 0x2c]
call fcn.00404eb0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x40317f
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403175
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403248
push edx
push ecx
call fcn.004068ce
add esp, 8
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
mov edx, str.DefaultColors
cmovae ecx, dword [ebp - 0x44]
call fcn.00405aa0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x64], eax
cmp edx, 8
jb 0x4031d4
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4031c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40324d
push edx
push ecx
call fcn.004068ce
mov eax, dword [ebp - 0x64]
add esp, 8
push eax
push str.RestoreDefaultColors_returned__08X
push esi
call fcn.00402550
mov edx, dword [ebp - 0x48]
add esp, 0xc
cmp edx, 8
jb 0x403219
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40320f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403252
push edx
push ecx
call fcn.004068ce
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004066bd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040a6c0
call fcn.0040a6c0
call fcn.0040a6c0
call fcn.0040a6c0
call fcn.0040a6c0
call fcn.0040a6c0
int3