Function at 0x4055f0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74833f
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x8606e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
lea ecx, [ebp - 0xa0]
push 0x81fcb8
call fcn.0040a2b0
push str.uninstall.dat
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0040a3c0
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x8c]
cmp eax, 8
jb 0x40566a
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00409480
xor eax, eax
mov dword [ebp - 0x8c], 7
cmp dword [ebp - 0x44], 8
mov word [ebp - 0xa0], ax
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
mov dword [ebp - 0x90], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4056af
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
lea ecx, [ebp - 0x1dc]
call fcn.00407020
mov byte [ebp - 4], 3
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x1d8]
cmovae eax, dword [ebp - 0x58]
sub esp, 8
push eax
call fcn.00409830
test eax, eax
lea ecx, [ebp - 0x1dc]
mov eax, dword [ebp - 0x1dc]
push 0
mov eax, dword [eax + 4]
jne 0x405702
mov edx, dword [ecx + eax + 0xc]
add ecx, eax
or edx, 2
mov eax, edx
or eax, 4
cmp dword [ecx + 0x38], 0
jmp 0x40570e
add ecx, eax
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
push eax
call fcn.004031d0
mov ecx, dword [ebp - 0x1dc]
mov eax, dword [ecx + 4]
test byte [ebp + eax - 0x1d0], 6
jne 0x405a0d
lea ecx, [ebp - 0x12c]
call fcn.00411bf0
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 4
push ecx
mov ecx, dword [eax]
call fcn.004129f0
mov byte [ebp - 4], 7
or edi, 0xffffffff
mov esi, dword [ebp - 0x128]
test esi, esi
je 0x40577b
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40577b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40577b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 6
lea eax, [ebp - 0x88]
cmp dword [ebp - 0x74], 8
lea ecx, [ebp - 0x120]
push 0
cmovae eax, dword [ebp - 0x88]
mov dword [ebp - 0x124], ecx
lea ecx, [ebp - 0x124]
push eax
call fcn.004091f0
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp byte [edx], 0
jne 0x4057cf
xor ecx, ecx
jmp 0x4057dd
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4057d4
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00408810
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x120]
mov eax, dword [ebp - 0x124]
cmp eax, ecx
je 0x405804
push eax
call fcn.0063302c
add esp, 4
push 4
push 0x8201b4
lea ecx, [ebp - 0x28]
call fcn.00408af0
lea ecx, [ebp - 0x12c]
call fcn.00411bf0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xb
push ecx
mov ecx, dword [eax]
call fcn.00412ab0
mov byte [ebp - 4], 0xe
mov esi, dword [ebp - 0x128]
test esi, esi
je 0x405859
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x405859
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x405859
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x120]
push 0
cmovae eax, dword [ebp - 0x70]
mov dword [ebp - 0x124], ecx
lea ecx, [ebp - 0x124]
push eax
call fcn.004091f0
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp byte [edx], 0
jne 0x4058a7
xor ecx, ecx
jmp 0x4058b9
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4058b0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00408810
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x120]
mov eax, dword [ebp - 0x124]
cmp eax, ecx
je 0x4058e0
push eax
call fcn.0063302c
add esp, 4
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x1dc]
push 0x40
push eax
call fcn.004079f0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x1dc]
push 0x80
push eax
call fcn.004079f0
lea ecx, [ebp - 0x1d8]
call fcn.004090d0
test eax, eax
jne 0x405953
mov eax, dword [ebp - 0x1dc]
lea ecx, [ebp - 0x1dc]
push 0
mov eax, dword [eax + 4]
add ecx, eax
mov edx, dword [ecx + 0xc]
or edx, 2
mov eax, edx
or eax, 4
cmp dword [ecx + 0x38], 0
cmovne eax, edx
push eax
call fcn.004031d0
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x405973
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004094e0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp eax, 8
jb 0x40599a
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00409480
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x60], 0
cmp eax, 0x10
jb 0x4059c3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004094e0
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 8
jb 0x4059f0
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00409480
mov ecx, dword [ebp - 0x1dc]
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
mov eax, dword [ecx + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1dc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x1e0], eax
lea ecx, [ebp - 0x1d8]
call fcn.00407940
mov eax, dword [ebp - 0x1dc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1dc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x1e0], eax
lea eax, [ebp - 0x174]
mov byte [ebp - 4], 0x12
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004b27e0
mov eax, dword [ebp - 0x44]
add esp, 4
cmp eax, 8
jb 0x405a92
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00409480
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ccd8f
mov esp, ebp
pop ebp
ret